@forgecart/sdk 1.202607150804.0 → 1.202607190047.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.
@@ -196,7 +196,6 @@ export type Address = {
196
196
  createdAt: Scalars['DateTime']['output'];
197
197
  defaultBillingAddress: Scalars['Boolean']['output'];
198
198
  defaultShippingAddress: Scalars['Boolean']['output'];
199
- fullName: Scalars['String']['output'];
200
199
  id: Scalars['ID']['output'];
201
200
  phoneNumber?: Maybe<Scalars['String']['output']>;
202
201
  postalCode: Scalars['String']['output'];
@@ -595,6 +594,7 @@ export type ChannelSettings = {
595
594
  defaultFulfillmentHandlerCode?: Maybe<Scalars['String']['output']>;
596
595
  defaultPaymentProviderCode?: Maybe<Scalars['String']['output']>;
597
596
  defaultWeightUnit?: Maybe<WeightUnit>;
597
+ emailAddress?: Maybe<Scalars['String']['output']>;
598
598
  fxMarkupPercent: Scalars['Float']['output'];
599
599
  fxRoundingRule: Scalars['String']['output'];
600
600
  id: Scalars['ID']['output'];
@@ -729,6 +729,15 @@ export type CompanyAddressInput = {
729
729
  streetLine1: Scalars['String']['input'];
730
730
  streetLine2?: InputMaybe<Scalars['String']['input']>;
731
731
  };
732
+ /**
733
+ * Charges the outstanding amount of an order parked in
734
+ * arrangingAdditionalPayment to a stored payment method. Omitting tokenId
735
+ * charges the customer's default (falling back to first) stored token.
736
+ */
737
+ export type CompleteAdditionalPaymentInput = {
738
+ orderId: Scalars['ID']['input'];
739
+ tokenId?: InputMaybe<Scalars['ID']['input']>;
740
+ };
732
741
  export type CompleteDraftInput = {
733
742
  action: DraftCompletionAction;
734
743
  orderId: Scalars['ID']['input'];
@@ -771,7 +780,6 @@ export type CreateAddressInput = {
771
780
  countryId?: InputMaybe<Scalars['ID']['input']>;
772
781
  defaultBillingAddress?: InputMaybe<Scalars['Boolean']['input']>;
773
782
  defaultShippingAddress?: InputMaybe<Scalars['Boolean']['input']>;
774
- fullName?: InputMaybe<Scalars['String']['input']>;
775
783
  phoneNumber?: InputMaybe<Scalars['String']['input']>;
776
784
  postalCode?: InputMaybe<Scalars['String']['input']>;
777
785
  province?: InputMaybe<Scalars['String']['input']>;
@@ -900,6 +908,7 @@ export type CreateFulfillmentInput = {
900
908
  orderId: Scalars['ID']['input'];
901
909
  };
902
910
  export type CreateFulfillmentRequestsForOrderInput = {
911
+ growExisting?: InputMaybe<Scalars['Boolean']['input']>;
903
912
  orderId: Scalars['ID']['input'];
904
913
  };
905
914
  export type CreateLabelServiceInput = {
@@ -968,6 +977,7 @@ export type CreateProductVariantInput = {
968
977
  dimensions?: InputMaybe<DimensionsInput>;
969
978
  featuredAssetId?: InputMaybe<Scalars['ID']['input']>;
970
979
  optionIds?: InputMaybe<Array<Scalars['ID']['input']>>;
980
+ packagePresetId?: InputMaybe<Scalars['ID']['input']>;
971
981
  price: Scalars['Int']['input'];
972
982
  productId: Scalars['ID']['input'];
973
983
  sku?: InputMaybe<Scalars['String']['input']>;
@@ -1046,14 +1056,24 @@ export type CreateSessionInput = {
1046
1056
  tokenId?: InputMaybe<Scalars['ID']['input']>;
1047
1057
  };
1048
1058
  export type CreateShippingGatewayRoutingRuleInput = {
1059
+ allProviders?: InputMaybe<Scalars['Boolean']['input']>;
1060
+ cities?: InputMaybe<Array<Scalars['String']['input']>>;
1049
1061
  countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
1050
1062
  enabled?: InputMaybe<Scalars['Boolean']['input']>;
1051
- flatRates?: InputMaybe<Array<ShippingRoutingFlatRateInput>>;
1052
- fulfillmentType: ShippingRoutingFulfillmentType;
1053
1063
  priority?: InputMaybe<Scalars['Int']['input']>;
1054
- providerCode?: InputMaybe<Scalars['String']['input']>;
1064
+ providerCodes?: InputMaybe<Array<Scalars['String']['input']>>;
1055
1065
  scopeType: ShippingRoutingScopeType;
1056
1066
  stockLocationId: Scalars['ID']['input'];
1067
+ useFlatRates?: InputMaybe<Scalars['Boolean']['input']>;
1068
+ };
1069
+ export type CreateShippingPackagePresetInput = {
1070
+ dimensions?: InputMaybe<ShippingPackagePresetDimensionsInput>;
1071
+ easypostPredefinedPackage?: InputMaybe<Scalars['String']['input']>;
1072
+ isDefault?: InputMaybe<Scalars['Boolean']['input']>;
1073
+ kind: ShippingPackagePresetKind;
1074
+ name: Scalars['String']['input'];
1075
+ shippoTemplate?: InputMaybe<Scalars['String']['input']>;
1076
+ tareWeightGrams?: InputMaybe<Scalars['Int']['input']>;
1057
1077
  };
1058
1078
  export type CreateShopSubscriptionInput = {
1059
1079
  defaultTokenId?: InputMaybe<Scalars['ID']['input']>;
@@ -1063,7 +1083,6 @@ export type CreateStockLocationAddressInput = {
1063
1083
  city: Scalars['String']['input'];
1064
1084
  company?: InputMaybe<Scalars['String']['input']>;
1065
1085
  countryCode: Scalars['String']['input'];
1066
- fullName?: InputMaybe<Scalars['String']['input']>;
1067
1086
  phoneNumber?: InputMaybe<Scalars['String']['input']>;
1068
1087
  postalCode: Scalars['String']['input'];
1069
1088
  province?: InputMaybe<Scalars['String']['input']>;
@@ -1515,6 +1534,12 @@ export type FulfillmentRequestLine = {
1515
1534
  quantity: Scalars['Int']['output'];
1516
1535
  updatedAt: Scalars['DateTime']['output'];
1517
1536
  };
1537
+ export type FulfillmentStateTransition = {
1538
+ fromState: Scalars['String']['output'];
1539
+ fulfillmentId: Scalars['ID']['output'];
1540
+ orderId: Scalars['ID']['output'];
1541
+ toState: Scalars['String']['output'];
1542
+ };
1518
1543
  export type GenerateDeviceCodeInput = {
1519
1544
  apiUrl: Scalars['String']['input'];
1520
1545
  };
@@ -1636,6 +1661,8 @@ export type ManageablePlugin = {
1636
1661
  tags: Array<Scalars['String']['output']>;
1637
1662
  toggable: Scalars['Boolean']['output'];
1638
1663
  updatedAt: Scalars['DateTime']['output'];
1664
+ webhookPath?: Maybe<Scalars['String']['output']>;
1665
+ webhookSigned: Scalars['Boolean']['output'];
1639
1666
  };
1640
1667
  export type ManageablePluginConfigItem = {
1641
1668
  code: Scalars['String']['output'];
@@ -1880,6 +1907,7 @@ export type Mutation = {
1880
1907
  cancelMission: Mission;
1881
1908
  cancelOrder: Order;
1882
1909
  cancelPaymentSession: PaymentGatewaySession;
1910
+ cancelPickup: ShippingGatewayPickup;
1883
1911
  cancelSubscription: BillingSubscription;
1884
1912
  changeFulfillmentRequestDeliveryMethod: FulfillmentRequest;
1885
1913
  changeSubscriptionPlan: BillingSubscription;
@@ -1887,9 +1915,12 @@ export type Mutation = {
1887
1915
  clearChatHistory: Scalars['Boolean']['output'];
1888
1916
  closeChatSession: Scalars['Boolean']['output'];
1889
1917
  commitTransaction: DeletionResponse;
1918
+ completeAdditionalPayment: Order;
1890
1919
  completeDraft: Order;
1891
1920
  completeOnboardingShop: CompleteOnboardingShopResult;
1892
1921
  confirmPaymentSession: PaymentGatewaySession;
1922
+ correctBillingAddress: Order;
1923
+ correctShippingAddress: Order;
1893
1924
  createAdministrator: Administrator;
1894
1925
  createAsset: Asset;
1895
1926
  createAssetFromUrl: Asset;
@@ -1925,6 +1956,7 @@ export type Mutation = {
1925
1956
  createSellingPlanGroup: SellingPlanGroup;
1926
1957
  createShippingGatewayRoutingRule: ShippingGatewayRoutingRule;
1927
1958
  createShippingLabel: ShippingGatewayLabel;
1959
+ createShippingPackagePreset: ShippingPackagePreset;
1928
1960
  createStockLocation: StockLocation;
1929
1961
  createSubscription: BillingSubscription;
1930
1962
  createSubscriptionVariantConfig: SubscriptionVariantConfig;
@@ -1964,6 +1996,7 @@ export type Mutation = {
1964
1996
  deleteSellingPlan: SellingPlan;
1965
1997
  deleteSellingPlanGroup: SellingPlanGroup;
1966
1998
  deleteShippingGatewayRoutingRule: Scalars['Boolean']['output'];
1999
+ deleteShippingPackagePreset: Scalars['Boolean']['output'];
1967
2000
  deleteStockLocation: DeletionResponse;
1968
2001
  deleteSubscriptionVariantConfig: SubscriptionVariantConfig;
1969
2002
  deleteTaxCategory: DeletionResponse;
@@ -1979,6 +2012,7 @@ export type Mutation = {
1979
2012
  enqueueChatMessage: Scalars['Int']['output'];
1980
2013
  evaluateAudienceSegment: AudienceSegmentEvaluationResult;
1981
2014
  generateDeviceCode: DeviceCodeResponse;
2015
+ hideShippingPackagePreset: ShippingPackagePreset;
1982
2016
  holdForQualityControl: StockMovement;
1983
2017
  ingestMarketingEvent: IngestMarketingEventResult;
1984
2018
  inviteTeamMember: Administrator;
@@ -1989,15 +2023,18 @@ export type Mutation = {
1989
2023
  moveCollection: Collection;
1990
2024
  moveFulfillmentRequest: FulfillmentRequest;
1991
2025
  pauseSubscription: BillingSubscription;
2026
+ pinOrderLineStockLocation: Order;
1992
2027
  pollDeviceToken?: Maybe<DeviceTokenResponse>;
1993
2028
  provisionChannel: ProvisionChannelResult;
1994
2029
  publish: PublishLog;
1995
2030
  publishDeployment: Deployment;
1996
2031
  reactivateSubscription: BillingSubscription;
1997
2032
  receiveIncomingStock: StockMovement;
2033
+ rechargeShippingCostDelta: ModifyOrderResult;
1998
2034
  recomputeAttribution: MarketingAttribution;
1999
2035
  recordIncomingStock: StockMovement;
2000
2036
  refreshDeploymentStatus: Deployment;
2037
+ refreshRatesForShipment: Array<ShipmentRate>;
2001
2038
  refreshShippingRateGroups: Array<ShippingGatewayRateGroup>;
2002
2039
  refundOrder: Refund;
2003
2040
  refundPayment: Refund;
@@ -2016,15 +2053,20 @@ export type Mutation = {
2016
2053
  removeProductsFromChannel: Array<Product>;
2017
2054
  removePromotionFromChannel: Promotion;
2018
2055
  removeStockLocationFromChannel: StockLocation;
2056
+ renewShipmentRates: Array<ShipmentRate>;
2019
2057
  reorderShippingGatewayRoutingRules: Array<ShippingGatewayRoutingRule>;
2058
+ replaceStockLocationFlatRates: Array<StockLocationFlatRate>;
2020
2059
  reportDamagedStock: StockMovement;
2060
+ requestPickup: ShippingGatewayPickup;
2021
2061
  resendAdministratorVerification: Scalars['Boolean']['output'];
2022
2062
  reserveStock: StockMovement;
2023
2063
  respondToHookDispatch: Scalars['Boolean']['output'];
2024
2064
  resumeSubscription: BillingSubscription;
2065
+ revertOrderModification: Order;
2025
2066
  rollbackTransaction: DeletionResponse;
2026
2067
  saveToken: PaymentGatewayToken;
2027
2068
  scaleDeployment: Deployment;
2069
+ selectRateForShipment: ShippingGatewayRateGroup;
2028
2070
  selectShippingRate: Order;
2029
2071
  sendChatMessage: Array<ChatMessage>;
2030
2072
  sendMissionMessage: Mission;
@@ -2032,6 +2074,7 @@ export type Mutation = {
2032
2074
  setConfigurationItemValue?: Maybe<Scalars['Boolean']['output']>;
2033
2075
  setCustomerForDraftOrder: Order;
2034
2076
  setCustomerForOrder: Order;
2077
+ setDefaultShippingPackagePreset: ShippingPackagePreset;
2035
2078
  setDefaultTaxCategory: TaxCategory;
2036
2079
  setDefaultToken: PaymentGatewayToken;
2037
2080
  setDeploymentEnv: Deployment;
@@ -2045,6 +2088,7 @@ export type Mutation = {
2045
2088
  transitionFulfillmentToState: Fulfillment;
2046
2089
  transitionOrderToState: Order;
2047
2090
  triggerScheduledJob: ScheduledJobRun;
2091
+ unhideShippingPackagePreset: ShippingPackagePreset;
2048
2092
  unreserveStock: StockMovement;
2049
2093
  unsetBillingAddress: Order;
2050
2094
  unsetDeploymentEnv: Deployment;
@@ -2082,6 +2126,7 @@ export type Mutation = {
2082
2126
  updateSellingPlanGroup: SellingPlanGroup;
2083
2127
  updateShippingGatewayRoutingRule: ShippingGatewayRoutingRule;
2084
2128
  updateShippingLabel: ShippingGatewayLabel;
2129
+ updateShippingPackagePreset: ShippingPackagePreset;
2085
2130
  updateStockLocation: StockLocation;
2086
2131
  updateSubscriptionVariantConfig: SubscriptionVariantConfig;
2087
2132
  updateTaxCategory: TaxCategory;
@@ -2090,6 +2135,7 @@ export type Mutation = {
2090
2135
  updateZone: Zone;
2091
2136
  verifyAdministratorEmail: AdminVerifyEmailResult;
2092
2137
  voidShippingLabel: ShippingGatewayLabel;
2138
+ withdrawShippingRecharge: Order;
2093
2139
  writeOffDamagedStock: StockMovement;
2094
2140
  };
2095
2141
  export type MutationacceptFulfillmentRequestArgs = {
@@ -2167,6 +2213,9 @@ export type MutationcancelOrderArgs = {
2167
2213
  export type MutationcancelPaymentSessionArgs = {
2168
2214
  paymentId: Scalars['ID']['input'];
2169
2215
  };
2216
+ export type MutationcancelPickupArgs = {
2217
+ pickupId: Scalars['ID']['input'];
2218
+ };
2170
2219
  export type MutationcancelSubscriptionArgs = {
2171
2220
  input: CancelSubscriptionInput;
2172
2221
  };
@@ -2188,6 +2237,9 @@ export type MutationcloseChatSessionArgs = {
2188
2237
  export type MutationcommitTransactionArgs = {
2189
2238
  token: Scalars['String']['input'];
2190
2239
  };
2240
+ export type MutationcompleteAdditionalPaymentArgs = {
2241
+ input: CompleteAdditionalPaymentInput;
2242
+ };
2191
2243
  export type MutationcompleteDraftArgs = {
2192
2244
  input: CompleteDraftInput;
2193
2245
  };
@@ -2197,6 +2249,12 @@ export type MutationcompleteOnboardingShopArgs = {
2197
2249
  export type MutationconfirmPaymentSessionArgs = {
2198
2250
  sessionId: Scalars['ID']['input'];
2199
2251
  };
2252
+ export type MutationcorrectBillingAddressArgs = {
2253
+ input: SetBillingAddressInput;
2254
+ };
2255
+ export type MutationcorrectShippingAddressArgs = {
2256
+ input: SetShippingAddressInput;
2257
+ };
2200
2258
  export type MutationcreateAdministratorArgs = {
2201
2259
  input: CreateAdministratorInput;
2202
2260
  };
@@ -2300,6 +2358,9 @@ export type MutationcreateShippingGatewayRoutingRuleArgs = {
2300
2358
  export type MutationcreateShippingLabelArgs = {
2301
2359
  input: CreateLabelServiceInput;
2302
2360
  };
2361
+ export type MutationcreateShippingPackagePresetArgs = {
2362
+ input: CreateShippingPackagePresetInput;
2363
+ };
2303
2364
  export type MutationcreateStockLocationArgs = {
2304
2365
  input: CreateStockLocationInput;
2305
2366
  };
@@ -2418,6 +2479,9 @@ export type MutationdeleteSellingPlanGroupArgs = {
2418
2479
  export type MutationdeleteShippingGatewayRoutingRuleArgs = {
2419
2480
  id: Scalars['ID']['input'];
2420
2481
  };
2482
+ export type MutationdeleteShippingPackagePresetArgs = {
2483
+ id: Scalars['ID']['input'];
2484
+ };
2421
2485
  export type MutationdeleteStockLocationArgs = {
2422
2486
  id: Scalars['ID']['input'];
2423
2487
  };
@@ -2463,6 +2527,9 @@ export type MutationevaluateAudienceSegmentArgs = {
2463
2527
  export type MutationgenerateDeviceCodeArgs = {
2464
2528
  input: GenerateDeviceCodeInput;
2465
2529
  };
2530
+ export type MutationhideShippingPackagePresetArgs = {
2531
+ id: Scalars['ID']['input'];
2532
+ };
2466
2533
  export type MutationholdForQualityControlArgs = {
2467
2534
  input: HoldForQualityControlInput;
2468
2535
  };
@@ -2490,6 +2557,9 @@ export type MutationmoveFulfillmentRequestArgs = {
2490
2557
  export type MutationpauseSubscriptionArgs = {
2491
2558
  id: Scalars['ID']['input'];
2492
2559
  };
2560
+ export type MutationpinOrderLineStockLocationArgs = {
2561
+ input: PinOrderLineStockLocationInput;
2562
+ };
2493
2563
  export type MutationpollDeviceTokenArgs = {
2494
2564
  deviceCode: Scalars['String']['input'];
2495
2565
  };
@@ -2508,6 +2578,9 @@ export type MutationreactivateSubscriptionArgs = {
2508
2578
  export type MutationreceiveIncomingStockArgs = {
2509
2579
  input: ReceiveIncomingStockInput;
2510
2580
  };
2581
+ export type MutationrechargeShippingCostDeltaArgs = {
2582
+ input: RechargeShippingCostDeltaInput;
2583
+ };
2511
2584
  export type MutationrecomputeAttributionArgs = {
2512
2585
  orderId: Scalars['ID']['input'];
2513
2586
  };
@@ -2517,6 +2590,9 @@ export type MutationrecordIncomingStockArgs = {
2517
2590
  export type MutationrefreshDeploymentStatusArgs = {
2518
2591
  type: DeploymentType;
2519
2592
  };
2593
+ export type MutationrefreshRatesForShipmentArgs = {
2594
+ fulfillmentRequestId: Scalars['ID']['input'];
2595
+ };
2520
2596
  export type MutationrefreshShippingRateGroupsArgs = {
2521
2597
  input: RefreshShippingRateGroupsInput;
2522
2598
  };
@@ -2568,12 +2644,21 @@ export type MutationremovePromotionFromChannelArgs = {
2568
2644
  export type MutationremoveStockLocationFromChannelArgs = {
2569
2645
  input: RemoveStockLocationFromChannelInput;
2570
2646
  };
2647
+ export type MutationrenewShipmentRatesArgs = {
2648
+ fulfillmentRequestId: Scalars['ID']['input'];
2649
+ };
2571
2650
  export type MutationreorderShippingGatewayRoutingRulesArgs = {
2572
2651
  input: ReorderShippingGatewayRoutingRulesInput;
2573
2652
  };
2653
+ export type MutationreplaceStockLocationFlatRatesArgs = {
2654
+ input: ReplaceStockLocationFlatRatesInput;
2655
+ };
2574
2656
  export type MutationreportDamagedStockArgs = {
2575
2657
  input: ReportDamagedStockInput;
2576
2658
  };
2659
+ export type MutationrequestPickupArgs = {
2660
+ input: RequestPickupInput;
2661
+ };
2577
2662
  export type MutationresendAdministratorVerificationArgs = {
2578
2663
  input: ResendAdministratorVerificationInput;
2579
2664
  };
@@ -2586,6 +2671,9 @@ export type MutationrespondToHookDispatchArgs = {
2586
2671
  export type MutationresumeSubscriptionArgs = {
2587
2672
  id: Scalars['ID']['input'];
2588
2673
  };
2674
+ export type MutationrevertOrderModificationArgs = {
2675
+ input: RevertOrderModificationInput;
2676
+ };
2589
2677
  export type MutationrollbackTransactionArgs = {
2590
2678
  token: Scalars['String']['input'];
2591
2679
  };
@@ -2595,6 +2683,9 @@ export type MutationsaveTokenArgs = {
2595
2683
  export type MutationscaleDeploymentArgs = {
2596
2684
  input: ScaleDeploymentInput;
2597
2685
  };
2686
+ export type MutationselectRateForShipmentArgs = {
2687
+ input: SelectRateForShipmentInput;
2688
+ };
2598
2689
  export type MutationselectShippingRateArgs = {
2599
2690
  input: SelectShippingRateInput;
2600
2691
  };
@@ -2616,6 +2707,9 @@ export type MutationsetCustomerForDraftOrderArgs = {
2616
2707
  export type MutationsetCustomerForOrderArgs = {
2617
2708
  input: SetCustomerForOrderInput;
2618
2709
  };
2710
+ export type MutationsetDefaultShippingPackagePresetArgs = {
2711
+ id: Scalars['ID']['input'];
2712
+ };
2619
2713
  export type MutationsetDefaultTaxCategoryArgs = {
2620
2714
  id: Scalars['ID']['input'];
2621
2715
  };
@@ -2655,6 +2749,9 @@ export type MutationtransitionOrderToStateArgs = {
2655
2749
  export type MutationtriggerScheduledJobArgs = {
2656
2750
  id: Scalars['ID']['input'];
2657
2751
  };
2752
+ export type MutationunhideShippingPackagePresetArgs = {
2753
+ id: Scalars['ID']['input'];
2754
+ };
2658
2755
  export type MutationunreserveStockArgs = {
2659
2756
  input: UnreserveStockInput;
2660
2757
  };
@@ -2768,6 +2865,9 @@ export type MutationupdateShippingGatewayRoutingRuleArgs = {
2768
2865
  export type MutationupdateShippingLabelArgs = {
2769
2866
  input: UpdateShippingLabelInput;
2770
2867
  };
2868
+ export type MutationupdateShippingPackagePresetArgs = {
2869
+ input: UpdateShippingPackagePresetInput;
2870
+ };
2771
2871
  export type MutationupdateStockLocationArgs = {
2772
2872
  input: UpdateStockLocationInput;
2773
2873
  };
@@ -2792,6 +2892,9 @@ export type MutationverifyAdministratorEmailArgs = {
2792
2892
  export type MutationvoidShippingLabelArgs = {
2793
2893
  labelId: Scalars['ID']['input'];
2794
2894
  };
2895
+ export type MutationwithdrawShippingRechargeArgs = {
2896
+ fulfillmentRequestId: Scalars['ID']['input'];
2897
+ };
2795
2898
  export type MutationwriteOffDamagedStockArgs = {
2796
2899
  input: WriteOffDamagedStockInput;
2797
2900
  };
@@ -2849,6 +2952,7 @@ export type Order = {
2849
2952
  promotions: Array<Promotion>;
2850
2953
  recentShippingMethod?: Maybe<ShippingGatewayRate>;
2851
2954
  recentToken?: Maybe<PaymentGatewayToken>;
2955
+ refundableTotal: Scalars['Int']['output'];
2852
2956
  sellingPlanId?: Maybe<Scalars['ID']['output']>;
2853
2957
  shipping: Scalars['Int']['output'];
2854
2958
  shippingAddress?: Maybe<OrderAddress>;
@@ -2874,7 +2978,6 @@ export type OrderAddress = {
2874
2978
  city?: Maybe<Scalars['String']['output']>;
2875
2979
  company?: Maybe<Scalars['String']['output']>;
2876
2980
  country?: Maybe<Country>;
2877
- fullName?: Maybe<Scalars['String']['output']>;
2878
2981
  phoneNumber?: Maybe<Scalars['String']['output']>;
2879
2982
  postalCode?: Maybe<Scalars['String']['output']>;
2880
2983
  province?: Maybe<Scalars['String']['output']>;
@@ -2914,6 +3017,7 @@ export type OrderLine = {
2914
3017
  listPrice: Scalars['Int']['output'];
2915
3018
  listPriceIncludesTax: Scalars['Boolean']['output'];
2916
3019
  orderPlacedQuantity: Scalars['Int']['output'];
3020
+ pinnedStockLocationId?: Maybe<Scalars['ID']['output']>;
2917
3021
  productVariant: ProductVariant;
2918
3022
  productVariantId: Scalars['ID']['output'];
2919
3023
  quantity: Scalars['Int']['output'];
@@ -2960,6 +3064,39 @@ export type OrderRevenuePoint = {
2960
3064
  orderCount: Scalars['Int']['output'];
2961
3065
  revenueMinor: Scalars['Int']['output'];
2962
3066
  };
3067
+ export type OrderShipment = {
3068
+ activePickup?: Maybe<ShippingGatewayPickup>;
3069
+ cost: OrderShipmentCost;
3070
+ fulfillment?: Maybe<Fulfillment>;
3071
+ fulfillmentRequest?: Maybe<FulfillmentRequest>;
3072
+ labels: Array<ShippingGatewayLabel>;
3073
+ rateGroup: ShippingGatewayRateGroup;
3074
+ requiresRerate: Scalars['Boolean']['output'];
3075
+ selectedRate?: Maybe<ShippingGatewayRate>;
3076
+ tracking?: Maybe<ShippingGatewayTracking>;
3077
+ };
3078
+ export type OrderShipmentCost = {
3079
+ collectedAmount: Scalars['Int']['output'];
3080
+ costDelta: Scalars['Int']['output'];
3081
+ currencyCode: Scalars['String']['output'];
3082
+ labelCostAmount: Scalars['Int']['output'];
3083
+ refundPendingTotal: Scalars['Int']['output'];
3084
+ refundedTotal: Scalars['Int']['output'];
3085
+ };
3086
+ export type OrderShipmentsView = {
3087
+ labelHistory: Array<ShippingGatewayLabel>;
3088
+ shipments: Array<OrderShipment>;
3089
+ strandedLabels: Array<ShippingGatewayLabel>;
3090
+ summary: OrderShippingCostSummary;
3091
+ };
3092
+ export type OrderShippingCostSummary = {
3093
+ collectedTotal: Scalars['Int']['output'];
3094
+ currencyCode: Scalars['String']['output'];
3095
+ delta: Scalars['Int']['output'];
3096
+ labelCostTotal: Scalars['Int']['output'];
3097
+ refundPendingTotal: Scalars['Int']['output'];
3098
+ refundedTotal: Scalars['Int']['output'];
3099
+ };
2963
3100
  export type OrderTaxLine = {
2964
3101
  description: Scalars['String']['output'];
2965
3102
  provider?: Maybe<Scalars['String']['output']>;
@@ -3039,6 +3176,16 @@ export type PaymentProviderQuote = {
3039
3176
  providerCode: Scalars['String']['output'];
3040
3177
  providerName: Scalars['String']['output'];
3041
3178
  };
3179
+ export type PinOrderLineStockLocationInput = {
3180
+ orderId: Scalars['ID']['input'];
3181
+ orderLineId: Scalars['ID']['input'];
3182
+ /**
3183
+ * The stock location this line must ship from — must stock the line's
3184
+ * variant. Null clears the pin, returning the line to automatic planning
3185
+ * (destination-country preference, then availability).
3186
+ */
3187
+ stockLocationId?: InputMaybe<Scalars['ID']['input']>;
3188
+ };
3042
3189
  export type PluginStatus = 'DISABLED' | 'ENABLED' | 'INPROGRESS';
3043
3190
  export type PricingPolicy = 'fixed_amount' | 'none' | 'percentage';
3044
3191
  export type Product = {
@@ -3107,6 +3254,7 @@ export type ProductVariant = {
3107
3254
  name: Scalars['String']['output'];
3108
3255
  options: Array<ProductOption>;
3109
3256
  outOfStockThreshold: Scalars['Int']['output'];
3257
+ packagePresetId?: Maybe<Scalars['ID']['output']>;
3110
3258
  price: Scalars['Int']['output'];
3111
3259
  priceWithTax: Scalars['Int']['output'];
3112
3260
  prices: Array<ProductVariantPrice>;
@@ -3227,6 +3375,7 @@ export type Query = {
3227
3375
  audienceSegment?: Maybe<AudienceSegment>;
3228
3376
  audienceSegmentByCode?: Maybe<AudienceSegment>;
3229
3377
  audienceSegments: AudienceSegmentList;
3378
+ availablePackageTemplates: Array<ShippingPackageTemplate>;
3230
3379
  availableShippingProviders: Array<ShippingProvider>;
3231
3380
  availableStock: Scalars['Int']['output'];
3232
3381
  availableTaxProviders: Array<TaxProviderOption>;
@@ -3296,6 +3445,7 @@ export type Query = {
3296
3445
  orderHistory: HistoryEntryList;
3297
3446
  orderModifications: Array<OrderModification>;
3298
3447
  orderNotes: HistoryEntryList;
3448
+ orderShipments: OrderShipmentsView;
3299
3449
  orders: OrderList;
3300
3450
  paymentGatewayRefunds: Array<PaymentGatewayRefund>;
3301
3451
  paymentSession?: Maybe<PaymentGatewaySession>;
@@ -3325,8 +3475,10 @@ export type Query = {
3325
3475
  sellingPlanGroups: SellingPlanGroupList;
3326
3476
  shippingGatewayRoutingRules: Array<ShippingGatewayRoutingRule>;
3327
3477
  shippingLabels: Array<ShippingGatewayLabel>;
3478
+ shippingPackagePresets: Array<ShippingPackagePreset>;
3328
3479
  shippingRateGroups: Array<ShippingGatewayRateGroup>;
3329
3480
  stockLocation?: Maybe<StockLocation>;
3481
+ stockLocationFlatRates: Array<StockLocationFlatRate>;
3330
3482
  stockLocations: StockLocationList;
3331
3483
  stockMovements: StockMovementList;
3332
3484
  subscription?: Maybe<BillingSubscription>;
@@ -3554,6 +3706,9 @@ export type QueryorderModificationsArgs = {
3554
3706
  export type QueryorderNotesArgs = {
3555
3707
  input: OrderNotesInput;
3556
3708
  };
3709
+ export type QueryorderShipmentsArgs = {
3710
+ orderId: Scalars['ID']['input'];
3711
+ };
3557
3712
  export type QueryordersArgs = {
3558
3713
  options?: InputMaybe<ListQueryOptions>;
3559
3714
  };
@@ -3638,6 +3793,9 @@ export type QueryshippingRateGroupsArgs = {
3638
3793
  export type QuerystockLocationArgs = {
3639
3794
  id: Scalars['ID']['input'];
3640
3795
  };
3796
+ export type QuerystockLocationFlatRatesArgs = {
3797
+ stockLocationId: Scalars['ID']['input'];
3798
+ };
3641
3799
  export type QuerystockLocationsArgs = {
3642
3800
  options?: InputMaybe<ListQueryOptions>;
3643
3801
  };
@@ -3687,12 +3845,24 @@ export type QueryzoneArgs = {
3687
3845
  export type QueryzonesArgs = {
3688
3846
  options?: InputMaybe<ListQueryOptions>;
3689
3847
  };
3848
+ export type RateFetchFailure = {
3849
+ errorCode: Scalars['String']['output'];
3850
+ providerCode: Scalars['String']['output'];
3851
+ providerName: Scalars['String']['output'];
3852
+ variables: Scalars['JSON']['output'];
3853
+ };
3690
3854
  export type ReceiveIncomingStockInput = {
3691
3855
  note?: InputMaybe<Scalars['String']['input']>;
3692
3856
  quantity: Scalars['Int']['input'];
3693
3857
  stockLocationId: Scalars['ID']['input'];
3694
3858
  variantId: Scalars['ID']['input'];
3695
3859
  };
3860
+ export type RechargeShippingCostDeltaInput = {
3861
+ amount: Scalars['Int']['input'];
3862
+ fulfillmentRequestId?: InputMaybe<Scalars['ID']['input']>;
3863
+ note?: InputMaybe<Scalars['String']['input']>;
3864
+ orderId: Scalars['ID']['input'];
3865
+ };
3696
3866
  export type RecordIncomingStockInput = {
3697
3867
  note?: InputMaybe<Scalars['String']['input']>;
3698
3868
  quantity: Scalars['Int']['input'];
@@ -3813,6 +3983,10 @@ export type ReorderShippingGatewayRoutingRulesInput = {
3813
3983
  ruleIds: Array<Scalars['ID']['input']>;
3814
3984
  stockLocationId: Scalars['ID']['input'];
3815
3985
  };
3986
+ export type ReplaceStockLocationFlatRatesInput = {
3987
+ flatRates: Array<StockLocationFlatRateInput>;
3988
+ stockLocationId: Scalars['ID']['input'];
3989
+ };
3816
3990
  export type ReportDamagedStockInput = {
3817
3991
  note?: InputMaybe<Scalars['String']['input']>;
3818
3992
  quantity: Scalars['Int']['input'];
@@ -3826,6 +4000,13 @@ export type ReportUsageInput = {
3826
4000
  subscriptionId: Scalars['ID']['input'];
3827
4001
  timestamp?: InputMaybe<Scalars['DateTime']['input']>;
3828
4002
  };
4003
+ export type RequestPickupInput = {
4004
+ fulfillmentId: Scalars['ID']['input'];
4005
+ instructions?: InputMaybe<Scalars['String']['input']>;
4006
+ orderId: Scalars['ID']['input'];
4007
+ requestedEndAt?: InputMaybe<Scalars['DateTime']['input']>;
4008
+ requestedStartAt?: InputMaybe<Scalars['DateTime']['input']>;
4009
+ };
3829
4010
  export type RequestUpdateCustomerEmailInput = {
3830
4011
  newEmailAddress: Scalars['String']['input'];
3831
4012
  password: Scalars['String']['input'];
@@ -3856,6 +4037,10 @@ export type ResumeChatSessionInput = {
3856
4037
  afterEventId: Scalars['Int']['input'];
3857
4038
  sessionId: Scalars['String']['input'];
3858
4039
  };
4040
+ export type RevertOrderModificationInput = {
4041
+ modificationId: Scalars['ID']['input'];
4042
+ orderId: Scalars['ID']['input'];
4043
+ };
3859
4044
  export type Role = {
3860
4045
  code: Scalars['String']['output'];
3861
4046
  createdAt: Scalars['DateTime']['output'];
@@ -3993,6 +4178,10 @@ export type SearchSuggestResult = {
3993
4178
  items: Array<SearchSuggestItem>;
3994
4179
  totalItems: Scalars['Int']['output'];
3995
4180
  };
4181
+ export type SelectRateForShipmentInput = {
4182
+ fulfillmentRequestId: Scalars['ID']['input'];
4183
+ rateId: Scalars['ID']['input'];
4184
+ };
3996
4185
  export type SelectRateInput = {
3997
4186
  rateGroupId: Scalars['ID']['input'];
3998
4187
  rateId: Scalars['ID']['input'];
@@ -4122,6 +4311,20 @@ export type SettleRefundInput = {
4122
4311
  id: Scalars['ID']['input'];
4123
4312
  transactionId: Scalars['String']['input'];
4124
4313
  };
4314
+ export type ShipmentRate = {
4315
+ amount: Scalars['Int']['output'];
4316
+ carrier: Scalars['String']['output'];
4317
+ consumedByLabelId?: Maybe<Scalars['ID']['output']>;
4318
+ currency: Scalars['String']['output'];
4319
+ estimated: Scalars['Boolean']['output'];
4320
+ estimatedDays?: Maybe<Scalars['Int']['output']>;
4321
+ extRateId: Scalars['String']['output'];
4322
+ id: Scalars['ID']['output'];
4323
+ providerCode: Scalars['String']['output'];
4324
+ selected: Scalars['Boolean']['output'];
4325
+ service: Scalars['String']['output'];
4326
+ suggested: Scalars['Boolean']['output'];
4327
+ };
4125
4328
  export type ShippingGatewayCarrier = {
4126
4329
  code: Scalars['String']['output'];
4127
4330
  enabled: Scalars['Boolean']['output'];
@@ -4131,20 +4334,46 @@ export type ShippingGatewayCarrier = {
4131
4334
  };
4132
4335
  export type ShippingGatewayLabel = {
4133
4336
  carrier: Scalars['String']['output'];
4337
+ costAmount?: Maybe<Scalars['Int']['output']>;
4338
+ costCurrencyCode?: Maybe<Scalars['String']['output']>;
4134
4339
  fulfillmentId?: Maybe<Scalars['ID']['output']>;
4135
4340
  id: Scalars['ID']['output'];
4136
4341
  isReturnLabel: Scalars['Boolean']['output'];
4137
4342
  labelUrl: Scalars['String']['output'];
4343
+ lastErrorCode?: Maybe<Scalars['String']['output']>;
4344
+ lastErrorDetail?: Maybe<Scalars['String']['output']>;
4138
4345
  orderId: Scalars['ID']['output'];
4139
4346
  providerCode: Scalars['String']['output'];
4347
+ rateGroupId?: Maybe<Scalars['ID']['output']>;
4140
4348
  service: Scalars['String']['output'];
4141
4349
  status: Scalars['String']['output'];
4142
4350
  trackingNumber: Scalars['String']['output'];
4351
+ voidedAt?: Maybe<Scalars['DateTime']['output']>;
4352
+ };
4353
+ export type ShippingGatewayPickup = {
4354
+ carrier: Scalars['String']['output'];
4355
+ confirmationCode?: Maybe<Scalars['String']['output']>;
4356
+ confirmedEndAt?: Maybe<Scalars['DateTime']['output']>;
4357
+ confirmedStartAt?: Maybe<Scalars['DateTime']['output']>;
4358
+ createdAt: Scalars['DateTime']['output'];
4359
+ extPickupId?: Maybe<Scalars['String']['output']>;
4360
+ fulfillmentId?: Maybe<Scalars['ID']['output']>;
4361
+ id: Scalars['ID']['output'];
4362
+ lastErrorCode?: Maybe<Scalars['String']['output']>;
4363
+ orderId: Scalars['ID']['output'];
4364
+ providerCode: Scalars['String']['output'];
4365
+ rateGroupId?: Maybe<Scalars['ID']['output']>;
4366
+ requestedEndAt: Scalars['DateTime']['output'];
4367
+ requestedStartAt: Scalars['DateTime']['output'];
4368
+ status: Scalars['String']['output'];
4369
+ updatedAt: Scalars['DateTime']['output'];
4143
4370
  };
4144
4371
  export type ShippingGatewayRate = {
4145
4372
  amount: Scalars['Int']['output'];
4146
4373
  carrier: Scalars['String']['output'];
4374
+ consumedByLabelId?: Maybe<Scalars['ID']['output']>;
4147
4375
  currency: Scalars['String']['output'];
4376
+ estimated: Scalars['Boolean']['output'];
4148
4377
  estimatedDays?: Maybe<Scalars['Int']['output']>;
4149
4378
  extRateId: Scalars['String']['output'];
4150
4379
  id: Scalars['ID']['output'];
@@ -4153,12 +4382,17 @@ export type ShippingGatewayRate = {
4153
4382
  service: Scalars['String']['output'];
4154
4383
  };
4155
4384
  export type ShippingGatewayRateGroup = {
4385
+ fulfillmentRequestId?: Maybe<Scalars['ID']['output']>;
4156
4386
  id: Scalars['ID']['output'];
4387
+ lastRateErrors: Array<RateFetchFailure>;
4157
4388
  orderId: Scalars['ID']['output'];
4158
4389
  orderLines: Array<ShippingGatewayRateGroupLine>;
4159
4390
  rates: Array<ShippingGatewayRate>;
4391
+ rechargeModificationId?: Maybe<Scalars['ID']['output']>;
4392
+ requiresRerate: Scalars['Boolean']['output'];
4160
4393
  stockLocationId?: Maybe<Scalars['ID']['output']>;
4161
4394
  stockLocationName?: Maybe<Scalars['String']['output']>;
4395
+ supersededAt?: Maybe<Scalars['DateTime']['output']>;
4162
4396
  };
4163
4397
  export type ShippingGatewayRateGroupLine = {
4164
4398
  dimensionUnit?: Maybe<Scalars['String']['output']>;
@@ -4172,28 +4406,27 @@ export type ShippingGatewayRateGroupLine = {
4172
4406
  weightUnit?: Maybe<Scalars['String']['output']>;
4173
4407
  width?: Maybe<Scalars['Float']['output']>;
4174
4408
  };
4175
- export type ShippingGatewayRoutingFlatRate = {
4176
- amount: Scalars['Int']['output'];
4177
- code: Scalars['String']['output'];
4178
- createdAt: Scalars['DateTime']['output'];
4179
- currencyCode: Scalars['String']['output'];
4180
- estimatedDays?: Maybe<Scalars['Int']['output']>;
4181
- id: Scalars['ID']['output'];
4182
- name: Scalars['String']['output'];
4183
- updatedAt: Scalars['DateTime']['output'];
4184
- };
4185
4409
  export type ShippingGatewayRoutingRule = {
4410
+ allProviders: Scalars['Boolean']['output'];
4411
+ cities: Array<Scalars['String']['output']>;
4186
4412
  countries: Array<Country>;
4187
4413
  createdAt: Scalars['DateTime']['output'];
4188
4414
  enabled: Scalars['Boolean']['output'];
4189
- flatRates: Array<ShippingGatewayRoutingFlatRate>;
4190
- fulfillmentType: ShippingRoutingFulfillmentType;
4191
4415
  id: Scalars['ID']['output'];
4192
4416
  priority: Scalars['Int']['output'];
4193
- providerCode?: Maybe<Scalars['String']['output']>;
4417
+ providerCodes: Array<Scalars['String']['output']>;
4194
4418
  scopeType: ShippingRoutingScopeType;
4195
4419
  stockLocationId: Scalars['ID']['output'];
4196
4420
  updatedAt: Scalars['DateTime']['output'];
4421
+ useFlatRates: Scalars['Boolean']['output'];
4422
+ };
4423
+ export type ShippingGatewayTracking = {
4424
+ createdAt: Scalars['DateTime']['output'];
4425
+ events: Scalars['JSON']['output'];
4426
+ id: Scalars['ID']['output'];
4427
+ labelId: Scalars['ID']['output'];
4428
+ status: Scalars['String']['output'];
4429
+ updatedAt: Scalars['DateTime']['output'];
4197
4430
  };
4198
4431
  export type ShippingLine = {
4199
4432
  adjustments: Array<Adjustment>;
@@ -4205,19 +4438,41 @@ export type ShippingLine = {
4205
4438
  taxLines: Array<OrderTaxLine>;
4206
4439
  updatedAt: Scalars['DateTime']['output'];
4207
4440
  };
4441
+ export type ShippingPackagePreset = {
4442
+ channelId: Scalars['ID']['output'];
4443
+ dimensionUnit?: Maybe<Scalars['String']['output']>;
4444
+ easypostPredefinedPackage?: Maybe<Scalars['String']['output']>;
4445
+ height?: Maybe<Scalars['Float']['output']>;
4446
+ hidden: Scalars['Boolean']['output'];
4447
+ id: Scalars['ID']['output'];
4448
+ isDefault: Scalars['Boolean']['output'];
4449
+ isProtected: Scalars['Boolean']['output'];
4450
+ kind: ShippingPackagePresetKind;
4451
+ length?: Maybe<Scalars['Float']['output']>;
4452
+ name: Scalars['String']['output'];
4453
+ shippoTemplate?: Maybe<Scalars['String']['output']>;
4454
+ tareWeightGrams?: Maybe<Scalars['Int']['output']>;
4455
+ width?: Maybe<Scalars['Float']['output']>;
4456
+ };
4457
+ export type ShippingPackagePresetDimensionsInput = {
4458
+ height: Scalars['Float']['input'];
4459
+ length: Scalars['Float']['input'];
4460
+ unit: Scalars['String']['input'];
4461
+ width: Scalars['Float']['input'];
4462
+ };
4463
+ export type ShippingPackagePresetKind = 'CARRIER_TEMPLATE' | 'CUSTOM_BOX';
4464
+ export type ShippingPackageTemplate = {
4465
+ carrier: Scalars['String']['output'];
4466
+ label: Scalars['String']['output'];
4467
+ providerCode: Scalars['String']['output'];
4468
+ providerName: Scalars['String']['output'];
4469
+ token: Scalars['String']['output'];
4470
+ };
4208
4471
  export type ShippingProvider = {
4209
4472
  code: Scalars['String']['output'];
4210
4473
  name: Scalars['String']['output'];
4211
4474
  pluginBacked: Scalars['Boolean']['output'];
4212
4475
  };
4213
- export type ShippingRoutingFlatRateInput = {
4214
- amount: Scalars['Int']['input'];
4215
- code: Scalars['String']['input'];
4216
- currencyCode: Scalars['String']['input'];
4217
- estimatedDays?: InputMaybe<Scalars['Int']['input']>;
4218
- name: Scalars['String']['input'];
4219
- };
4220
- export type ShippingRoutingFulfillmentType = 'MANUAL' | 'PROVIDER';
4221
4476
  export type ShippingRoutingScopeType = 'COUNTRIES' | 'DOMESTIC' | 'INTERNATIONAL';
4222
4477
  export type ShopAddItemToOrderInput = {
4223
4478
  quantity: Scalars['Int']['input'];
@@ -4272,7 +4527,6 @@ export type StockLocationAddress = {
4272
4527
  company?: Maybe<Scalars['String']['output']>;
4273
4528
  countryCode: Scalars['String']['output'];
4274
4529
  createdAt: Scalars['DateTime']['output'];
4275
- fullName?: Maybe<Scalars['String']['output']>;
4276
4530
  id: Scalars['ID']['output'];
4277
4531
  phoneNumber?: Maybe<Scalars['String']['output']>;
4278
4532
  postalCode: Scalars['String']['output'];
@@ -4281,6 +4535,24 @@ export type StockLocationAddress = {
4281
4535
  streetLine2?: Maybe<Scalars['String']['output']>;
4282
4536
  updatedAt: Scalars['DateTime']['output'];
4283
4537
  };
4538
+ export type StockLocationFlatRate = {
4539
+ amount: Scalars['Int']['output'];
4540
+ code: Scalars['String']['output'];
4541
+ createdAt: Scalars['DateTime']['output'];
4542
+ currencyCode: Scalars['String']['output'];
4543
+ estimatedDays?: Maybe<Scalars['Int']['output']>;
4544
+ id: Scalars['ID']['output'];
4545
+ name: Scalars['String']['output'];
4546
+ stockLocationId: Scalars['ID']['output'];
4547
+ updatedAt: Scalars['DateTime']['output'];
4548
+ };
4549
+ export type StockLocationFlatRateInput = {
4550
+ amount: Scalars['Int']['input'];
4551
+ code: Scalars['String']['input'];
4552
+ currencyCode: Scalars['String']['input'];
4553
+ estimatedDays?: InputMaybe<Scalars['Int']['input']>;
4554
+ name: Scalars['String']['input'];
4555
+ };
4284
4556
  export type StockLocationList = {
4285
4557
  items: Array<StockLocation>;
4286
4558
  totalItems: Scalars['Int']['output'];
@@ -4315,6 +4587,7 @@ export type Subscription = {
4315
4587
  chatMessageStream: ChatMessage;
4316
4588
  deploymentLogs: DeploymentLogEntry;
4317
4589
  deploymentStatusChanged: Deployment;
4590
+ fulfillmentStateChanged: FulfillmentStateTransition;
4318
4591
  hookDispatched: HookDispatchEvent;
4319
4592
  resumeChatSession: ChatMessage;
4320
4593
  workspaceReadiness: WorkspaceReadiness;
@@ -4328,6 +4601,9 @@ export type SubscriptiondeploymentLogsArgs = {
4328
4601
  export type SubscriptiondeploymentStatusChangedArgs = {
4329
4602
  type: DeploymentType;
4330
4603
  };
4604
+ export type SubscriptionfulfillmentStateChangedArgs = {
4605
+ orderId: Scalars['ID']['input'];
4606
+ };
4331
4607
  export type SubscriptionhookDispatchedArgs = {
4332
4608
  hookPoints: Array<Scalars['String']['input']>;
4333
4609
  };
@@ -4441,6 +4717,7 @@ export type TaxCategory = {
4441
4717
  externalCodes: Array<TaxCategoryExternalCode>;
4442
4718
  id: Scalars['ID']['output'];
4443
4719
  isDefault: Scalars['Boolean']['output'];
4720
+ isProtected: Scalars['Boolean']['output'];
4444
4721
  name: Scalars['String']['output'];
4445
4722
  updatedAt: Scalars['DateTime']['output'];
4446
4723
  };
@@ -4549,7 +4826,6 @@ export type UpdateAddressInput = {
4549
4826
  countryId?: InputMaybe<Scalars['ID']['input']>;
4550
4827
  defaultBillingAddress?: InputMaybe<Scalars['Boolean']['input']>;
4551
4828
  defaultShippingAddress?: InputMaybe<Scalars['Boolean']['input']>;
4552
- fullName?: InputMaybe<Scalars['String']['input']>;
4553
4829
  id: Scalars['ID']['input'];
4554
4830
  phoneNumber?: InputMaybe<Scalars['String']['input']>;
4555
4831
  postalCode?: InputMaybe<Scalars['String']['input']>;
@@ -4609,6 +4885,7 @@ export type UpdateChannelSettingsInput = {
4609
4885
  defaultFulfillmentHandlerCode?: InputMaybe<Scalars['String']['input']>;
4610
4886
  defaultPaymentProviderCode?: InputMaybe<Scalars['String']['input']>;
4611
4887
  defaultWeightUnit?: InputMaybe<WeightUnit>;
4888
+ emailAddress?: InputMaybe<Scalars['String']['input']>;
4612
4889
  fxMarkupPercent?: InputMaybe<Scalars['Float']['input']>;
4613
4890
  fxRoundingRule?: InputMaybe<Scalars['String']['input']>;
4614
4891
  requireCustomerForCheckout?: InputMaybe<Scalars['Boolean']['input']>;
@@ -4779,6 +5056,7 @@ export type UpdateProductVariantInput = {
4779
5056
  featuredAssetId?: InputMaybe<Scalars['ID']['input']>;
4780
5057
  id: Scalars['ID']['input'];
4781
5058
  optionIds?: InputMaybe<Array<Scalars['ID']['input']>>;
5059
+ packagePresetId?: InputMaybe<Scalars['ID']['input']>;
4782
5060
  price?: InputMaybe<Scalars['Int']['input']>;
4783
5061
  sku?: InputMaybe<Scalars['String']['input']>;
4784
5062
  stockLevels?: InputMaybe<Array<StockLevelInput>>;
@@ -4844,14 +5122,15 @@ export type UpdateSellingPlanInput = {
4844
5122
  trialDays?: InputMaybe<Scalars['Int']['input']>;
4845
5123
  };
4846
5124
  export type UpdateShippingGatewayRoutingRuleInput = {
5125
+ allProviders?: InputMaybe<Scalars['Boolean']['input']>;
5126
+ cities?: InputMaybe<Array<Scalars['String']['input']>>;
4847
5127
  countryCodes?: InputMaybe<Array<Scalars['String']['input']>>;
4848
5128
  enabled?: InputMaybe<Scalars['Boolean']['input']>;
4849
- flatRates?: InputMaybe<Array<ShippingRoutingFlatRateInput>>;
4850
- fulfillmentType?: InputMaybe<ShippingRoutingFulfillmentType>;
4851
5129
  id: Scalars['ID']['input'];
4852
5130
  priority?: InputMaybe<Scalars['Int']['input']>;
4853
- providerCode?: InputMaybe<Scalars['String']['input']>;
5131
+ providerCodes?: InputMaybe<Array<Scalars['String']['input']>>;
4854
5132
  scopeType?: InputMaybe<ShippingRoutingScopeType>;
5133
+ useFlatRates?: InputMaybe<Scalars['Boolean']['input']>;
4855
5134
  };
4856
5135
  export type UpdateShippingLabelInput = {
4857
5136
  carrier?: InputMaybe<Scalars['String']['input']>;
@@ -4859,11 +5138,19 @@ export type UpdateShippingLabelInput = {
4859
5138
  service?: InputMaybe<Scalars['String']['input']>;
4860
5139
  trackingNumber?: InputMaybe<Scalars['String']['input']>;
4861
5140
  };
5141
+ export type UpdateShippingPackagePresetInput = {
5142
+ dimensions?: InputMaybe<ShippingPackagePresetDimensionsInput>;
5143
+ easypostPredefinedPackage?: InputMaybe<Scalars['String']['input']>;
5144
+ id: Scalars['ID']['input'];
5145
+ isDefault?: InputMaybe<Scalars['Boolean']['input']>;
5146
+ name?: InputMaybe<Scalars['String']['input']>;
5147
+ shippoTemplate?: InputMaybe<Scalars['String']['input']>;
5148
+ tareWeightGrams?: InputMaybe<Scalars['Int']['input']>;
5149
+ };
4862
5150
  export type UpdateStockLocationAddressInput = {
4863
5151
  city?: InputMaybe<Scalars['String']['input']>;
4864
5152
  company?: InputMaybe<Scalars['String']['input']>;
4865
5153
  countryCode?: InputMaybe<Scalars['String']['input']>;
4866
- fullName?: InputMaybe<Scalars['String']['input']>;
4867
5154
  phoneNumber?: InputMaybe<Scalars['String']['input']>;
4868
5155
  postalCode?: InputMaybe<Scalars['String']['input']>;
4869
5156
  province?: InputMaybe<Scalars['String']['input']>;
@@ -5860,7 +6147,7 @@ export type UpdateChannelSettingsMutationVariables = Exact<{
5860
6147
  input: UpdateChannelSettingsInput;
5861
6148
  }>;
5862
6149
  export type UpdateChannelSettingsMutation = {
5863
- updateChannelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
6150
+ updateChannelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'emailAddress' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'chargeTaxOnShipping' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
5864
6151
  companyAddress?: Maybe<Pick<CompanyAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
5865
6152
  });
5866
6153
  };
@@ -5870,7 +6157,7 @@ export type ProvisionChannelMutationVariables = Exact<{
5870
6157
  export type ProvisionChannelMutation = {
5871
6158
  provisionChannel: {
5872
6159
  channel: Pick<Channel, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'token' | 'secret' | 'previewUrl' | 'defaultLanguageCode' | 'defaultCurrencyCode' | 'availableLanguageCodes' | 'availableCurrencyCodes' | 'description' | 'pricesIncludeTax' | 'taxProviderCode' | 'trackInventory' | 'outOfStockThreshold' | 'sellerId' | 'defaultTaxZoneId'>;
5873
- channelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
6160
+ channelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'emailAddress' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'chargeTaxOnShipping' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
5874
6161
  companyAddress?: Maybe<Pick<CompanyAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
5875
6162
  });
5876
6163
  role: Pick<Role, 'id' | 'name' | 'code' | 'description' | 'permissions'>;
@@ -5882,14 +6169,14 @@ export type AdminExchangeRatesQueryVariables = Exact<{
5882
6169
  export type AdminExchangeRatesQuery = {
5883
6170
  exchangeRates: Array<Pick<ExchangeRate, 'id' | 'baseCurrencyCode' | 'targetCurrencyCode' | 'rate' | 'rateUpdatedAt'>>;
5884
6171
  };
5885
- export type ChannelSettingsFieldFragment = (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
6172
+ export type ChannelSettingsFieldFragment = (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'emailAddress' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'chargeTaxOnShipping' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
5886
6173
  companyAddress?: Maybe<Pick<CompanyAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
5887
6174
  });
5888
6175
  export type ChannelSettingsQueryVariables = Exact<{
5889
6176
  [key: string]: never;
5890
6177
  }>;
5891
6178
  export type ChannelSettingsQuery = {
5892
- channelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
6179
+ channelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'emailAddress' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'chargeTaxOnShipping' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
5893
6180
  companyAddress?: Maybe<Pick<CompanyAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
5894
6181
  });
5895
6182
  };
@@ -5897,7 +6184,7 @@ export type ChannelUpdateSettingsMutationVariables = Exact<{
5897
6184
  input: UpdateChannelSettingsInput;
5898
6185
  }>;
5899
6186
  export type ChannelUpdateSettingsMutation = {
5900
- updateChannelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
6187
+ updateChannelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'emailAddress' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'chargeTaxOnShipping' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
5901
6188
  companyAddress?: Maybe<Pick<CompanyAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
5902
6189
  });
5903
6190
  };
@@ -6106,38 +6393,8 @@ export type CustomerSignupsByDayQueryVariables = Exact<{
6106
6393
  export type CustomerSignupsByDayQuery = {
6107
6394
  customerSignupsByDay: Array<Pick<CustomerSignupPoint, 'day' | 'count'>>;
6108
6395
  };
6109
- export type CreateCustomerGroupMutationVariables = Exact<{
6110
- input: CreateCustomerGroupInput;
6111
- }>;
6112
- export type CreateCustomerGroupMutation = {
6113
- createCustomerGroup: Pick<CustomerGroup, 'id' | 'createdAt' | 'updatedAt' | 'name'>;
6114
- };
6115
- export type UpdateCustomerGroupMutationVariables = Exact<{
6116
- input: UpdateCustomerGroupInput;
6117
- }>;
6118
- export type UpdateCustomerGroupMutation = {
6119
- updateCustomerGroup: Pick<CustomerGroup, 'id' | 'createdAt' | 'updatedAt' | 'name'>;
6120
- };
6121
- export type DeleteCustomerGroupMutationVariables = Exact<{
6122
- id: Scalars['ID']['input'];
6123
- }>;
6124
- export type DeleteCustomerGroupMutation = {
6125
- deleteCustomerGroup: Pick<DeletionResponse, 'result' | 'message'>;
6126
- };
6127
- export type AddCustomersToGroupMutationVariables = Exact<{
6128
- input: AddCustomersToGroupInput;
6129
- }>;
6130
- export type AddCustomersToGroupMutation = {
6131
- addCustomersToGroup: Pick<CustomerGroup, 'id' | 'createdAt' | 'updatedAt' | 'name'>;
6132
- };
6133
- export type RemoveCustomersFromGroupMutationVariables = Exact<{
6134
- input: RemoveCustomersFromGroupInput;
6135
- }>;
6136
- export type RemoveCustomersFromGroupMutation = {
6137
- removeCustomersFromGroup: Pick<CustomerGroup, 'id' | 'createdAt' | 'updatedAt' | 'name'>;
6138
- };
6139
6396
  export type CustomerFieldFragment = (Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'> & {
6140
- addresses: Array<(Pick<Address, 'id' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6397
+ addresses: Array<(Pick<Address, 'id' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6141
6398
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6142
6399
  })>;
6143
6400
  });
@@ -6146,7 +6403,7 @@ export type AdminCustomerQueryVariables = Exact<{
6146
6403
  }>;
6147
6404
  export type AdminCustomerQuery = {
6148
6405
  customer?: Maybe<(Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'> & {
6149
- addresses: Array<(Pick<Address, 'id' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6406
+ addresses: Array<(Pick<Address, 'id' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6150
6407
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6151
6408
  })>;
6152
6409
  })>;
@@ -6157,7 +6414,7 @@ export type AdminCustomersQueryVariables = Exact<{
6157
6414
  export type AdminCustomersQuery = {
6158
6415
  customers: (Pick<CustomerList, 'totalItems'> & {
6159
6416
  items: Array<(Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'> & {
6160
- addresses: Array<(Pick<Address, 'id' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6417
+ addresses: Array<(Pick<Address, 'id' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6161
6418
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6162
6419
  })>;
6163
6420
  })>;
@@ -6168,7 +6425,7 @@ export type CreateCustomerMutationVariables = Exact<{
6168
6425
  }>;
6169
6426
  export type CreateCustomerMutation = {
6170
6427
  createCustomer: (Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'> & {
6171
- addresses: Array<(Pick<Address, 'id' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6428
+ addresses: Array<(Pick<Address, 'id' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6172
6429
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6173
6430
  })>;
6174
6431
  });
@@ -6178,7 +6435,7 @@ export type UpdateCustomerMutationVariables = Exact<{
6178
6435
  }>;
6179
6436
  export type UpdateCustomerMutation = {
6180
6437
  updateCustomer: (Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'> & {
6181
- addresses: Array<(Pick<Address, 'id' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6438
+ addresses: Array<(Pick<Address, 'id' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6182
6439
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6183
6440
  })>;
6184
6441
  });
@@ -6193,7 +6450,7 @@ export type CreateCustomerAddressMutationVariables = Exact<{
6193
6450
  input: CreateCustomerAddressInput;
6194
6451
  }>;
6195
6452
  export type CreateCustomerAddressMutation = {
6196
- createCustomerAddress: (Pick<Address, 'id' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6453
+ createCustomerAddress: (Pick<Address, 'id' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6197
6454
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6198
6455
  });
6199
6456
  };
@@ -6201,7 +6458,7 @@ export type UpdateCustomerAddressMutationVariables = Exact<{
6201
6458
  input: UpdateAddressInput;
6202
6459
  }>;
6203
6460
  export type UpdateCustomerAddressMutation = {
6204
- updateCustomerAddress: (Pick<Address, 'id' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6461
+ updateCustomerAddress: (Pick<Address, 'id' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6205
6462
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6206
6463
  });
6207
6464
  };
@@ -6215,7 +6472,7 @@ export type CustomerCreateAddressMutationVariables = Exact<{
6215
6472
  input: CreateCustomerAddressInput;
6216
6473
  }>;
6217
6474
  export type CustomerCreateAddressMutation = {
6218
- createCustomerAddress: (Pick<Address, 'id' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6475
+ createCustomerAddress: (Pick<Address, 'id' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6219
6476
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6220
6477
  });
6221
6478
  };
@@ -6223,7 +6480,7 @@ export type CustomerUpdateAddressMutationVariables = Exact<{
6223
6480
  input: UpdateAddressInput;
6224
6481
  }>;
6225
6482
  export type CustomerUpdateAddressMutation = {
6226
- updateCustomerAddress: (Pick<Address, 'id' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6483
+ updateCustomerAddress: (Pick<Address, 'id' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber' | 'defaultShippingAddress' | 'defaultBillingAddress'> & {
6227
6484
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6228
6485
  });
6229
6486
  };
@@ -6248,34 +6505,34 @@ export type CustomerGroupsQuery = {
6248
6505
  items: Array<Pick<CustomerGroup, 'id' | 'createdAt' | 'updatedAt' | 'name'>>;
6249
6506
  });
6250
6507
  };
6251
- export type CustomerCreateGroupMutationVariables = Exact<{
6508
+ export type CreateCustomerGroupMutationVariables = Exact<{
6252
6509
  input: CreateCustomerGroupInput;
6253
6510
  }>;
6254
- export type CustomerCreateGroupMutation = {
6511
+ export type CreateCustomerGroupMutation = {
6255
6512
  createCustomerGroup: Pick<CustomerGroup, 'id' | 'createdAt' | 'updatedAt' | 'name'>;
6256
6513
  };
6257
- export type CustomerUpdateGroupMutationVariables = Exact<{
6514
+ export type UpdateCustomerGroupMutationVariables = Exact<{
6258
6515
  input: UpdateCustomerGroupInput;
6259
6516
  }>;
6260
- export type CustomerUpdateGroupMutation = {
6517
+ export type UpdateCustomerGroupMutation = {
6261
6518
  updateCustomerGroup: Pick<CustomerGroup, 'id' | 'createdAt' | 'updatedAt' | 'name'>;
6262
6519
  };
6263
- export type CustomerDeleteGroupMutationVariables = Exact<{
6520
+ export type DeleteCustomerGroupMutationVariables = Exact<{
6264
6521
  id: Scalars['ID']['input'];
6265
6522
  }>;
6266
- export type CustomerDeleteGroupMutation = {
6523
+ export type DeleteCustomerGroupMutation = {
6267
6524
  deleteCustomerGroup: Pick<DeletionResponse, 'result' | 'message'>;
6268
6525
  };
6269
- export type CustomerAddCustomersGroupMutationVariables = Exact<{
6526
+ export type AddCustomersToGroupMutationVariables = Exact<{
6270
6527
  input: AddCustomersToGroupInput;
6271
6528
  }>;
6272
- export type CustomerAddCustomersGroupMutation = {
6529
+ export type AddCustomersToGroupMutation = {
6273
6530
  addCustomersToGroup: Pick<CustomerGroup, 'id' | 'createdAt' | 'updatedAt' | 'name'>;
6274
6531
  };
6275
- export type CustomerRemoveCustomersGroupMutationVariables = Exact<{
6532
+ export type RemoveCustomersFromGroupMutationVariables = Exact<{
6276
6533
  input: RemoveCustomersFromGroupInput;
6277
6534
  }>;
6278
- export type CustomerRemoveCustomersGroupMutation = {
6535
+ export type RemoveCustomersFromGroupMutation = {
6279
6536
  removeCustomersFromGroup: Pick<CustomerGroup, 'id' | 'createdAt' | 'updatedAt' | 'name'>;
6280
6537
  };
6281
6538
  export type DeploymentFieldFragment = Pick<Deployment, 'id' | 'name' | 'type' | 'status' | 'url' | 'providerCode' | 'providerAppName' | 'instances' | 'lastDeployedAt' | 'errorMessage' | 'channelId' | 'createdAt' | 'updatedAt'>;
@@ -6482,7 +6739,7 @@ export type FulfillmentRequestLineFieldFragment = Pick<FulfillmentRequestLine, '
6482
6739
  export type HoldReasonFieldFragment = Pick<HoldReason, 'code' | 'addedAt' | 'note'>;
6483
6740
  export type FulfillmentRequestFieldFragment = (Pick<FulfillmentRequest, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'deliveryMethod' | 'handlerCode'> & {
6484
6741
  holdReasons: Array<Pick<HoldReason, 'code' | 'addedAt' | 'note'>>;
6485
- destinationAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6742
+ destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6486
6743
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6487
6744
  })>;
6488
6745
  assignedLocation: Pick<StockLocation, 'id' | 'name'>;
@@ -6495,7 +6752,7 @@ export type FulfillmentRequestQueryVariables = Exact<{
6495
6752
  export type FulfillmentRequestQuery = {
6496
6753
  fulfillmentRequest?: Maybe<(Pick<FulfillmentRequest, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'deliveryMethod' | 'handlerCode'> & {
6497
6754
  holdReasons: Array<Pick<HoldReason, 'code' | 'addedAt' | 'note'>>;
6498
- destinationAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6755
+ destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6499
6756
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6500
6757
  })>;
6501
6758
  assignedLocation: Pick<StockLocation, 'id' | 'name'>;
@@ -6509,7 +6766,7 @@ export type FulfillmentRequestsForOrderQueryVariables = Exact<{
6509
6766
  export type FulfillmentRequestsForOrderQuery = {
6510
6767
  fulfillmentRequestsForOrder: Array<(Pick<FulfillmentRequest, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'deliveryMethod' | 'handlerCode'> & {
6511
6768
  holdReasons: Array<Pick<HoldReason, 'code' | 'addedAt' | 'note'>>;
6512
- destinationAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6769
+ destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6513
6770
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6514
6771
  })>;
6515
6772
  assignedLocation: Pick<StockLocation, 'id' | 'name'>;
@@ -6527,7 +6784,7 @@ export type AcceptFulfillmentRequestMutationVariables = Exact<{
6527
6784
  export type AcceptFulfillmentRequestMutation = {
6528
6785
  acceptFulfillmentRequest: (Pick<FulfillmentRequest, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'deliveryMethod' | 'handlerCode'> & {
6529
6786
  holdReasons: Array<Pick<HoldReason, 'code' | 'addedAt' | 'note'>>;
6530
- destinationAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6787
+ destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6531
6788
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6532
6789
  })>;
6533
6790
  assignedLocation: Pick<StockLocation, 'id' | 'name'>;
@@ -6541,7 +6798,7 @@ export type CancelFulfillmentRequestMutationVariables = Exact<{
6541
6798
  export type CancelFulfillmentRequestMutation = {
6542
6799
  cancelFulfillmentRequest: (Pick<FulfillmentRequest, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'deliveryMethod' | 'handlerCode'> & {
6543
6800
  holdReasons: Array<Pick<HoldReason, 'code' | 'addedAt' | 'note'>>;
6544
- destinationAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6801
+ destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6545
6802
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6546
6803
  })>;
6547
6804
  assignedLocation: Pick<StockLocation, 'id' | 'name'>;
@@ -6555,7 +6812,7 @@ export type MoveFulfillmentRequestMutationVariables = Exact<{
6555
6812
  export type MoveFulfillmentRequestMutation = {
6556
6813
  moveFulfillmentRequest: (Pick<FulfillmentRequest, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'deliveryMethod' | 'handlerCode'> & {
6557
6814
  holdReasons: Array<Pick<HoldReason, 'code' | 'addedAt' | 'note'>>;
6558
- destinationAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6815
+ destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6559
6816
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6560
6817
  })>;
6561
6818
  assignedLocation: Pick<StockLocation, 'id' | 'name'>;
@@ -6569,7 +6826,7 @@ export type SplitFulfillmentRequestMutationVariables = Exact<{
6569
6826
  export type SplitFulfillmentRequestMutation = {
6570
6827
  splitFulfillmentRequest: (Pick<FulfillmentRequest, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'deliveryMethod' | 'handlerCode'> & {
6571
6828
  holdReasons: Array<Pick<HoldReason, 'code' | 'addedAt' | 'note'>>;
6572
- destinationAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6829
+ destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6573
6830
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6574
6831
  })>;
6575
6832
  assignedLocation: Pick<StockLocation, 'id' | 'name'>;
@@ -6583,7 +6840,7 @@ export type MergeFulfillmentRequestsMutationVariables = Exact<{
6583
6840
  export type MergeFulfillmentRequestsMutation = {
6584
6841
  mergeFulfillmentRequests: (Pick<FulfillmentRequest, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'deliveryMethod' | 'handlerCode'> & {
6585
6842
  holdReasons: Array<Pick<HoldReason, 'code' | 'addedAt' | 'note'>>;
6586
- destinationAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6843
+ destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6587
6844
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6588
6845
  })>;
6589
6846
  assignedLocation: Pick<StockLocation, 'id' | 'name'>;
@@ -6597,7 +6854,7 @@ export type AddFulfillmentRequestHoldMutationVariables = Exact<{
6597
6854
  export type AddFulfillmentRequestHoldMutation = {
6598
6855
  addFulfillmentRequestHold: (Pick<FulfillmentRequest, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'deliveryMethod' | 'handlerCode'> & {
6599
6856
  holdReasons: Array<Pick<HoldReason, 'code' | 'addedAt' | 'note'>>;
6600
- destinationAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6857
+ destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6601
6858
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6602
6859
  })>;
6603
6860
  assignedLocation: Pick<StockLocation, 'id' | 'name'>;
@@ -6611,7 +6868,7 @@ export type RemoveFulfillmentRequestHoldMutationVariables = Exact<{
6611
6868
  export type RemoveFulfillmentRequestHoldMutation = {
6612
6869
  removeFulfillmentRequestHold: (Pick<FulfillmentRequest, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'deliveryMethod' | 'handlerCode'> & {
6613
6870
  holdReasons: Array<Pick<HoldReason, 'code' | 'addedAt' | 'note'>>;
6614
- destinationAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6871
+ destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6615
6872
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6616
6873
  })>;
6617
6874
  assignedLocation: Pick<StockLocation, 'id' | 'name'>;
@@ -6625,7 +6882,7 @@ export type ChangeFulfillmentRequestDeliveryMethodMutationVariables = Exact<{
6625
6882
  export type ChangeFulfillmentRequestDeliveryMethodMutation = {
6626
6883
  changeFulfillmentRequestDeliveryMethod: (Pick<FulfillmentRequest, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'deliveryMethod' | 'handlerCode'> & {
6627
6884
  holdReasons: Array<Pick<HoldReason, 'code' | 'addedAt' | 'note'>>;
6628
- destinationAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6885
+ destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6629
6886
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6630
6887
  })>;
6631
6888
  assignedLocation: Pick<StockLocation, 'id' | 'name'>;
@@ -6639,7 +6896,7 @@ export type CreateFulfillmentRequestsForOrderMutationVariables = Exact<{
6639
6896
  export type CreateFulfillmentRequestsForOrderMutation = {
6640
6897
  createFulfillmentRequestsForOrder: Array<(Pick<FulfillmentRequest, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'deliveryMethod' | 'handlerCode'> & {
6641
6898
  holdReasons: Array<Pick<HoldReason, 'code' | 'addedAt' | 'note'>>;
6642
- destinationAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6899
+ destinationAddress?: Maybe<(Pick<OrderAddress, 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6643
6900
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6644
6901
  })>;
6645
6902
  assignedLocation: Pick<StockLocation, 'id' | 'name'>;
@@ -6695,6 +6952,12 @@ export type TransitionFulfillmentToStateMutation = {
6695
6952
  lines: Array<Pick<FulfillmentLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
6696
6953
  });
6697
6954
  };
6955
+ export type AdminFulfillmentStateChangedSubscriptionVariables = Exact<{
6956
+ orderId: Scalars['ID']['input'];
6957
+ }>;
6958
+ export type AdminFulfillmentStateChangedSubscription = {
6959
+ fulfillmentStateChanged: Pick<FulfillmentStateTransition, 'fulfillmentId' | 'orderId' | 'fromState' | 'toState'>;
6960
+ };
6698
6961
  export type AdminHookDispatchedSubscriptionVariables = Exact<{
6699
6962
  hookPoints: Array<Scalars['String']['input']> | Scalars['String']['input'];
6700
6963
  }>;
@@ -6933,168 +7196,6 @@ export type TopProductsQueryVariables = Exact<{
6933
7196
  export type TopProductsQuery = {
6934
7197
  topProducts: Array<Pick<TopProduct, 'productId' | 'productName' | 'unitsSold' | 'revenueMinor'>>;
6935
7198
  };
6936
- export type ModifyOrderMutationVariables = Exact<{
6937
- input: ModifyOrderInput;
6938
- }>;
6939
- export type ModifyOrderMutation = {
6940
- modifyOrder: {
6941
- order: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
6942
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6943
- country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6944
- })>;
6945
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
6946
- country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
6947
- })>;
6948
- customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
6949
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
6950
- adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
6951
- taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
6952
- productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
6953
- shippingLine?: Maybe<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
6954
- adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
6955
- taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
6956
- })>;
6957
- taxCategory?: Maybe<Pick<TaxCategory, 'id'>>;
6958
- featuredAsset?: Maybe<Pick<Asset, 'id'>>;
6959
- snapshot?: Maybe<Pick<ProductVariantSnapshot, 'id' | 'createdAt' | 'updatedAt' | 'productName' | 'variantName' | 'sku' | 'imageUrl' | 'price' | 'priceWithTax'>>;
6960
- })>;
6961
- payments: Array<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
6962
- refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
6963
- lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
6964
- })>;
6965
- })>;
6966
- fulfillments: Array<(Pick<Fulfillment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'method' | 'trackingCode' | 'handlerCode'> & {
6967
- lines: Array<Pick<FulfillmentLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
6968
- })>;
6969
- shippingLines: Array<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
6970
- adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
6971
- taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
6972
- })>;
6973
- surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
6974
- taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
6975
- })>;
6976
- modifications: Array<(Pick<OrderModification, 'id' | 'createdAt' | 'updatedAt' | 'priceChange' | 'note' | 'isSettled'> & {
6977
- changes: Array<Pick<OrderModificationChange, 'orderLineId' | 'productVariantId' | 'type' | 'quantityBefore' | 'quantityAfter' | 'unitPriceBefore' | 'unitPriceAfter'>>;
6978
- surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
6979
- taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
6980
- })>;
6981
- payment?: Maybe<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
6982
- refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
6983
- lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
6984
- })>;
6985
- })>;
6986
- refund?: Maybe<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
6987
- lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
6988
- })>;
6989
- })>;
6990
- promotions: Array<Pick<Promotion, 'id'>>;
6991
- discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
6992
- taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
6993
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
6994
- recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
6995
- history: (Pick<HistoryEntryList, 'totalItems'> & {
6996
- items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
6997
- administrator?: Maybe<Pick<Administrator, 'id'>>;
6998
- })>;
6999
- });
7000
- });
7001
- modification: (Pick<OrderModification, 'id' | 'createdAt' | 'updatedAt' | 'priceChange' | 'note' | 'isSettled'> & {
7002
- changes: Array<Pick<OrderModificationChange, 'orderLineId' | 'productVariantId' | 'type' | 'quantityBefore' | 'quantityAfter' | 'unitPriceBefore' | 'unitPriceAfter'>>;
7003
- surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
7004
- taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7005
- })>;
7006
- payment?: Maybe<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
7007
- refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
7008
- lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
7009
- })>;
7010
- })>;
7011
- refund?: Maybe<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
7012
- lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
7013
- })>;
7014
- });
7015
- };
7016
- };
7017
- export type CancelOrderMutationVariables = Exact<{
7018
- input: CancelOrderInput;
7019
- }>;
7020
- export type CancelOrderMutation = {
7021
- cancelOrder: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7022
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7023
- country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7024
- })>;
7025
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7026
- country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7027
- })>;
7028
- customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
7029
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7030
- adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7031
- taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7032
- productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
7033
- shippingLine?: Maybe<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
7034
- adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7035
- taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7036
- })>;
7037
- taxCategory?: Maybe<Pick<TaxCategory, 'id'>>;
7038
- featuredAsset?: Maybe<Pick<Asset, 'id'>>;
7039
- snapshot?: Maybe<Pick<ProductVariantSnapshot, 'id' | 'createdAt' | 'updatedAt' | 'productName' | 'variantName' | 'sku' | 'imageUrl' | 'price' | 'priceWithTax'>>;
7040
- })>;
7041
- payments: Array<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
7042
- refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
7043
- lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
7044
- })>;
7045
- })>;
7046
- fulfillments: Array<(Pick<Fulfillment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'method' | 'trackingCode' | 'handlerCode'> & {
7047
- lines: Array<Pick<FulfillmentLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
7048
- })>;
7049
- shippingLines: Array<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
7050
- adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7051
- taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7052
- })>;
7053
- surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
7054
- taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7055
- })>;
7056
- modifications: Array<(Pick<OrderModification, 'id' | 'createdAt' | 'updatedAt' | 'priceChange' | 'note' | 'isSettled'> & {
7057
- changes: Array<Pick<OrderModificationChange, 'orderLineId' | 'productVariantId' | 'type' | 'quantityBefore' | 'quantityAfter' | 'unitPriceBefore' | 'unitPriceAfter'>>;
7058
- surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
7059
- taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7060
- })>;
7061
- payment?: Maybe<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
7062
- refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
7063
- lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
7064
- })>;
7065
- })>;
7066
- refund?: Maybe<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
7067
- lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
7068
- })>;
7069
- })>;
7070
- promotions: Array<Pick<Promotion, 'id'>>;
7071
- discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
7072
- taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
7073
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
7074
- recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
7075
- history: (Pick<HistoryEntryList, 'totalItems'> & {
7076
- items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
7077
- administrator?: Maybe<Pick<Administrator, 'id'>>;
7078
- })>;
7079
- });
7080
- });
7081
- };
7082
- export type RefundOrderMutationVariables = Exact<{
7083
- input: RefundOrderInput;
7084
- }>;
7085
- export type RefundOrderMutation = {
7086
- refundOrder: (Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
7087
- lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
7088
- });
7089
- };
7090
- export type SettleRefundMutationVariables = Exact<{
7091
- input: SettleRefundInput;
7092
- }>;
7093
- export type SettleRefundMutation = {
7094
- settleRefund: (Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
7095
- lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
7096
- });
7097
- };
7098
7199
  export type AdjustmentFieldFragment = Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>;
7099
7200
  export type TaxLineFieldFragment = Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>;
7100
7201
  export type SurchargeFieldFragment = (Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
@@ -7106,10 +7207,10 @@ export type ShippingLineFieldFragment = (Pick<ShippingLine, 'id' | 'createdAt' |
7106
7207
  });
7107
7208
  export type DiscountFieldFragment = Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>;
7108
7209
  export type TaxSummaryFieldFragment = Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>;
7109
- export type OrderAddressFieldFragment = (Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7210
+ export type OrderAddressFieldFragment = (Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7110
7211
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7111
7212
  });
7112
- export type OrderLineFieldFragment = (Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7213
+ export type OrderLineFieldFragment = (Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7113
7214
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7114
7215
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7115
7216
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -7121,15 +7222,15 @@ export type OrderLineFieldFragment = (Pick<OrderLine, 'id' | 'createdAt' | 'upda
7121
7222
  featuredAsset?: Maybe<Pick<Asset, 'id'>>;
7122
7223
  snapshot?: Maybe<Pick<ProductVariantSnapshot, 'id' | 'createdAt' | 'updatedAt' | 'productName' | 'variantName' | 'sku' | 'imageUrl' | 'price' | 'priceWithTax'>>;
7123
7224
  });
7124
- export type OrderFieldFragment = (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7125
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7225
+ export type OrderFieldFragment = (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7226
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7126
7227
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7127
7228
  })>;
7128
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7229
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7129
7230
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7130
7231
  })>;
7131
7232
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
7132
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7233
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7133
7234
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7134
7235
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7135
7236
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -7173,7 +7274,7 @@ export type OrderFieldFragment = (Pick<Order, 'id' | 'createdAt' | 'updatedAt' |
7173
7274
  promotions: Array<Pick<Promotion, 'id'>>;
7174
7275
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
7175
7276
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
7176
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
7277
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
7177
7278
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
7178
7279
  history: (Pick<HistoryEntryList, 'totalItems'> & {
7179
7280
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -7185,15 +7286,15 @@ export type OrderQueryVariables = Exact<{
7185
7286
  id: Scalars['ID']['input'];
7186
7287
  }>;
7187
7288
  export type OrderQuery = {
7188
- order?: Maybe<(Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7189
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7289
+ order?: Maybe<(Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7290
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7190
7291
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7191
7292
  })>;
7192
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7293
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7193
7294
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7194
7295
  })>;
7195
7296
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
7196
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7297
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7197
7298
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7198
7299
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7199
7300
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -7237,7 +7338,7 @@ export type OrderQuery = {
7237
7338
  promotions: Array<Pick<Promotion, 'id'>>;
7238
7339
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
7239
7340
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
7240
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
7341
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
7241
7342
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
7242
7343
  history: (Pick<HistoryEntryList, 'totalItems'> & {
7243
7344
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -7251,15 +7352,15 @@ export type OrdersQueryVariables = Exact<{
7251
7352
  }>;
7252
7353
  export type OrdersQuery = {
7253
7354
  orders: (Pick<OrderList, 'totalItems'> & {
7254
- items: Array<(Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7255
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7355
+ items: Array<(Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7356
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7256
7357
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7257
7358
  })>;
7258
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7359
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7259
7360
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7260
7361
  })>;
7261
7362
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
7262
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7363
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7263
7364
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7264
7365
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7265
7366
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -7303,7 +7404,7 @@ export type OrdersQuery = {
7303
7404
  promotions: Array<Pick<Promotion, 'id'>>;
7304
7405
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
7305
7406
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
7306
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
7407
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
7307
7408
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
7308
7409
  history: (Pick<HistoryEntryList, 'totalItems'> & {
7309
7410
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -7317,15 +7418,15 @@ export type OrderByCodeQueryVariables = Exact<{
7317
7418
  code: Scalars['String']['input'];
7318
7419
  }>;
7319
7420
  export type OrderByCodeQuery = {
7320
- orderByCode?: Maybe<(Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7321
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7421
+ orderByCode?: Maybe<(Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7422
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7322
7423
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7323
7424
  })>;
7324
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7425
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7325
7426
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7326
7427
  })>;
7327
7428
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
7328
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7429
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7329
7430
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7330
7431
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7331
7432
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -7369,7 +7470,7 @@ export type OrderByCodeQuery = {
7369
7470
  promotions: Array<Pick<Promotion, 'id'>>;
7370
7471
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
7371
7472
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
7372
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
7473
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
7373
7474
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
7374
7475
  history: (Pick<HistoryEntryList, 'totalItems'> & {
7375
7476
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -7386,15 +7487,15 @@ export type TransitionOrderToStateMutationVariables = Exact<{
7386
7487
  input: TransitionOrderInput;
7387
7488
  }>;
7388
7489
  export type TransitionOrderToStateMutation = {
7389
- transitionOrderToState: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7390
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7490
+ transitionOrderToState: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7491
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7391
7492
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7392
7493
  })>;
7393
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7494
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7394
7495
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7395
7496
  })>;
7396
7497
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
7397
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7498
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7398
7499
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7399
7500
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7400
7501
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -7438,7 +7539,7 @@ export type TransitionOrderToStateMutation = {
7438
7539
  promotions: Array<Pick<Promotion, 'id'>>;
7439
7540
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
7440
7541
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
7441
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
7542
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
7442
7543
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
7443
7544
  history: (Pick<HistoryEntryList, 'totalItems'> & {
7444
7545
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -7493,15 +7594,15 @@ export type CreateDraftOrderMutationVariables = Exact<{
7493
7594
  [key: string]: never;
7494
7595
  }>;
7495
7596
  export type CreateDraftOrderMutation = {
7496
- createDraftOrder: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7497
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7597
+ createDraftOrder: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7598
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7498
7599
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7499
7600
  })>;
7500
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7601
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7501
7602
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7502
7603
  })>;
7503
7604
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
7504
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7605
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7505
7606
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7506
7607
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7507
7608
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -7545,7 +7646,7 @@ export type CreateDraftOrderMutation = {
7545
7646
  promotions: Array<Pick<Promotion, 'id'>>;
7546
7647
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
7547
7648
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
7548
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
7649
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
7549
7650
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
7550
7651
  history: (Pick<HistoryEntryList, 'totalItems'> & {
7551
7652
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -7564,15 +7665,15 @@ export type CompleteDraftMutationVariables = Exact<{
7564
7665
  input: CompleteDraftInput;
7565
7666
  }>;
7566
7667
  export type CompleteDraftMutation = {
7567
- completeDraft: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7568
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7668
+ completeDraft: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7669
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7569
7670
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7570
7671
  })>;
7571
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7672
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7572
7673
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7573
7674
  })>;
7574
7675
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
7575
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7676
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7576
7677
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7577
7678
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7578
7679
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -7616,7 +7717,7 @@ export type CompleteDraftMutation = {
7616
7717
  promotions: Array<Pick<Promotion, 'id'>>;
7617
7718
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
7618
7719
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
7619
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
7720
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
7620
7721
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
7621
7722
  history: (Pick<HistoryEntryList, 'totalItems'> & {
7622
7723
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -7630,15 +7731,15 @@ export type AddItemsToOrderMutationVariables = Exact<{
7630
7731
  }>;
7631
7732
  export type AddItemsToOrderMutation = {
7632
7733
  addItemsToOrder: {
7633
- order: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7634
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7734
+ order: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7735
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7635
7736
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7636
7737
  })>;
7637
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7738
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7638
7739
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7639
7740
  })>;
7640
7741
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
7641
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7742
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7642
7743
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7643
7744
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7644
7745
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -7682,7 +7783,7 @@ export type AddItemsToOrderMutation = {
7682
7783
  promotions: Array<Pick<Promotion, 'id'>>;
7683
7784
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
7684
7785
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
7685
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
7786
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
7686
7787
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
7687
7788
  history: (Pick<HistoryEntryList, 'totalItems'> & {
7688
7789
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -7693,20 +7794,85 @@ export type AddItemsToOrderMutation = {
7693
7794
  errors: Array<Pick<BatchOrderLineError, 'index' | 'errorCode' | 'variables'>>;
7694
7795
  };
7695
7796
  };
7797
+ export type PinOrderLineStockLocationMutationVariables = Exact<{
7798
+ input: PinOrderLineStockLocationInput;
7799
+ }>;
7800
+ export type PinOrderLineStockLocationMutation = {
7801
+ pinOrderLineStockLocation: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7802
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7803
+ country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7804
+ })>;
7805
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7806
+ country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7807
+ })>;
7808
+ customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
7809
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7810
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7811
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7812
+ productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
7813
+ shippingLine?: Maybe<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
7814
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7815
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7816
+ })>;
7817
+ taxCategory?: Maybe<Pick<TaxCategory, 'id'>>;
7818
+ featuredAsset?: Maybe<Pick<Asset, 'id'>>;
7819
+ snapshot?: Maybe<Pick<ProductVariantSnapshot, 'id' | 'createdAt' | 'updatedAt' | 'productName' | 'variantName' | 'sku' | 'imageUrl' | 'price' | 'priceWithTax'>>;
7820
+ })>;
7821
+ payments: Array<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
7822
+ refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
7823
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
7824
+ })>;
7825
+ })>;
7826
+ fulfillments: Array<(Pick<Fulfillment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'method' | 'trackingCode' | 'handlerCode'> & {
7827
+ lines: Array<Pick<FulfillmentLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
7828
+ })>;
7829
+ shippingLines: Array<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
7830
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7831
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7832
+ })>;
7833
+ surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
7834
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7835
+ })>;
7836
+ modifications: Array<(Pick<OrderModification, 'id' | 'createdAt' | 'updatedAt' | 'priceChange' | 'note' | 'isSettled'> & {
7837
+ changes: Array<Pick<OrderModificationChange, 'orderLineId' | 'productVariantId' | 'type' | 'quantityBefore' | 'quantityAfter' | 'unitPriceBefore' | 'unitPriceAfter'>>;
7838
+ surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
7839
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7840
+ })>;
7841
+ payment?: Maybe<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
7842
+ refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
7843
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
7844
+ })>;
7845
+ })>;
7846
+ refund?: Maybe<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
7847
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
7848
+ })>;
7849
+ })>;
7850
+ promotions: Array<Pick<Promotion, 'id'>>;
7851
+ discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
7852
+ taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
7853
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
7854
+ recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
7855
+ history: (Pick<HistoryEntryList, 'totalItems'> & {
7856
+ items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
7857
+ administrator?: Maybe<Pick<Administrator, 'id'>>;
7858
+ })>;
7859
+ });
7860
+ });
7861
+ };
7696
7862
  export type AdjustOrderLinesMutationVariables = Exact<{
7697
7863
  input: AdjustOrderLinesInput;
7698
7864
  }>;
7699
7865
  export type AdjustOrderLinesMutation = {
7700
7866
  adjustOrderLines: {
7701
- order: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7702
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7867
+ order: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7868
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7703
7869
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7704
7870
  })>;
7705
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7871
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7706
7872
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7707
7873
  })>;
7708
7874
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
7709
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7875
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7710
7876
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7711
7877
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7712
7878
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -7750,7 +7916,7 @@ export type AdjustOrderLinesMutation = {
7750
7916
  promotions: Array<Pick<Promotion, 'id'>>;
7751
7917
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
7752
7918
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
7753
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
7919
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
7754
7920
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
7755
7921
  history: (Pick<HistoryEntryList, 'totalItems'> & {
7756
7922
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -7766,15 +7932,15 @@ export type RemoveItemsFromOrderMutationVariables = Exact<{
7766
7932
  }>;
7767
7933
  export type RemoveItemsFromOrderMutation = {
7768
7934
  removeItemsFromOrder: {
7769
- order: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7770
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7935
+ order: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7936
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7771
7937
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7772
7938
  })>;
7773
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7939
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7774
7940
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7775
7941
  })>;
7776
7942
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
7777
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7943
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7778
7944
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7779
7945
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7780
7946
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -7818,7 +7984,7 @@ export type RemoveItemsFromOrderMutation = {
7818
7984
  promotions: Array<Pick<Promotion, 'id'>>;
7819
7985
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
7820
7986
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
7821
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
7987
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
7822
7988
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
7823
7989
  history: (Pick<HistoryEntryList, 'totalItems'> & {
7824
7990
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -7833,15 +7999,15 @@ export type SetCustomerForOrderMutationVariables = Exact<{
7833
7999
  input: SetCustomerForOrderInput;
7834
8000
  }>;
7835
8001
  export type SetCustomerForOrderMutation = {
7836
- setCustomerForOrder: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7837
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8002
+ setCustomerForOrder: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8003
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7838
8004
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7839
8005
  })>;
7840
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8006
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7841
8007
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7842
8008
  })>;
7843
8009
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
7844
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8010
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7845
8011
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7846
8012
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7847
8013
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -7885,7 +8051,7 @@ export type SetCustomerForOrderMutation = {
7885
8051
  promotions: Array<Pick<Promotion, 'id'>>;
7886
8052
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
7887
8053
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
7888
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
8054
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
7889
8055
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
7890
8056
  history: (Pick<HistoryEntryList, 'totalItems'> & {
7891
8057
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -7898,15 +8064,15 @@ export type SetCustomerForDraftOrderMutationVariables = Exact<{
7898
8064
  input: SetCustomerForDraftOrderInput;
7899
8065
  }>;
7900
8066
  export type SetCustomerForDraftOrderMutation = {
7901
- setCustomerForDraftOrder: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7902
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8067
+ setCustomerForDraftOrder: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8068
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7903
8069
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7904
8070
  })>;
7905
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8071
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7906
8072
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7907
8073
  })>;
7908
8074
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
7909
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8075
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7910
8076
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7911
8077
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7912
8078
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -7950,7 +8116,7 @@ export type SetCustomerForDraftOrderMutation = {
7950
8116
  promotions: Array<Pick<Promotion, 'id'>>;
7951
8117
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
7952
8118
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
7953
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
8119
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
7954
8120
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
7955
8121
  history: (Pick<HistoryEntryList, 'totalItems'> & {
7956
8122
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -7963,15 +8129,15 @@ export type SetShippingAddressMutationVariables = Exact<{
7963
8129
  input: SetShippingAddressInput;
7964
8130
  }>;
7965
8131
  export type SetShippingAddressMutation = {
7966
- setShippingAddress: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
7967
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8132
+ setShippingAddress: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8133
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7968
8134
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7969
8135
  })>;
7970
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8136
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
7971
8137
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
7972
8138
  })>;
7973
8139
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
7974
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8140
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
7975
8141
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
7976
8142
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
7977
8143
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -8015,7 +8181,7 @@ export type SetShippingAddressMutation = {
8015
8181
  promotions: Array<Pick<Promotion, 'id'>>;
8016
8182
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
8017
8183
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
8018
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
8184
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
8019
8185
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
8020
8186
  history: (Pick<HistoryEntryList, 'totalItems'> & {
8021
8187
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -8024,19 +8190,19 @@ export type SetShippingAddressMutation = {
8024
8190
  });
8025
8191
  });
8026
8192
  };
8027
- export type UnsetShippingAddressMutationVariables = Exact<{
8028
- input: UnsetShippingAddressInput;
8193
+ export type CorrectShippingAddressMutationVariables = Exact<{
8194
+ input: SetShippingAddressInput;
8029
8195
  }>;
8030
- export type UnsetShippingAddressMutation = {
8031
- unsetShippingAddress: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8032
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8196
+ export type CorrectShippingAddressMutation = {
8197
+ correctShippingAddress: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8198
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8033
8199
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8034
8200
  })>;
8035
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8201
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8036
8202
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8037
8203
  })>;
8038
8204
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
8039
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8205
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8040
8206
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8041
8207
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8042
8208
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -8080,7 +8246,7 @@ export type UnsetShippingAddressMutation = {
8080
8246
  promotions: Array<Pick<Promotion, 'id'>>;
8081
8247
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
8082
8248
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
8083
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
8249
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
8084
8250
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
8085
8251
  history: (Pick<HistoryEntryList, 'totalItems'> & {
8086
8252
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -8089,19 +8255,19 @@ export type UnsetShippingAddressMutation = {
8089
8255
  });
8090
8256
  });
8091
8257
  };
8092
- export type SetBillingAddressMutationVariables = Exact<{
8093
- input: SetBillingAddressInput;
8258
+ export type UnsetShippingAddressMutationVariables = Exact<{
8259
+ input: UnsetShippingAddressInput;
8094
8260
  }>;
8095
- export type SetBillingAddressMutation = {
8096
- setBillingAddress: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8097
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8261
+ export type UnsetShippingAddressMutation = {
8262
+ unsetShippingAddress: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8263
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8098
8264
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8099
8265
  })>;
8100
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8266
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8101
8267
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8102
8268
  })>;
8103
8269
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
8104
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8270
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8105
8271
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8106
8272
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8107
8273
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -8145,7 +8311,7 @@ export type SetBillingAddressMutation = {
8145
8311
  promotions: Array<Pick<Promotion, 'id'>>;
8146
8312
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
8147
8313
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
8148
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
8314
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
8149
8315
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
8150
8316
  history: (Pick<HistoryEntryList, 'totalItems'> & {
8151
8317
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -8154,19 +8320,19 @@ export type SetBillingAddressMutation = {
8154
8320
  });
8155
8321
  });
8156
8322
  };
8157
- export type UnsetBillingAddressMutationVariables = Exact<{
8158
- input: UnsetBillingAddressInput;
8323
+ export type SetBillingAddressMutationVariables = Exact<{
8324
+ input: SetBillingAddressInput;
8159
8325
  }>;
8160
- export type UnsetBillingAddressMutation = {
8161
- unsetBillingAddress: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8162
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8326
+ export type SetBillingAddressMutation = {
8327
+ setBillingAddress: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8328
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8163
8329
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8164
8330
  })>;
8165
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8331
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8166
8332
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8167
8333
  })>;
8168
8334
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
8169
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8335
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8170
8336
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8171
8337
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8172
8338
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -8210,7 +8376,7 @@ export type UnsetBillingAddressMutation = {
8210
8376
  promotions: Array<Pick<Promotion, 'id'>>;
8211
8377
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
8212
8378
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
8213
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
8379
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
8214
8380
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
8215
8381
  history: (Pick<HistoryEntryList, 'totalItems'> & {
8216
8382
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -8219,19 +8385,19 @@ export type UnsetBillingAddressMutation = {
8219
8385
  });
8220
8386
  });
8221
8387
  };
8222
- export type ApplyCouponCodeMutationVariables = Exact<{
8223
- input: OrderCouponCodeInput;
8388
+ export type CorrectBillingAddressMutationVariables = Exact<{
8389
+ input: SetBillingAddressInput;
8224
8390
  }>;
8225
- export type ApplyCouponCodeMutation = {
8226
- applyCouponCode: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8227
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8391
+ export type CorrectBillingAddressMutation = {
8392
+ correctBillingAddress: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8393
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8228
8394
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8229
8395
  })>;
8230
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8396
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8231
8397
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8232
8398
  })>;
8233
8399
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
8234
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8400
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8235
8401
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8236
8402
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8237
8403
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -8275,7 +8441,7 @@ export type ApplyCouponCodeMutation = {
8275
8441
  promotions: Array<Pick<Promotion, 'id'>>;
8276
8442
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
8277
8443
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
8278
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
8444
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
8279
8445
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
8280
8446
  history: (Pick<HistoryEntryList, 'totalItems'> & {
8281
8447
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -8284,19 +8450,19 @@ export type ApplyCouponCodeMutation = {
8284
8450
  });
8285
8451
  });
8286
8452
  };
8287
- export type RemoveCouponCodeMutationVariables = Exact<{
8288
- input: OrderCouponCodeInput;
8453
+ export type UnsetBillingAddressMutationVariables = Exact<{
8454
+ input: UnsetBillingAddressInput;
8289
8455
  }>;
8290
- export type RemoveCouponCodeMutation = {
8291
- removeCouponCode: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8292
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8456
+ export type UnsetBillingAddressMutation = {
8457
+ unsetBillingAddress: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8458
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8293
8459
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8294
8460
  })>;
8295
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8461
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8296
8462
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8297
8463
  })>;
8298
8464
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
8299
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8465
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8300
8466
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8301
8467
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8302
8468
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -8340,7 +8506,7 @@ export type RemoveCouponCodeMutation = {
8340
8506
  promotions: Array<Pick<Promotion, 'id'>>;
8341
8507
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
8342
8508
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
8343
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
8509
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
8344
8510
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
8345
8511
  history: (Pick<HistoryEntryList, 'totalItems'> & {
8346
8512
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -8349,19 +8515,19 @@ export type RemoveCouponCodeMutation = {
8349
8515
  });
8350
8516
  });
8351
8517
  };
8352
- export type OrderDetailQueryVariables = Exact<{
8353
- id: Scalars['ID']['input'];
8518
+ export type ApplyCouponCodeMutationVariables = Exact<{
8519
+ input: OrderCouponCodeInput;
8354
8520
  }>;
8355
- export type OrderDetailQuery = {
8356
- order?: Maybe<(Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8357
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8521
+ export type ApplyCouponCodeMutation = {
8522
+ applyCouponCode: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8523
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8358
8524
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8359
8525
  })>;
8360
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8526
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8361
8527
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8362
8528
  })>;
8363
8529
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
8364
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8530
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8365
8531
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8366
8532
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8367
8533
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -8405,28 +8571,28 @@ export type OrderDetailQuery = {
8405
8571
  promotions: Array<Pick<Promotion, 'id'>>;
8406
8572
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
8407
8573
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
8408
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
8574
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
8409
8575
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
8410
8576
  history: (Pick<HistoryEntryList, 'totalItems'> & {
8411
8577
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
8412
8578
  administrator?: Maybe<Pick<Administrator, 'id'>>;
8413
8579
  })>;
8414
8580
  });
8415
- })>;
8581
+ });
8416
8582
  };
8417
- export type OrderApplyCodeCouponMutationVariables = Exact<{
8583
+ export type RemoveCouponCodeMutationVariables = Exact<{
8418
8584
  input: OrderCouponCodeInput;
8419
8585
  }>;
8420
- export type OrderApplyCodeCouponMutation = {
8421
- applyCouponCode: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8422
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8586
+ export type RemoveCouponCodeMutation = {
8587
+ removeCouponCode: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8588
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8423
8589
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8424
8590
  })>;
8425
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8591
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8426
8592
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8427
8593
  })>;
8428
8594
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
8429
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8595
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8430
8596
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8431
8597
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8432
8598
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -8470,7 +8636,7 @@ export type OrderApplyCodeCouponMutation = {
8470
8636
  promotions: Array<Pick<Promotion, 'id'>>;
8471
8637
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
8472
8638
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
8473
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
8639
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
8474
8640
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
8475
8641
  history: (Pick<HistoryEntryList, 'totalItems'> & {
8476
8642
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -8479,19 +8645,19 @@ export type OrderApplyCodeCouponMutation = {
8479
8645
  });
8480
8646
  });
8481
8647
  };
8482
- export type OrderRemoveCouponMutationVariables = Exact<{
8483
- input: OrderCouponCodeInput;
8648
+ export type OrderDetailQueryVariables = Exact<{
8649
+ id: Scalars['ID']['input'];
8484
8650
  }>;
8485
- export type OrderRemoveCouponMutation = {
8486
- removeCouponCode: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8487
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8651
+ export type OrderDetailQuery = {
8652
+ order?: Maybe<(Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8653
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8488
8654
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8489
8655
  })>;
8490
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8656
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8491
8657
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8492
8658
  })>;
8493
8659
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
8494
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8660
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8495
8661
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8496
8662
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8497
8663
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -8535,28 +8701,28 @@ export type OrderRemoveCouponMutation = {
8535
8701
  promotions: Array<Pick<Promotion, 'id'>>;
8536
8702
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
8537
8703
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
8538
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
8704
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
8539
8705
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
8540
8706
  history: (Pick<HistoryEntryList, 'totalItems'> & {
8541
8707
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
8542
8708
  administrator?: Maybe<Pick<Administrator, 'id'>>;
8543
8709
  })>;
8544
8710
  });
8545
- });
8711
+ })>;
8546
8712
  };
8547
- export type OrderCreateDraftMutationVariables = Exact<{
8548
- [key: string]: never;
8713
+ export type OrderApplyCodeCouponMutationVariables = Exact<{
8714
+ input: OrderCouponCodeInput;
8549
8715
  }>;
8550
- export type OrderCreateDraftMutation = {
8551
- createDraftOrder: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8552
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8716
+ export type OrderApplyCodeCouponMutation = {
8717
+ applyCouponCode: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8718
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8553
8719
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8554
8720
  })>;
8555
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8721
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8556
8722
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8557
8723
  })>;
8558
8724
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
8559
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8725
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8560
8726
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8561
8727
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8562
8728
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -8600,7 +8766,7 @@ export type OrderCreateDraftMutation = {
8600
8766
  promotions: Array<Pick<Promotion, 'id'>>;
8601
8767
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
8602
8768
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
8603
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
8769
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
8604
8770
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
8605
8771
  history: (Pick<HistoryEntryList, 'totalItems'> & {
8606
8772
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -8609,25 +8775,19 @@ export type OrderCreateDraftMutation = {
8609
8775
  });
8610
8776
  });
8611
8777
  };
8612
- export type OrderDeleteDraftMutationVariables = Exact<{
8613
- orderId: Scalars['ID']['input'];
8614
- }>;
8615
- export type OrderDeleteDraftMutation = {
8616
- deleteDraftOrder: Pick<DeletionResponse, 'result' | 'message'>;
8617
- };
8618
- export type OrderCompleteDraftMutationVariables = Exact<{
8619
- input: CompleteDraftInput;
8778
+ export type OrderRemoveCouponMutationVariables = Exact<{
8779
+ input: OrderCouponCodeInput;
8620
8780
  }>;
8621
- export type OrderCompleteDraftMutation = {
8622
- completeDraft: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8623
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8781
+ export type OrderRemoveCouponMutation = {
8782
+ removeCouponCode: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8783
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8624
8784
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8625
8785
  })>;
8626
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8786
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8627
8787
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8628
8788
  })>;
8629
8789
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
8630
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8790
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8631
8791
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8632
8792
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8633
8793
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -8671,7 +8831,7 @@ export type OrderCompleteDraftMutation = {
8671
8831
  promotions: Array<Pick<Promotion, 'id'>>;
8672
8832
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
8673
8833
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
8674
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
8834
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
8675
8835
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
8676
8836
  history: (Pick<HistoryEntryList, 'totalItems'> & {
8677
8837
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -8680,19 +8840,19 @@ export type OrderCompleteDraftMutation = {
8680
8840
  });
8681
8841
  });
8682
8842
  };
8683
- export type OrderSetCustomerDraftMutationVariables = Exact<{
8684
- input: SetCustomerForDraftOrderInput;
8843
+ export type OrderCreateDraftMutationVariables = Exact<{
8844
+ [key: string]: never;
8685
8845
  }>;
8686
- export type OrderSetCustomerDraftMutation = {
8687
- setCustomerForDraftOrder: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8688
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8846
+ export type OrderCreateDraftMutation = {
8847
+ createDraftOrder: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8848
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8689
8849
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8690
8850
  })>;
8691
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8851
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8692
8852
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8693
8853
  })>;
8694
8854
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
8695
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8855
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8696
8856
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8697
8857
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8698
8858
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -8736,7 +8896,7 @@ export type OrderSetCustomerDraftMutation = {
8736
8896
  promotions: Array<Pick<Promotion, 'id'>>;
8737
8897
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
8738
8898
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
8739
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
8899
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
8740
8900
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
8741
8901
  history: (Pick<HistoryEntryList, 'totalItems'> & {
8742
8902
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -8745,53 +8905,254 @@ export type OrderSetCustomerDraftMutation = {
8745
8905
  });
8746
8906
  });
8747
8907
  };
8748
- export type OrderModificationFieldFragment = (Pick<OrderModification, 'id' | 'createdAt' | 'updatedAt' | 'priceChange' | 'note' | 'isSettled'> & {
8749
- changes: Array<Pick<OrderModificationChange, 'orderLineId' | 'productVariantId' | 'type' | 'quantityBefore' | 'quantityAfter' | 'unitPriceBefore' | 'unitPriceAfter'>>;
8750
- surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
8751
- taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8752
- })>;
8753
- payment?: Maybe<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
8754
- refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
8755
- lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
8756
- })>;
8757
- })>;
8758
- refund?: Maybe<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
8759
- lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
8760
- })>;
8761
- });
8762
- export type OrderModificationsQueryVariables = Exact<{
8908
+ export type OrderDeleteDraftMutationVariables = Exact<{
8763
8909
  orderId: Scalars['ID']['input'];
8764
8910
  }>;
8765
- export type OrderModificationsQuery = {
8766
- orderModifications: Array<(Pick<OrderModification, 'id' | 'createdAt' | 'updatedAt' | 'priceChange' | 'note' | 'isSettled'> & {
8767
- changes: Array<Pick<OrderModificationChange, 'orderLineId' | 'productVariantId' | 'type' | 'quantityBefore' | 'quantityAfter' | 'unitPriceBefore' | 'unitPriceAfter'>>;
8768
- surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
8911
+ export type OrderDeleteDraftMutation = {
8912
+ deleteDraftOrder: Pick<DeletionResponse, 'result' | 'message'>;
8913
+ };
8914
+ export type OrderCompleteDraftMutationVariables = Exact<{
8915
+ input: CompleteDraftInput;
8916
+ }>;
8917
+ export type OrderCompleteDraftMutation = {
8918
+ completeDraft: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8919
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8920
+ country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8921
+ })>;
8922
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8923
+ country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8924
+ })>;
8925
+ customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
8926
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8927
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8769
8928
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8929
+ productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
8930
+ shippingLine?: Maybe<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
8931
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8932
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8933
+ })>;
8934
+ taxCategory?: Maybe<Pick<TaxCategory, 'id'>>;
8935
+ featuredAsset?: Maybe<Pick<Asset, 'id'>>;
8936
+ snapshot?: Maybe<Pick<ProductVariantSnapshot, 'id' | 'createdAt' | 'updatedAt' | 'productName' | 'variantName' | 'sku' | 'imageUrl' | 'price' | 'priceWithTax'>>;
8770
8937
  })>;
8771
- payment?: Maybe<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
8938
+ payments: Array<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
8772
8939
  refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
8773
8940
  lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
8774
8941
  })>;
8775
8942
  })>;
8776
- refund?: Maybe<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
8777
- lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
8943
+ fulfillments: Array<(Pick<Fulfillment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'method' | 'trackingCode' | 'handlerCode'> & {
8944
+ lines: Array<Pick<FulfillmentLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
8945
+ })>;
8946
+ shippingLines: Array<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
8947
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8948
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8949
+ })>;
8950
+ surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
8951
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8952
+ })>;
8953
+ modifications: Array<(Pick<OrderModification, 'id' | 'createdAt' | 'updatedAt' | 'priceChange' | 'note' | 'isSettled'> & {
8954
+ changes: Array<Pick<OrderModificationChange, 'orderLineId' | 'productVariantId' | 'type' | 'quantityBefore' | 'quantityAfter' | 'unitPriceBefore' | 'unitPriceAfter'>>;
8955
+ surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
8956
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8957
+ })>;
8958
+ payment?: Maybe<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
8959
+ refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
8960
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
8961
+ })>;
8962
+ })>;
8963
+ refund?: Maybe<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
8964
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
8965
+ })>;
8966
+ })>;
8967
+ promotions: Array<Pick<Promotion, 'id'>>;
8968
+ discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
8969
+ taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
8970
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
8971
+ recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
8972
+ history: (Pick<HistoryEntryList, 'totalItems'> & {
8973
+ items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
8974
+ administrator?: Maybe<Pick<Administrator, 'id'>>;
8975
+ })>;
8976
+ });
8977
+ });
8978
+ };
8979
+ export type OrderSetCustomerDraftMutationVariables = Exact<{
8980
+ input: SetCustomerForDraftOrderInput;
8981
+ }>;
8982
+ export type OrderSetCustomerDraftMutation = {
8983
+ setCustomerForDraftOrder: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8984
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8985
+ country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8986
+ })>;
8987
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8988
+ country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8989
+ })>;
8990
+ customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
8991
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8992
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8993
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8994
+ productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
8995
+ shippingLine?: Maybe<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
8996
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8997
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8998
+ })>;
8999
+ taxCategory?: Maybe<Pick<TaxCategory, 'id'>>;
9000
+ featuredAsset?: Maybe<Pick<Asset, 'id'>>;
9001
+ snapshot?: Maybe<Pick<ProductVariantSnapshot, 'id' | 'createdAt' | 'updatedAt' | 'productName' | 'variantName' | 'sku' | 'imageUrl' | 'price' | 'priceWithTax'>>;
9002
+ })>;
9003
+ payments: Array<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
9004
+ refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
9005
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
9006
+ })>;
9007
+ })>;
9008
+ fulfillments: Array<(Pick<Fulfillment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'method' | 'trackingCode' | 'handlerCode'> & {
9009
+ lines: Array<Pick<FulfillmentLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
9010
+ })>;
9011
+ shippingLines: Array<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
9012
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
9013
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
9014
+ })>;
9015
+ surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
9016
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
9017
+ })>;
9018
+ modifications: Array<(Pick<OrderModification, 'id' | 'createdAt' | 'updatedAt' | 'priceChange' | 'note' | 'isSettled'> & {
9019
+ changes: Array<Pick<OrderModificationChange, 'orderLineId' | 'productVariantId' | 'type' | 'quantityBefore' | 'quantityAfter' | 'unitPriceBefore' | 'unitPriceAfter'>>;
9020
+ surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
9021
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
9022
+ })>;
9023
+ payment?: Maybe<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
9024
+ refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
9025
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
9026
+ })>;
9027
+ })>;
9028
+ refund?: Maybe<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
9029
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
9030
+ })>;
9031
+ })>;
9032
+ promotions: Array<Pick<Promotion, 'id'>>;
9033
+ discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
9034
+ taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
9035
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
9036
+ recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
9037
+ history: (Pick<HistoryEntryList, 'totalItems'> & {
9038
+ items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
9039
+ administrator?: Maybe<Pick<Administrator, 'id'>>;
9040
+ })>;
9041
+ });
9042
+ });
9043
+ };
9044
+ export type OrderModificationFieldFragment = (Pick<OrderModification, 'id' | 'createdAt' | 'updatedAt' | 'priceChange' | 'note' | 'isSettled'> & {
9045
+ changes: Array<Pick<OrderModificationChange, 'orderLineId' | 'productVariantId' | 'type' | 'quantityBefore' | 'quantityAfter' | 'unitPriceBefore' | 'unitPriceAfter'>>;
9046
+ surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
9047
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
9048
+ })>;
9049
+ payment?: Maybe<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
9050
+ refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
9051
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
9052
+ })>;
9053
+ })>;
9054
+ refund?: Maybe<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
9055
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
9056
+ })>;
9057
+ });
9058
+ export type OrderModificationsQueryVariables = Exact<{
9059
+ orderId: Scalars['ID']['input'];
9060
+ }>;
9061
+ export type OrderModificationsQuery = {
9062
+ orderModifications: Array<(Pick<OrderModification, 'id' | 'createdAt' | 'updatedAt' | 'priceChange' | 'note' | 'isSettled'> & {
9063
+ changes: Array<Pick<OrderModificationChange, 'orderLineId' | 'productVariantId' | 'type' | 'quantityBefore' | 'quantityAfter' | 'unitPriceBefore' | 'unitPriceAfter'>>;
9064
+ surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
9065
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
9066
+ })>;
9067
+ payment?: Maybe<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
9068
+ refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
9069
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
9070
+ })>;
9071
+ })>;
9072
+ refund?: Maybe<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
9073
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
8778
9074
  })>;
8779
9075
  })>;
8780
9076
  };
8781
- export type OrderModifyModificationMutationVariables = Exact<{
9077
+ export type RevertOrderModificationMutationVariables = Exact<{
9078
+ input: RevertOrderModificationInput;
9079
+ }>;
9080
+ export type RevertOrderModificationMutation = {
9081
+ revertOrderModification: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
9082
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
9083
+ country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
9084
+ })>;
9085
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
9086
+ country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
9087
+ })>;
9088
+ customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
9089
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
9090
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
9091
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
9092
+ productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
9093
+ shippingLine?: Maybe<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
9094
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
9095
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
9096
+ })>;
9097
+ taxCategory?: Maybe<Pick<TaxCategory, 'id'>>;
9098
+ featuredAsset?: Maybe<Pick<Asset, 'id'>>;
9099
+ snapshot?: Maybe<Pick<ProductVariantSnapshot, 'id' | 'createdAt' | 'updatedAt' | 'productName' | 'variantName' | 'sku' | 'imageUrl' | 'price' | 'priceWithTax'>>;
9100
+ })>;
9101
+ payments: Array<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
9102
+ refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
9103
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
9104
+ })>;
9105
+ })>;
9106
+ fulfillments: Array<(Pick<Fulfillment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'method' | 'trackingCode' | 'handlerCode'> & {
9107
+ lines: Array<Pick<FulfillmentLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
9108
+ })>;
9109
+ shippingLines: Array<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
9110
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
9111
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
9112
+ })>;
9113
+ surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
9114
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
9115
+ })>;
9116
+ modifications: Array<(Pick<OrderModification, 'id' | 'createdAt' | 'updatedAt' | 'priceChange' | 'note' | 'isSettled'> & {
9117
+ changes: Array<Pick<OrderModificationChange, 'orderLineId' | 'productVariantId' | 'type' | 'quantityBefore' | 'quantityAfter' | 'unitPriceBefore' | 'unitPriceAfter'>>;
9118
+ surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
9119
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
9120
+ })>;
9121
+ payment?: Maybe<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
9122
+ refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
9123
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
9124
+ })>;
9125
+ })>;
9126
+ refund?: Maybe<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
9127
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
9128
+ })>;
9129
+ })>;
9130
+ promotions: Array<Pick<Promotion, 'id'>>;
9131
+ discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
9132
+ taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
9133
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
9134
+ recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
9135
+ history: (Pick<HistoryEntryList, 'totalItems'> & {
9136
+ items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
9137
+ administrator?: Maybe<Pick<Administrator, 'id'>>;
9138
+ })>;
9139
+ });
9140
+ });
9141
+ };
9142
+ export type ModifyOrderMutationVariables = Exact<{
8782
9143
  input: ModifyOrderInput;
8783
9144
  }>;
8784
- export type OrderModifyModificationMutation = {
9145
+ export type ModifyOrderMutation = {
8785
9146
  modifyOrder: {
8786
- order: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8787
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
9147
+ order: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
9148
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8788
9149
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8789
9150
  })>;
8790
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
9151
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8791
9152
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8792
9153
  })>;
8793
9154
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
8794
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
9155
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8795
9156
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8796
9157
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8797
9158
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -8835,7 +9196,7 @@ export type OrderModifyModificationMutation = {
8835
9196
  promotions: Array<Pick<Promotion, 'id'>>;
8836
9197
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
8837
9198
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
8838
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
9199
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
8839
9200
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
8840
9201
  history: (Pick<HistoryEntryList, 'totalItems'> & {
8841
9202
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -8859,19 +9220,19 @@ export type OrderModifyModificationMutation = {
8859
9220
  });
8860
9221
  };
8861
9222
  };
8862
- export type OrderCancelModificationMutationVariables = Exact<{
9223
+ export type CancelOrderMutationVariables = Exact<{
8863
9224
  input: CancelOrderInput;
8864
9225
  }>;
8865
- export type OrderCancelModificationMutation = {
8866
- cancelOrder: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
8867
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
9226
+ export type CancelOrderMutation = {
9227
+ cancelOrder: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
9228
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8868
9229
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8869
9230
  })>;
8870
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
9231
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
8871
9232
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
8872
9233
  })>;
8873
9234
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
8874
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
9235
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
8875
9236
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
8876
9237
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
8877
9238
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -8915,7 +9276,7 @@ export type OrderCancelModificationMutation = {
8915
9276
  promotions: Array<Pick<Promotion, 'id'>>;
8916
9277
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
8917
9278
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
8918
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
9279
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
8919
9280
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
8920
9281
  history: (Pick<HistoryEntryList, 'totalItems'> & {
8921
9282
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -8924,18 +9285,18 @@ export type OrderCancelModificationMutation = {
8924
9285
  });
8925
9286
  });
8926
9287
  };
8927
- export type OrderRefundModificationMutationVariables = Exact<{
9288
+ export type RefundOrderMutationVariables = Exact<{
8928
9289
  input: RefundOrderInput;
8929
9290
  }>;
8930
- export type OrderRefundModificationMutation = {
9291
+ export type RefundOrderMutation = {
8931
9292
  refundOrder: (Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
8932
9293
  lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
8933
9294
  });
8934
9295
  };
8935
- export type OrderSettleRefundModificationMutationVariables = Exact<{
9296
+ export type SettleRefundMutationVariables = Exact<{
8936
9297
  input: SettleRefundInput;
8937
9298
  }>;
8938
- export type OrderSettleRefundModificationMutation = {
9299
+ export type SettleRefundMutation = {
8939
9300
  settleRefund: (Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
8940
9301
  lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
8941
9302
  });
@@ -9027,6 +9388,71 @@ export type ConfirmSessionMutationVariables = Exact<{
9027
9388
  export type ConfirmSessionMutation = {
9028
9389
  confirmPaymentSession: Pick<PaymentGatewaySession, 'id' | 'extId' | 'clientSecret' | 'redirectUrl' | 'nonce' | 'status' | 'amount' | 'providerCode' | 'orderId' | 'createdAt' | 'updatedAt'>;
9029
9390
  };
9391
+ export type CompleteAdditionalPaymentMutationVariables = Exact<{
9392
+ input: CompleteAdditionalPaymentInput;
9393
+ }>;
9394
+ export type CompleteAdditionalPaymentMutation = {
9395
+ completeAdditionalPayment: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
9396
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
9397
+ country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
9398
+ })>;
9399
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
9400
+ country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
9401
+ })>;
9402
+ customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
9403
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
9404
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
9405
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
9406
+ productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
9407
+ shippingLine?: Maybe<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
9408
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
9409
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
9410
+ })>;
9411
+ taxCategory?: Maybe<Pick<TaxCategory, 'id'>>;
9412
+ featuredAsset?: Maybe<Pick<Asset, 'id'>>;
9413
+ snapshot?: Maybe<Pick<ProductVariantSnapshot, 'id' | 'createdAt' | 'updatedAt' | 'productName' | 'variantName' | 'sku' | 'imageUrl' | 'price' | 'priceWithTax'>>;
9414
+ })>;
9415
+ payments: Array<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
9416
+ refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
9417
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
9418
+ })>;
9419
+ })>;
9420
+ fulfillments: Array<(Pick<Fulfillment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'method' | 'trackingCode' | 'handlerCode'> & {
9421
+ lines: Array<Pick<FulfillmentLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
9422
+ })>;
9423
+ shippingLines: Array<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
9424
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
9425
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
9426
+ })>;
9427
+ surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
9428
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
9429
+ })>;
9430
+ modifications: Array<(Pick<OrderModification, 'id' | 'createdAt' | 'updatedAt' | 'priceChange' | 'note' | 'isSettled'> & {
9431
+ changes: Array<Pick<OrderModificationChange, 'orderLineId' | 'productVariantId' | 'type' | 'quantityBefore' | 'quantityAfter' | 'unitPriceBefore' | 'unitPriceAfter'>>;
9432
+ surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
9433
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
9434
+ })>;
9435
+ payment?: Maybe<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
9436
+ refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
9437
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
9438
+ })>;
9439
+ })>;
9440
+ refund?: Maybe<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
9441
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
9442
+ })>;
9443
+ })>;
9444
+ promotions: Array<Pick<Promotion, 'id'>>;
9445
+ discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
9446
+ taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
9447
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
9448
+ recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
9449
+ history: (Pick<HistoryEntryList, 'totalItems'> & {
9450
+ items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
9451
+ administrator?: Maybe<Pick<Administrator, 'id'>>;
9452
+ })>;
9453
+ });
9454
+ });
9455
+ };
9030
9456
  export type SaveTokenMutationVariables = Exact<{
9031
9457
  input: SaveTokenForCustomerInput;
9032
9458
  }>;
@@ -9069,19 +9495,19 @@ export type GetSessionVariablesQueryVariables = Exact<{
9069
9495
  export type GetSessionVariablesQuery = {
9070
9496
  getSessionVariables: Pick<PaymentFormVariables, 'providerCode' | 'publishableKey' | 'scriptUrl' | 'amount' | 'currency' | 'config'>;
9071
9497
  };
9072
- export type ManageablePluginFieldsFragment = (Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'tags'> & {
9498
+ export type ManageablePluginFieldsFragment = (Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'webhookPath' | 'webhookSigned' | 'tags'> & {
9073
9499
  configItems: Array<(Pick<ManageablePluginConfigItem, 'id' | 'code' | 'type'> & {
9074
9500
  translations: Array<Pick<ManageablePluginConfigItemTranslation, 'id' | 'languageCode' | 'name'>>;
9075
9501
  })>;
9076
9502
  });
9077
9503
  export type ChannelPluginFieldsFragment = (Pick<ChannelPlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'status' | 'configuration' | 'pluginId' | 'channelId'> & {
9078
- plugin: Pick<ManageablePlugin, 'id' | 'name' | 'code' | 'imageUrl' | 'description' | 'tags'>;
9504
+ plugin: Pick<ManageablePlugin, 'id' | 'name' | 'code' | 'imageUrl' | 'description' | 'tags' | 'webhookPath' | 'webhookSigned'>;
9079
9505
  });
9080
9506
  export type ManageablePluginsQueryVariables = Exact<{
9081
9507
  [key: string]: never;
9082
9508
  }>;
9083
9509
  export type ManageablePluginsQuery = {
9084
- manageablePlugins: Array<(Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'tags'> & {
9510
+ manageablePlugins: Array<(Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'webhookPath' | 'webhookSigned' | 'tags'> & {
9085
9511
  configItems: Array<(Pick<ManageablePluginConfigItem, 'id' | 'code' | 'type'> & {
9086
9512
  translations: Array<Pick<ManageablePluginConfigItemTranslation, 'id' | 'languageCode' | 'name'>>;
9087
9513
  })>;
@@ -9091,7 +9517,7 @@ export type ManageablePluginQueryVariables = Exact<{
9091
9517
  code: Scalars['String']['input'];
9092
9518
  }>;
9093
9519
  export type ManageablePluginQuery = {
9094
- manageablePlugin?: Maybe<(Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'tags'> & {
9520
+ manageablePlugin?: Maybe<(Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'webhookPath' | 'webhookSigned' | 'tags'> & {
9095
9521
  configItems: Array<(Pick<ManageablePluginConfigItem, 'id' | 'code' | 'type'> & {
9096
9522
  translations: Array<Pick<ManageablePluginConfigItemTranslation, 'id' | 'languageCode' | 'name'>>;
9097
9523
  })>;
@@ -9102,7 +9528,7 @@ export type ChannelPluginsQueryVariables = Exact<{
9102
9528
  }>;
9103
9529
  export type ChannelPluginsQuery = {
9104
9530
  channelPlugins: Array<(Pick<ChannelPlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'status' | 'configuration' | 'pluginId' | 'channelId'> & {
9105
- plugin: Pick<ManageablePlugin, 'id' | 'name' | 'code' | 'imageUrl' | 'description' | 'tags'>;
9531
+ plugin: Pick<ManageablePlugin, 'id' | 'name' | 'code' | 'imageUrl' | 'description' | 'tags' | 'webhookPath' | 'webhookSigned'>;
9106
9532
  })>;
9107
9533
  };
9108
9534
  export type PluginConfigurationQueryVariables = Exact<{
@@ -9125,7 +9551,7 @@ export type ManageablePluginsByTagQueryVariables = Exact<{
9125
9551
  tag: Scalars['String']['input'];
9126
9552
  }>;
9127
9553
  export type ManageablePluginsByTagQuery = {
9128
- manageablePluginsByTag: Array<(Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'tags'> & {
9554
+ manageablePluginsByTag: Array<(Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'webhookPath' | 'webhookSigned' | 'tags'> & {
9129
9555
  configItems: Array<(Pick<ManageablePluginConfigItem, 'id' | 'code' | 'type'> & {
9130
9556
  translations: Array<Pick<ManageablePluginConfigItemTranslation, 'id' | 'languageCode' | 'name'>>;
9131
9557
  })>;
@@ -9135,7 +9561,7 @@ export type CreateManageablePluginMutationVariables = Exact<{
9135
9561
  input: CreateManageablePluginInput;
9136
9562
  }>;
9137
9563
  export type CreateManageablePluginMutation = {
9138
- createManageablePlugin: (Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'tags'> & {
9564
+ createManageablePlugin: (Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'webhookPath' | 'webhookSigned' | 'tags'> & {
9139
9565
  configItems: Array<(Pick<ManageablePluginConfigItem, 'id' | 'code' | 'type'> & {
9140
9566
  translations: Array<Pick<ManageablePluginConfigItemTranslation, 'id' | 'languageCode' | 'name'>>;
9141
9567
  })>;
@@ -9145,7 +9571,7 @@ export type UpdateManageablePluginMutationVariables = Exact<{
9145
9571
  input: UpdateManageablePluginInput;
9146
9572
  }>;
9147
9573
  export type UpdateManageablePluginMutation = {
9148
- updateManageablePlugin: (Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'tags'> & {
9574
+ updateManageablePlugin: (Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'webhookPath' | 'webhookSigned' | 'tags'> & {
9149
9575
  configItems: Array<(Pick<ManageablePluginConfigItem, 'id' | 'code' | 'type'> & {
9150
9576
  translations: Array<Pick<ManageablePluginConfigItemTranslation, 'id' | 'languageCode' | 'name'>>;
9151
9577
  })>;
@@ -9160,7 +9586,7 @@ export type ActivatePluginMutationVariables = Exact<{
9160
9586
  }>;
9161
9587
  export type ActivatePluginMutation = {
9162
9588
  activatePlugin: (Pick<ChannelPlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'status' | 'configuration' | 'pluginId' | 'channelId'> & {
9163
- plugin: Pick<ManageablePlugin, 'id' | 'name' | 'code' | 'imageUrl' | 'description' | 'tags'>;
9589
+ plugin: Pick<ManageablePlugin, 'id' | 'name' | 'code' | 'imageUrl' | 'description' | 'tags' | 'webhookPath' | 'webhookSigned'>;
9164
9590
  });
9165
9591
  };
9166
9592
  export type EnablePluginMutationVariables = Exact<{
@@ -9168,7 +9594,7 @@ export type EnablePluginMutationVariables = Exact<{
9168
9594
  }>;
9169
9595
  export type EnablePluginMutation = {
9170
9596
  enablePlugin: (Pick<ChannelPlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'status' | 'configuration' | 'pluginId' | 'channelId'> & {
9171
- plugin: Pick<ManageablePlugin, 'id' | 'name' | 'code' | 'imageUrl' | 'description' | 'tags'>;
9597
+ plugin: Pick<ManageablePlugin, 'id' | 'name' | 'code' | 'imageUrl' | 'description' | 'tags' | 'webhookPath' | 'webhookSigned'>;
9172
9598
  });
9173
9599
  };
9174
9600
  export type DisablePluginMutationVariables = Exact<{
@@ -9176,7 +9602,7 @@ export type DisablePluginMutationVariables = Exact<{
9176
9602
  }>;
9177
9603
  export type DisablePluginMutation = {
9178
9604
  disablePlugin: (Pick<ChannelPlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'status' | 'configuration' | 'pluginId' | 'channelId'> & {
9179
- plugin: Pick<ManageablePlugin, 'id' | 'name' | 'code' | 'imageUrl' | 'description' | 'tags'>;
9605
+ plugin: Pick<ManageablePlugin, 'id' | 'name' | 'code' | 'imageUrl' | 'description' | 'tags' | 'webhookPath' | 'webhookSigned'>;
9180
9606
  });
9181
9607
  };
9182
9608
  export type DeleteChannelPluginMutationVariables = Exact<{
@@ -9188,7 +9614,7 @@ export type UpdatePluginConfigurationMutationVariables = Exact<{
9188
9614
  }>;
9189
9615
  export type UpdatePluginConfigurationMutation = {
9190
9616
  updatePluginConfiguration: (Pick<ChannelPlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'status' | 'configuration' | 'pluginId' | 'channelId'> & {
9191
- plugin: Pick<ManageablePlugin, 'id' | 'name' | 'code' | 'imageUrl' | 'description' | 'tags'>;
9617
+ plugin: Pick<ManageablePlugin, 'id' | 'name' | 'code' | 'imageUrl' | 'description' | 'tags' | 'webhookPath' | 'webhookSigned'>;
9192
9618
  });
9193
9619
  };
9194
9620
  export type SetConfigurationItemValueMutationVariables = Exact<{
@@ -9199,7 +9625,7 @@ export type PluginManageablesQueryVariables = Exact<{
9199
9625
  [key: string]: never;
9200
9626
  }>;
9201
9627
  export type PluginManageablesQuery = {
9202
- manageablePlugins: Array<(Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'tags'> & {
9628
+ manageablePlugins: Array<(Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'webhookPath' | 'webhookSigned' | 'tags'> & {
9203
9629
  configItems: Array<(Pick<ManageablePluginConfigItem, 'id' | 'code' | 'type'> & {
9204
9630
  translations: Array<Pick<ManageablePluginConfigItemTranslation, 'id' | 'languageCode' | 'name'>>;
9205
9631
  })>;
@@ -9209,7 +9635,7 @@ export type PluginManageableQueryVariables = Exact<{
9209
9635
  code: Scalars['String']['input'];
9210
9636
  }>;
9211
9637
  export type PluginManageableQuery = {
9212
- manageablePlugin?: Maybe<(Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'tags'> & {
9638
+ manageablePlugin?: Maybe<(Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'webhookPath' | 'webhookSigned' | 'tags'> & {
9213
9639
  configItems: Array<(Pick<ManageablePluginConfigItem, 'id' | 'code' | 'type'> & {
9214
9640
  translations: Array<Pick<ManageablePluginConfigItemTranslation, 'id' | 'languageCode' | 'name'>>;
9215
9641
  })>;
@@ -9219,192 +9645,38 @@ export type PluginByTagManageableQueryVariables = Exact<{
9219
9645
  tag: Scalars['String']['input'];
9220
9646
  }>;
9221
9647
  export type PluginByTagManageableQuery = {
9222
- manageablePluginsByTag: Array<(Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'tags'> & {
9223
- configItems: Array<(Pick<ManageablePluginConfigItem, 'id' | 'code' | 'type'> & {
9224
- translations: Array<Pick<ManageablePluginConfigItemTranslation, 'id' | 'languageCode' | 'name'>>;
9225
- })>;
9226
- })>;
9227
- };
9228
- export type PluginCreateManageableMutationVariables = Exact<{
9229
- input: CreateManageablePluginInput;
9230
- }>;
9231
- export type PluginCreateManageableMutation = {
9232
- createManageablePlugin: (Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'tags'> & {
9648
+ manageablePluginsByTag: Array<(Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'webhookPath' | 'webhookSigned' | 'tags'> & {
9233
9649
  configItems: Array<(Pick<ManageablePluginConfigItem, 'id' | 'code' | 'type'> & {
9234
- translations: Array<Pick<ManageablePluginConfigItemTranslation, 'id' | 'languageCode' | 'name'>>;
9235
- })>;
9236
- });
9237
- };
9238
- export type PluginUpdateManageableMutationVariables = Exact<{
9239
- input: UpdateManageablePluginInput;
9240
- }>;
9241
- export type PluginUpdateManageableMutation = {
9242
- updateManageablePlugin: (Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'tags'> & {
9243
- configItems: Array<(Pick<ManageablePluginConfigItem, 'id' | 'code' | 'type'> & {
9244
- translations: Array<Pick<ManageablePluginConfigItemTranslation, 'id' | 'languageCode' | 'name'>>;
9245
- })>;
9246
- });
9247
- };
9248
- export type PluginDeleteManageableMutationVariables = Exact<{
9249
- id: Scalars['ID']['input'];
9250
- }>;
9251
- export type PluginDeleteManageableMutation = Pick<Mutation, 'deleteManageablePlugin'>;
9252
- export type ProductOptionGroupTranslationFieldFragment = Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>;
9253
- export type ProductOptionGroupFieldFragment = (Pick<ProductOptionGroup, 'id' | 'code' | 'name'> & {
9254
- options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9255
- translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9256
- });
9257
- export type AdminProductOptionGroupQueryVariables = Exact<{
9258
- id: Scalars['ID']['input'];
9259
- }>;
9260
- export type AdminProductOptionGroupQuery = {
9261
- productOptionGroup?: Maybe<(Pick<ProductOptionGroup, 'id' | 'code' | 'name'> & {
9262
- options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9263
- translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9264
- })>;
9265
- };
9266
- export type AdminProductOptionGroupsQueryVariables = Exact<{
9267
- productId?: InputMaybe<Scalars['ID']['input']>;
9268
- }>;
9269
- export type AdminProductOptionGroupsQuery = {
9270
- productOptionGroups: Array<(Pick<ProductOptionGroup, 'id' | 'code' | 'name'> & {
9271
- options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9272
- translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9273
- })>;
9274
- };
9275
- export type CreateProductOptionGroupMutationVariables = Exact<{
9276
- input: CreateProductOptionGroupInput;
9277
- }>;
9278
- export type CreateProductOptionGroupMutation = {
9279
- createProductOptionGroup: (Pick<ProductOptionGroup, 'id' | 'code' | 'name'> & {
9280
- options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9281
- translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9282
- });
9283
- };
9284
- export type UpdateProductOptionGroupMutationVariables = Exact<{
9285
- input: UpdateProductOptionGroupInput;
9286
- }>;
9287
- export type UpdateProductOptionGroupMutation = {
9288
- updateProductOptionGroup: (Pick<ProductOptionGroup, 'id' | 'code' | 'name'> & {
9289
- options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9290
- translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9291
- });
9292
- };
9293
- export type DeleteProductOptionGroupMutationVariables = Exact<{
9294
- input: DeleteProductOptionGroupInput;
9295
- }>;
9296
- export type DeleteProductOptionGroupMutation = {
9297
- deleteProductOptionGroup: Pick<DeletionResponse, 'result' | 'message'>;
9298
- };
9299
- export type ProductOptionTranslationFieldFragment = Pick<ProductOptionTranslation, 'id' | 'languageCode' | 'name'>;
9300
- export type ProductOptionFieldFragment = (Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'> & {
9301
- group: Pick<ProductOptionGroup, 'id' | 'code' | 'name'>;
9302
- translations: Array<Pick<ProductOptionTranslation, 'id' | 'languageCode' | 'name'>>;
9303
- });
9304
- export type CreateProductOptionMutationVariables = Exact<{
9305
- input: CreateProductOptionInput;
9306
- }>;
9307
- export type CreateProductOptionMutation = {
9308
- createProductOption: (Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'> & {
9309
- group: Pick<ProductOptionGroup, 'id' | 'code' | 'name'>;
9310
- translations: Array<Pick<ProductOptionTranslation, 'id' | 'languageCode' | 'name'>>;
9311
- });
9312
- };
9313
- export type UpdateProductOptionMutationVariables = Exact<{
9314
- input: UpdateProductOptionInput;
9315
- }>;
9316
- export type UpdateProductOptionMutation = {
9317
- updateProductOption: (Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'> & {
9318
- group: Pick<ProductOptionGroup, 'id' | 'code' | 'name'>;
9319
- translations: Array<Pick<ProductOptionTranslation, 'id' | 'languageCode' | 'name'>>;
9320
- });
9321
- };
9322
- export type DeleteProductOptionMutationVariables = Exact<{
9323
- id: Scalars['ID']['input'];
9324
- }>;
9325
- export type DeleteProductOptionMutation = {
9326
- deleteProductOption: Pick<DeletionResponse, 'result' | 'message'>;
9327
- };
9328
- export type AddOptionGroupToProductMutationVariables = Exact<{
9329
- input: AddOptionGroupToProductInput;
9330
- }>;
9331
- export type AddOptionGroupToProductMutation = {
9332
- addOptionGroupToProduct: (Pick<Product, 'id' | 'createdAt' | 'updatedAt' | 'enabled' | 'isDigital' | 'trackInventory'> & {
9333
- featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
9334
- tags: Array<Pick<Tag, 'id' | 'value'>>;
9335
- focalPoint?: Maybe<Pick<FocalPoint, 'x' | 'y'>>;
9336
- })>;
9337
- assets: Array<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
9338
- tags: Array<Pick<Tag, 'id' | 'value'>>;
9339
- focalPoint?: Maybe<Pick<FocalPoint, 'x' | 'y'>>;
9340
- })>;
9341
- translations: Array<Pick<ProductTranslation, 'id' | 'languageCode' | 'name' | 'slug' | 'description'>>;
9342
- facetValues: Array<Pick<FacetValue, 'id' | 'name' | 'code' | 'facetId'>>;
9343
- channels: Array<Pick<Channel, 'id' | 'code' | 'token'>>;
9344
- optionGroups: Array<(Pick<ProductOptionGroup, 'id' | 'code' | 'name'> & {
9345
- options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9346
- translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9347
- })>;
9348
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
9349
- prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
9350
- taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
9351
- featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
9352
- tags: Array<Pick<Tag, 'id' | 'value'>>;
9353
- focalPoint?: Maybe<Pick<FocalPoint, 'x' | 'y'>>;
9354
- })>;
9355
- assets: Array<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
9356
- tags: Array<Pick<Tag, 'id' | 'value'>>;
9357
- focalPoint?: Maybe<Pick<FocalPoint, 'x' | 'y'>>;
9358
- })>;
9359
- options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9360
- translations: Array<Pick<ProductVariantTranslation, 'id' | 'languageCode' | 'name'>>;
9361
- weight?: Maybe<Pick<ProductVariantWeight, 'value' | 'unit'>>;
9362
- dimensions?: Maybe<Pick<ProductVariantDimensions, 'length' | 'width' | 'height' | 'unit'>>;
9363
- customs?: Maybe<Pick<ProductVariantCustoms, 'hsCode' | 'originCountryCode' | 'contentsType'>>;
9650
+ translations: Array<Pick<ManageablePluginConfigItemTranslation, 'id' | 'languageCode' | 'name'>>;
9364
9651
  })>;
9365
- });
9652
+ })>;
9366
9653
  };
9367
- export type RemoveOptionGroupFromProductMutationVariables = Exact<{
9368
- input: RemoveOptionGroupFromProductInput;
9654
+ export type PluginCreateManageableMutationVariables = Exact<{
9655
+ input: CreateManageablePluginInput;
9369
9656
  }>;
9370
- export type RemoveOptionGroupFromProductMutation = {
9371
- removeOptionGroupFromProduct: (Pick<Product, 'id' | 'createdAt' | 'updatedAt' | 'enabled' | 'isDigital' | 'trackInventory'> & {
9372
- featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
9373
- tags: Array<Pick<Tag, 'id' | 'value'>>;
9374
- focalPoint?: Maybe<Pick<FocalPoint, 'x' | 'y'>>;
9375
- })>;
9376
- assets: Array<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
9377
- tags: Array<Pick<Tag, 'id' | 'value'>>;
9378
- focalPoint?: Maybe<Pick<FocalPoint, 'x' | 'y'>>;
9379
- })>;
9380
- translations: Array<Pick<ProductTranslation, 'id' | 'languageCode' | 'name' | 'slug' | 'description'>>;
9381
- facetValues: Array<Pick<FacetValue, 'id' | 'name' | 'code' | 'facetId'>>;
9382
- channels: Array<Pick<Channel, 'id' | 'code' | 'token'>>;
9383
- optionGroups: Array<(Pick<ProductOptionGroup, 'id' | 'code' | 'name'> & {
9384
- options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9385
- translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9657
+ export type PluginCreateManageableMutation = {
9658
+ createManageablePlugin: (Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'webhookPath' | 'webhookSigned' | 'tags'> & {
9659
+ configItems: Array<(Pick<ManageablePluginConfigItem, 'id' | 'code' | 'type'> & {
9660
+ translations: Array<Pick<ManageablePluginConfigItemTranslation, 'id' | 'languageCode' | 'name'>>;
9386
9661
  })>;
9387
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
9388
- prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
9389
- taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
9390
- featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
9391
- tags: Array<Pick<Tag, 'id' | 'value'>>;
9392
- focalPoint?: Maybe<Pick<FocalPoint, 'x' | 'y'>>;
9393
- })>;
9394
- assets: Array<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
9395
- tags: Array<Pick<Tag, 'id' | 'value'>>;
9396
- focalPoint?: Maybe<Pick<FocalPoint, 'x' | 'y'>>;
9397
- })>;
9398
- options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9399
- translations: Array<Pick<ProductVariantTranslation, 'id' | 'languageCode' | 'name'>>;
9400
- weight?: Maybe<Pick<ProductVariantWeight, 'value' | 'unit'>>;
9401
- dimensions?: Maybe<Pick<ProductVariantDimensions, 'length' | 'width' | 'height' | 'unit'>>;
9402
- customs?: Maybe<Pick<ProductVariantCustoms, 'hsCode' | 'originCountryCode' | 'contentsType'>>;
9662
+ });
9663
+ };
9664
+ export type PluginUpdateManageableMutationVariables = Exact<{
9665
+ input: UpdateManageablePluginInput;
9666
+ }>;
9667
+ export type PluginUpdateManageableMutation = {
9668
+ updateManageablePlugin: (Pick<ManageablePlugin, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'code' | 'description' | 'imageUrl' | 'toggable' | 'webhookPath' | 'webhookSigned' | 'tags'> & {
9669
+ configItems: Array<(Pick<ManageablePluginConfigItem, 'id' | 'code' | 'type'> & {
9670
+ translations: Array<Pick<ManageablePluginConfigItemTranslation, 'id' | 'languageCode' | 'name'>>;
9403
9671
  })>;
9404
9672
  });
9405
9673
  };
9674
+ export type PluginDeleteManageableMutationVariables = Exact<{
9675
+ id: Scalars['ID']['input'];
9676
+ }>;
9677
+ export type PluginDeleteManageableMutation = Pick<Mutation, 'deleteManageablePlugin'>;
9406
9678
  export type ProductVariantTranslationFieldFragment = Pick<ProductVariantTranslation, 'id' | 'languageCode' | 'name'>;
9407
- export type ProductVariantFieldFragment = (Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
9679
+ export type ProductVariantFieldFragment = (Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
9408
9680
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
9409
9681
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
9410
9682
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -9426,7 +9698,7 @@ export type AdminProductVariantQueryVariables = Exact<{
9426
9698
  id: Scalars['ID']['input'];
9427
9699
  }>;
9428
9700
  export type AdminProductVariantQuery = {
9429
- productVariant?: Maybe<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
9701
+ productVariant?: Maybe<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
9430
9702
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
9431
9703
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
9432
9704
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -9448,7 +9720,7 @@ export type AdminProductVariantsQueryVariables = Exact<{
9448
9720
  productId: Scalars['ID']['input'];
9449
9721
  }>;
9450
9722
  export type AdminProductVariantsQuery = {
9451
- productVariants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
9723
+ productVariants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
9452
9724
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
9453
9725
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
9454
9726
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -9470,7 +9742,7 @@ export type CreateProductVariantsMutationVariables = Exact<{
9470
9742
  input: Array<CreateProductVariantInput> | CreateProductVariantInput;
9471
9743
  }>;
9472
9744
  export type CreateProductVariantsMutation = {
9473
- createProductVariants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
9745
+ createProductVariants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
9474
9746
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
9475
9747
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
9476
9748
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -9492,7 +9764,7 @@ export type UpdateProductVariantsMutationVariables = Exact<{
9492
9764
  input: Array<UpdateProductVariantInput> | UpdateProductVariantInput;
9493
9765
  }>;
9494
9766
  export type UpdateProductVariantsMutation = {
9495
- updateProductVariants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
9767
+ updateProductVariants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
9496
9768
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
9497
9769
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
9498
9770
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -9545,7 +9817,7 @@ export type ProductFieldFragment = (Pick<Product, 'id' | 'createdAt' | 'updatedA
9545
9817
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9546
9818
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9547
9819
  })>;
9548
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
9820
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
9549
9821
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
9550
9822
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
9551
9823
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -9583,7 +9855,7 @@ export type AdminProductQuery = {
9583
9855
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9584
9856
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9585
9857
  })>;
9586
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
9858
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
9587
9859
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
9588
9860
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
9589
9861
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -9623,7 +9895,7 @@ export type AdminProductsQuery = {
9623
9895
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9624
9896
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9625
9897
  })>;
9626
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
9898
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
9627
9899
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
9628
9900
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
9629
9901
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -9663,7 +9935,7 @@ export type CreateProductMutation = {
9663
9935
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9664
9936
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9665
9937
  })>;
9666
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
9938
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
9667
9939
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
9668
9940
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
9669
9941
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -9702,7 +9974,7 @@ export type UpdateProductMutation = {
9702
9974
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9703
9975
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9704
9976
  })>;
9705
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
9977
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
9706
9978
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
9707
9979
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
9708
9980
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -9747,7 +10019,7 @@ export type AssignProductsToChannelMutation = {
9747
10019
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9748
10020
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9749
10021
  })>;
9750
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10022
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
9751
10023
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
9752
10024
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
9753
10025
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -9786,7 +10058,7 @@ export type RemoveProductsFromChannelMutation = {
9786
10058
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9787
10059
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9788
10060
  })>;
9789
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10061
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
9790
10062
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
9791
10063
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
9792
10064
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -9805,6 +10077,11 @@ export type RemoveProductsFromChannelMutation = {
9805
10077
  })>;
9806
10078
  })>;
9807
10079
  };
10080
+ export type ProductOptionGroupTranslationFieldFragment = Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>;
10081
+ export type ProductOptionGroupFieldFragment = (Pick<ProductOptionGroup, 'id' | 'code' | 'name'> & {
10082
+ options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10083
+ translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10084
+ });
9808
10085
  export type ProductOptionGroupQueryVariables = Exact<{
9809
10086
  id: Scalars['ID']['input'];
9810
10087
  }>;
@@ -9823,34 +10100,34 @@ export type ProductOptionGroupsQuery = {
9823
10100
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9824
10101
  })>;
9825
10102
  };
9826
- export type ProductCreateOptionGroupMutationVariables = Exact<{
10103
+ export type CreateProductOptionGroupMutationVariables = Exact<{
9827
10104
  input: CreateProductOptionGroupInput;
9828
10105
  }>;
9829
- export type ProductCreateOptionGroupMutation = {
10106
+ export type CreateProductOptionGroupMutation = {
9830
10107
  createProductOptionGroup: (Pick<ProductOptionGroup, 'id' | 'code' | 'name'> & {
9831
10108
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9832
10109
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9833
10110
  });
9834
10111
  };
9835
- export type ProductUpdateOptionGroupMutationVariables = Exact<{
10112
+ export type UpdateProductOptionGroupMutationVariables = Exact<{
9836
10113
  input: UpdateProductOptionGroupInput;
9837
10114
  }>;
9838
- export type ProductUpdateOptionGroupMutation = {
10115
+ export type UpdateProductOptionGroupMutation = {
9839
10116
  updateProductOptionGroup: (Pick<ProductOptionGroup, 'id' | 'code' | 'name'> & {
9840
10117
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9841
10118
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9842
10119
  });
9843
10120
  };
9844
- export type ProductDeleteOptionGroupMutationVariables = Exact<{
10121
+ export type DeleteProductOptionGroupMutationVariables = Exact<{
9845
10122
  input: DeleteProductOptionGroupInput;
9846
10123
  }>;
9847
- export type ProductDeleteOptionGroupMutation = {
10124
+ export type DeleteProductOptionGroupMutation = {
9848
10125
  deleteProductOptionGroup: Pick<DeletionResponse, 'result' | 'message'>;
9849
10126
  };
9850
- export type ProductAddOptionGroupMutationVariables = Exact<{
10127
+ export type AddOptionGroupToProductMutationVariables = Exact<{
9851
10128
  input: AddOptionGroupToProductInput;
9852
10129
  }>;
9853
- export type ProductAddOptionGroupMutation = {
10130
+ export type AddOptionGroupToProductMutation = {
9854
10131
  addOptionGroupToProduct: (Pick<Product, 'id' | 'createdAt' | 'updatedAt' | 'enabled' | 'isDigital' | 'trackInventory'> & {
9855
10132
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
9856
10133
  tags: Array<Pick<Tag, 'id' | 'value'>>;
@@ -9867,7 +10144,7 @@ export type ProductAddOptionGroupMutation = {
9867
10144
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9868
10145
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9869
10146
  })>;
9870
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10147
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
9871
10148
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
9872
10149
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
9873
10150
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -9886,10 +10163,10 @@ export type ProductAddOptionGroupMutation = {
9886
10163
  })>;
9887
10164
  });
9888
10165
  };
9889
- export type ProductRemoveOptionGroupMutationVariables = Exact<{
10166
+ export type RemoveOptionGroupFromProductMutationVariables = Exact<{
9890
10167
  input: RemoveOptionGroupFromProductInput;
9891
10168
  }>;
9892
- export type ProductRemoveOptionGroupMutation = {
10169
+ export type RemoveOptionGroupFromProductMutation = {
9893
10170
  removeOptionGroupFromProduct: (Pick<Product, 'id' | 'createdAt' | 'updatedAt' | 'enabled' | 'isDigital' | 'trackInventory'> & {
9894
10171
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
9895
10172
  tags: Array<Pick<Tag, 'id' | 'value'>>;
@@ -9906,7 +10183,7 @@ export type ProductRemoveOptionGroupMutation = {
9906
10183
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
9907
10184
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
9908
10185
  })>;
9909
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10186
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
9910
10187
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
9911
10188
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
9912
10189
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -9925,28 +10202,33 @@ export type ProductRemoveOptionGroupMutation = {
9925
10202
  })>;
9926
10203
  });
9927
10204
  };
9928
- export type ProductCreateOptionMutationVariables = Exact<{
10205
+ export type ProductOptionTranslationFieldFragment = Pick<ProductOptionTranslation, 'id' | 'languageCode' | 'name'>;
10206
+ export type ProductOptionFieldFragment = (Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'> & {
10207
+ group: Pick<ProductOptionGroup, 'id' | 'code' | 'name'>;
10208
+ translations: Array<Pick<ProductOptionTranslation, 'id' | 'languageCode' | 'name'>>;
10209
+ });
10210
+ export type CreateProductOptionMutationVariables = Exact<{
9929
10211
  input: CreateProductOptionInput;
9930
10212
  }>;
9931
- export type ProductCreateOptionMutation = {
10213
+ export type CreateProductOptionMutation = {
9932
10214
  createProductOption: (Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'> & {
9933
10215
  group: Pick<ProductOptionGroup, 'id' | 'code' | 'name'>;
9934
10216
  translations: Array<Pick<ProductOptionTranslation, 'id' | 'languageCode' | 'name'>>;
9935
10217
  });
9936
10218
  };
9937
- export type ProductUpdateOptionMutationVariables = Exact<{
10219
+ export type UpdateProductOptionMutationVariables = Exact<{
9938
10220
  input: UpdateProductOptionInput;
9939
10221
  }>;
9940
- export type ProductUpdateOptionMutation = {
10222
+ export type UpdateProductOptionMutation = {
9941
10223
  updateProductOption: (Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'> & {
9942
10224
  group: Pick<ProductOptionGroup, 'id' | 'code' | 'name'>;
9943
10225
  translations: Array<Pick<ProductOptionTranslation, 'id' | 'languageCode' | 'name'>>;
9944
10226
  });
9945
10227
  };
9946
- export type ProductDeleteOptionMutationVariables = Exact<{
10228
+ export type DeleteProductOptionMutationVariables = Exact<{
9947
10229
  id: Scalars['ID']['input'];
9948
10230
  }>;
9949
- export type ProductDeleteOptionMutation = {
10231
+ export type DeleteProductOptionMutation = {
9950
10232
  deleteProductOption: Pick<DeletionResponse, 'result' | 'message'>;
9951
10233
  };
9952
10234
  export type PromotionFieldFragment = Pick<Promotion, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'enabled' | 'couponCode' | 'startsAt' | 'endsAt' | 'perCustomerUsageLimit' | 'usageLimit' | 'priorityScore' | 'conditions' | 'actions'>;
@@ -10212,21 +10494,23 @@ export type DeleteSellingPlanMutationVariables = Exact<{
10212
10494
  export type DeleteSellingPlanMutation = {
10213
10495
  deleteSellingPlan: Pick<SellingPlan, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'billingInterval' | 'intervalCount' | 'trialDays' | 'pricingPolicy' | 'adjustmentValue' | 'anchorDay' | 'enabled'>;
10214
10496
  };
10215
- export type ShippingRateGroupFieldFragment = (Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName'> & {
10497
+ export type ShippingRateGroupFieldFragment = (Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'requiresRerate' | 'supersededAt'> & {
10498
+ lastRateErrors: Array<Pick<RateFetchFailure, 'providerCode' | 'providerName' | 'errorCode' | 'variables'>>;
10216
10499
  orderLines: Array<Pick<ShippingGatewayRateGroupLine, 'orderLineId' | 'productName' | 'variantName' | 'quantity' | 'weight' | 'weightUnit' | 'length' | 'width' | 'height' | 'dimensionUnit'>>;
10217
- rates: Array<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
10500
+ rates: Array<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'estimated'>>;
10218
10501
  });
10219
- export type ShippingLabelFieldFragment = Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel'>;
10502
+ export type ShippingLabelFieldFragment = Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel' | 'rateGroupId' | 'costAmount' | 'costCurrencyCode' | 'lastErrorCode' | 'lastErrorDetail' | 'voidedAt'>;
10503
+ export type ShippingPickupFieldFragment = Pick<ShippingGatewayPickup, 'id' | 'orderId' | 'fulfillmentId' | 'rateGroupId' | 'providerCode' | 'carrier' | 'extPickupId' | 'status' | 'confirmationCode' | 'requestedStartAt' | 'requestedEndAt' | 'confirmedStartAt' | 'confirmedEndAt' | 'lastErrorCode'>;
10220
10504
  export type ShippingCarrierFieldFragment = Pick<ShippingGatewayCarrier, 'id' | 'name' | 'code' | 'providerCode' | 'enabled'>;
10221
- export type ShippingGatewayRoutingRuleFieldFragment = (Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'fulfillmentType' | 'providerCode' | 'priority' | 'enabled'> & {
10505
+ export type ShippingGatewayRoutingRuleFieldFragment = (Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'cities' | 'useFlatRates' | 'allProviders' | 'providerCodes' | 'priority' | 'enabled'> & {
10222
10506
  countries: Array<Pick<Country, 'id' | 'code' | 'name'>>;
10223
- flatRates: Array<Pick<ShippingGatewayRoutingFlatRate, 'id' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
10224
10507
  });
10508
+ export type StockLocationFlatRateFieldFragment = Pick<StockLocationFlatRate, 'id' | 'stockLocationId' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>;
10225
10509
  export type ShippingLabelsQueryVariables = Exact<{
10226
10510
  orderId: Scalars['ID']['input'];
10227
10511
  }>;
10228
10512
  export type ShippingLabelsQuery = {
10229
- shippingLabels: Array<Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel'>>;
10513
+ shippingLabels: Array<Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel' | 'rateGroupId' | 'costAmount' | 'costCurrencyCode' | 'lastErrorCode' | 'lastErrorDetail' | 'voidedAt'>>;
10230
10514
  };
10231
10515
  export type CarriersQueryVariables = Exact<{
10232
10516
  [key: string]: never;
@@ -10238,19 +10522,19 @@ export type CreateShippingLabelMutationVariables = Exact<{
10238
10522
  input: CreateLabelServiceInput;
10239
10523
  }>;
10240
10524
  export type CreateShippingLabelMutation = {
10241
- createShippingLabel: Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel'>;
10525
+ createShippingLabel: Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel' | 'rateGroupId' | 'costAmount' | 'costCurrencyCode' | 'lastErrorCode' | 'lastErrorDetail' | 'voidedAt'>;
10242
10526
  };
10243
10527
  export type VoidShippingLabelMutationVariables = Exact<{
10244
10528
  labelId: Scalars['ID']['input'];
10245
10529
  }>;
10246
10530
  export type VoidShippingLabelMutation = {
10247
- voidShippingLabel: Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel'>;
10531
+ voidShippingLabel: Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel' | 'rateGroupId' | 'costAmount' | 'costCurrencyCode' | 'lastErrorCode' | 'lastErrorDetail' | 'voidedAt'>;
10248
10532
  };
10249
10533
  export type CreateReturnLabelMutationVariables = Exact<{
10250
10534
  input: CreateReturnLabelServiceInput;
10251
10535
  }>;
10252
10536
  export type CreateReturnLabelMutation = {
10253
- createReturnLabel: Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel'>;
10537
+ createReturnLabel: Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel' | 'rateGroupId' | 'costAmount' | 'costCurrencyCode' | 'lastErrorCode' | 'lastErrorDetail' | 'voidedAt'>;
10254
10538
  };
10255
10539
  export type CreateCarrierMutationVariables = Exact<{
10256
10540
  input: CreateCarrierInput;
@@ -10272,33 +10556,35 @@ export type ShippingRateGroupsQueryVariables = Exact<{
10272
10556
  orderId: Scalars['ID']['input'];
10273
10557
  }>;
10274
10558
  export type ShippingRateGroupsQuery = {
10275
- shippingRateGroups: Array<(Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName'> & {
10559
+ shippingRateGroups: Array<(Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'requiresRerate' | 'supersededAt'> & {
10560
+ lastRateErrors: Array<Pick<RateFetchFailure, 'providerCode' | 'providerName' | 'errorCode' | 'variables'>>;
10276
10561
  orderLines: Array<Pick<ShippingGatewayRateGroupLine, 'orderLineId' | 'productName' | 'variantName' | 'quantity' | 'weight' | 'weightUnit' | 'length' | 'width' | 'height' | 'dimensionUnit'>>;
10277
- rates: Array<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
10562
+ rates: Array<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'estimated'>>;
10278
10563
  })>;
10279
10564
  };
10280
10565
  export type RefreshShippingRateGroupsMutationVariables = Exact<{
10281
10566
  input: RefreshShippingRateGroupsInput;
10282
10567
  }>;
10283
10568
  export type RefreshShippingRateGroupsMutation = {
10284
- refreshShippingRateGroups: Array<(Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName'> & {
10569
+ refreshShippingRateGroups: Array<(Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'requiresRerate' | 'supersededAt'> & {
10570
+ lastRateErrors: Array<Pick<RateFetchFailure, 'providerCode' | 'providerName' | 'errorCode' | 'variables'>>;
10285
10571
  orderLines: Array<Pick<ShippingGatewayRateGroupLine, 'orderLineId' | 'productName' | 'variantName' | 'quantity' | 'weight' | 'weightUnit' | 'length' | 'width' | 'height' | 'dimensionUnit'>>;
10286
- rates: Array<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
10572
+ rates: Array<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'estimated'>>;
10287
10573
  })>;
10288
10574
  };
10289
10575
  export type SelectShippingRateMutationVariables = Exact<{
10290
10576
  input: SelectShippingRateInput;
10291
10577
  }>;
10292
10578
  export type SelectShippingRateMutation = {
10293
- selectShippingRate: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
10294
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
10579
+ selectShippingRate: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
10580
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
10295
10581
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
10296
10582
  })>;
10297
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
10583
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
10298
10584
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
10299
10585
  })>;
10300
10586
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
10301
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
10587
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
10302
10588
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
10303
10589
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
10304
10590
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -10342,7 +10628,7 @@ export type SelectShippingRateMutation = {
10342
10628
  promotions: Array<Pick<Promotion, 'id'>>;
10343
10629
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
10344
10630
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
10345
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
10631
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
10346
10632
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
10347
10633
  history: (Pick<HistoryEntryList, 'totalItems'> & {
10348
10634
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -10355,15 +10641,15 @@ export type SetManualShippingRateMutationVariables = Exact<{
10355
10641
  input: SetManualShippingRateInput;
10356
10642
  }>;
10357
10643
  export type SetManualShippingRateMutation = {
10358
- setManualShippingRate: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
10359
- billingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
10644
+ setManualShippingRate: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
10645
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
10360
10646
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
10361
10647
  })>;
10362
- shippingAddress?: Maybe<(Pick<OrderAddress, 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
10648
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
10363
10649
  country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
10364
10650
  })>;
10365
10651
  customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
10366
- lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
10652
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
10367
10653
  adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
10368
10654
  taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
10369
10655
  productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
@@ -10407,7 +10693,7 @@ export type SetManualShippingRateMutation = {
10407
10693
  promotions: Array<Pick<Promotion, 'id'>>;
10408
10694
  discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
10409
10695
  taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
10410
- recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode'>>;
10696
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
10411
10697
  recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
10412
10698
  history: (Pick<HistoryEntryList, 'totalItems'> & {
10413
10699
  items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
@@ -10420,7 +10706,19 @@ export type UpdateShippingLabelMutationVariables = Exact<{
10420
10706
  input: UpdateShippingLabelInput;
10421
10707
  }>;
10422
10708
  export type UpdateShippingLabelMutation = {
10423
- updateShippingLabel: Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel'>;
10709
+ updateShippingLabel: Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel' | 'rateGroupId' | 'costAmount' | 'costCurrencyCode' | 'lastErrorCode' | 'lastErrorDetail' | 'voidedAt'>;
10710
+ };
10711
+ export type RequestPickupMutationVariables = Exact<{
10712
+ input: RequestPickupInput;
10713
+ }>;
10714
+ export type RequestPickupMutation = {
10715
+ requestPickup: Pick<ShippingGatewayPickup, 'id' | 'orderId' | 'fulfillmentId' | 'rateGroupId' | 'providerCode' | 'carrier' | 'extPickupId' | 'status' | 'confirmationCode' | 'requestedStartAt' | 'requestedEndAt' | 'confirmedStartAt' | 'confirmedEndAt' | 'lastErrorCode'>;
10716
+ };
10717
+ export type CancelPickupMutationVariables = Exact<{
10718
+ pickupId: Scalars['ID']['input'];
10719
+ }>;
10720
+ export type CancelPickupMutation = {
10721
+ cancelPickup: Pick<ShippingGatewayPickup, 'id' | 'orderId' | 'fulfillmentId' | 'rateGroupId' | 'providerCode' | 'carrier' | 'extPickupId' | 'status' | 'confirmationCode' | 'requestedStartAt' | 'requestedEndAt' | 'confirmedStartAt' | 'confirmedEndAt' | 'lastErrorCode'>;
10424
10722
  };
10425
10723
  export type AvailableShippingProvidersQueryVariables = Exact<{
10426
10724
  [key: string]: never;
@@ -10432,42 +10730,313 @@ export type ShippingGatewayRoutingRulesQueryVariables = Exact<{
10432
10730
  stockLocationId: Scalars['ID']['input'];
10433
10731
  }>;
10434
10732
  export type ShippingGatewayRoutingRulesQuery = {
10435
- shippingGatewayRoutingRules: Array<(Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'fulfillmentType' | 'providerCode' | 'priority' | 'enabled'> & {
10733
+ shippingGatewayRoutingRules: Array<(Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'cities' | 'useFlatRates' | 'allProviders' | 'providerCodes' | 'priority' | 'enabled'> & {
10436
10734
  countries: Array<Pick<Country, 'id' | 'code' | 'name'>>;
10437
- flatRates: Array<Pick<ShippingGatewayRoutingFlatRate, 'id' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
10438
10735
  })>;
10439
10736
  };
10440
10737
  export type CreateShippingGatewayRoutingRuleMutationVariables = Exact<{
10441
10738
  input: CreateShippingGatewayRoutingRuleInput;
10442
10739
  }>;
10443
10740
  export type CreateShippingGatewayRoutingRuleMutation = {
10444
- createShippingGatewayRoutingRule: (Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'fulfillmentType' | 'providerCode' | 'priority' | 'enabled'> & {
10741
+ createShippingGatewayRoutingRule: (Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'cities' | 'useFlatRates' | 'allProviders' | 'providerCodes' | 'priority' | 'enabled'> & {
10445
10742
  countries: Array<Pick<Country, 'id' | 'code' | 'name'>>;
10446
- flatRates: Array<Pick<ShippingGatewayRoutingFlatRate, 'id' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
10447
10743
  });
10448
10744
  };
10449
10745
  export type UpdateShippingGatewayRoutingRuleMutationVariables = Exact<{
10450
10746
  input: UpdateShippingGatewayRoutingRuleInput;
10451
10747
  }>;
10452
10748
  export type UpdateShippingGatewayRoutingRuleMutation = {
10453
- updateShippingGatewayRoutingRule: (Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'fulfillmentType' | 'providerCode' | 'priority' | 'enabled'> & {
10749
+ updateShippingGatewayRoutingRule: (Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'cities' | 'useFlatRates' | 'allProviders' | 'providerCodes' | 'priority' | 'enabled'> & {
10454
10750
  countries: Array<Pick<Country, 'id' | 'code' | 'name'>>;
10455
- flatRates: Array<Pick<ShippingGatewayRoutingFlatRate, 'id' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
10456
10751
  });
10457
10752
  };
10458
10753
  export type DeleteShippingGatewayRoutingRuleMutationVariables = Exact<{
10459
10754
  id: Scalars['ID']['input'];
10460
10755
  }>;
10461
10756
  export type DeleteShippingGatewayRoutingRuleMutation = Pick<Mutation, 'deleteShippingGatewayRoutingRule'>;
10757
+ export type StockLocationFlatRatesQueryVariables = Exact<{
10758
+ stockLocationId: Scalars['ID']['input'];
10759
+ }>;
10760
+ export type StockLocationFlatRatesQuery = {
10761
+ stockLocationFlatRates: Array<Pick<StockLocationFlatRate, 'id' | 'stockLocationId' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
10762
+ };
10763
+ export type ReplaceStockLocationFlatRatesMutationVariables = Exact<{
10764
+ input: ReplaceStockLocationFlatRatesInput;
10765
+ }>;
10766
+ export type ReplaceStockLocationFlatRatesMutation = {
10767
+ replaceStockLocationFlatRates: Array<Pick<StockLocationFlatRate, 'id' | 'stockLocationId' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
10768
+ };
10462
10769
  export type ReorderShippingGatewayRoutingRulesMutationVariables = Exact<{
10463
10770
  input: ReorderShippingGatewayRoutingRulesInput;
10464
10771
  }>;
10465
10772
  export type ReorderShippingGatewayRoutingRulesMutation = {
10466
- reorderShippingGatewayRoutingRules: Array<(Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'fulfillmentType' | 'providerCode' | 'priority' | 'enabled'> & {
10773
+ reorderShippingGatewayRoutingRules: Array<(Pick<ShippingGatewayRoutingRule, 'id' | 'stockLocationId' | 'scopeType' | 'cities' | 'useFlatRates' | 'allProviders' | 'providerCodes' | 'priority' | 'enabled'> & {
10467
10774
  countries: Array<Pick<Country, 'id' | 'code' | 'name'>>;
10468
- flatRates: Array<Pick<ShippingGatewayRoutingFlatRate, 'id' | 'code' | 'name' | 'amount' | 'currencyCode' | 'estimatedDays'>>;
10469
10775
  })>;
10470
10776
  };
10777
+ export type ShipmentRateFieldFragment = Pick<ShipmentRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'suggested' | 'estimated'>;
10778
+ export type OrderShipmentCostFieldFragment = Pick<OrderShipmentCost, 'collectedAmount' | 'labelCostAmount' | 'costDelta' | 'refundPendingTotal' | 'refundedTotal' | 'currencyCode'>;
10779
+ export type OrderShippingCostSummaryFieldFragment = Pick<OrderShippingCostSummary, 'collectedTotal' | 'labelCostTotal' | 'delta' | 'refundPendingTotal' | 'refundedTotal' | 'currencyCode'>;
10780
+ export type OrderShipmentFieldFragment = (Pick<OrderShipment, 'requiresRerate'> & {
10781
+ rateGroup: (Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'requiresRerate' | 'supersededAt'> & {
10782
+ lastRateErrors: Array<Pick<RateFetchFailure, 'providerCode' | 'providerName' | 'errorCode' | 'variables'>>;
10783
+ orderLines: Array<Pick<ShippingGatewayRateGroupLine, 'orderLineId' | 'productName' | 'variantName' | 'quantity' | 'weight' | 'weightUnit' | 'length' | 'width' | 'height' | 'dimensionUnit'>>;
10784
+ rates: Array<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'estimated'>>;
10785
+ });
10786
+ fulfillmentRequest?: Maybe<(Pick<FulfillmentRequest, 'id' | 'state' | 'deliveryMethod' | 'handlerCode'> & {
10787
+ holdReasons: Array<Pick<HoldReason, 'code' | 'addedAt' | 'note'>>;
10788
+ lines: Array<Pick<FulfillmentRequestLine, 'id' | 'quantity' | 'orderLineId'>>;
10789
+ })>;
10790
+ fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state' | 'method' | 'trackingCode' | 'handlerCode'>>;
10791
+ selectedRate?: Maybe<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'estimated'>>;
10792
+ labels: Array<Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel' | 'rateGroupId' | 'costAmount' | 'costCurrencyCode' | 'lastErrorCode' | 'lastErrorDetail' | 'voidedAt'>>;
10793
+ tracking?: Maybe<Pick<ShippingGatewayTracking, 'id' | 'status' | 'labelId' | 'events'>>;
10794
+ activePickup?: Maybe<Pick<ShippingGatewayPickup, 'id' | 'orderId' | 'fulfillmentId' | 'rateGroupId' | 'providerCode' | 'carrier' | 'extPickupId' | 'status' | 'confirmationCode' | 'requestedStartAt' | 'requestedEndAt' | 'confirmedStartAt' | 'confirmedEndAt' | 'lastErrorCode'>>;
10795
+ cost: Pick<OrderShipmentCost, 'collectedAmount' | 'labelCostAmount' | 'costDelta' | 'refundPendingTotal' | 'refundedTotal' | 'currencyCode'>;
10796
+ });
10797
+ export type OrderShipmentsQueryVariables = Exact<{
10798
+ orderId: Scalars['ID']['input'];
10799
+ }>;
10800
+ export type OrderShipmentsQuery = {
10801
+ orderShipments: {
10802
+ shipments: Array<(Pick<OrderShipment, 'requiresRerate'> & {
10803
+ rateGroup: (Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'requiresRerate' | 'supersededAt'> & {
10804
+ lastRateErrors: Array<Pick<RateFetchFailure, 'providerCode' | 'providerName' | 'errorCode' | 'variables'>>;
10805
+ orderLines: Array<Pick<ShippingGatewayRateGroupLine, 'orderLineId' | 'productName' | 'variantName' | 'quantity' | 'weight' | 'weightUnit' | 'length' | 'width' | 'height' | 'dimensionUnit'>>;
10806
+ rates: Array<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'estimated'>>;
10807
+ });
10808
+ fulfillmentRequest?: Maybe<(Pick<FulfillmentRequest, 'id' | 'state' | 'deliveryMethod' | 'handlerCode'> & {
10809
+ holdReasons: Array<Pick<HoldReason, 'code' | 'addedAt' | 'note'>>;
10810
+ lines: Array<Pick<FulfillmentRequestLine, 'id' | 'quantity' | 'orderLineId'>>;
10811
+ })>;
10812
+ fulfillment?: Maybe<Pick<Fulfillment, 'id' | 'state' | 'method' | 'trackingCode' | 'handlerCode'>>;
10813
+ selectedRate?: Maybe<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'estimated'>>;
10814
+ labels: Array<Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel' | 'rateGroupId' | 'costAmount' | 'costCurrencyCode' | 'lastErrorCode' | 'lastErrorDetail' | 'voidedAt'>>;
10815
+ tracking?: Maybe<Pick<ShippingGatewayTracking, 'id' | 'status' | 'labelId' | 'events'>>;
10816
+ activePickup?: Maybe<Pick<ShippingGatewayPickup, 'id' | 'orderId' | 'fulfillmentId' | 'rateGroupId' | 'providerCode' | 'carrier' | 'extPickupId' | 'status' | 'confirmationCode' | 'requestedStartAt' | 'requestedEndAt' | 'confirmedStartAt' | 'confirmedEndAt' | 'lastErrorCode'>>;
10817
+ cost: Pick<OrderShipmentCost, 'collectedAmount' | 'labelCostAmount' | 'costDelta' | 'refundPendingTotal' | 'refundedTotal' | 'currencyCode'>;
10818
+ })>;
10819
+ summary: Pick<OrderShippingCostSummary, 'collectedTotal' | 'labelCostTotal' | 'delta' | 'refundPendingTotal' | 'refundedTotal' | 'currencyCode'>;
10820
+ strandedLabels: Array<Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel' | 'rateGroupId' | 'costAmount' | 'costCurrencyCode' | 'lastErrorCode' | 'lastErrorDetail' | 'voidedAt'>>;
10821
+ labelHistory: Array<Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel' | 'rateGroupId' | 'costAmount' | 'costCurrencyCode' | 'lastErrorCode' | 'lastErrorDetail' | 'voidedAt'>>;
10822
+ };
10823
+ };
10824
+ export type RefreshRatesForShipmentMutationVariables = Exact<{
10825
+ fulfillmentRequestId: Scalars['ID']['input'];
10826
+ }>;
10827
+ export type RefreshRatesForShipmentMutation = {
10828
+ refreshRatesForShipment: Array<Pick<ShipmentRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'suggested' | 'estimated'>>;
10829
+ };
10830
+ export type RenewShipmentRatesMutationVariables = Exact<{
10831
+ fulfillmentRequestId: Scalars['ID']['input'];
10832
+ }>;
10833
+ export type RenewShipmentRatesMutation = {
10834
+ renewShipmentRates: Array<Pick<ShipmentRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'suggested' | 'estimated'>>;
10835
+ };
10836
+ export type SelectRateForShipmentMutationVariables = Exact<{
10837
+ input: SelectRateForShipmentInput;
10838
+ }>;
10839
+ export type SelectRateForShipmentMutation = {
10840
+ selectRateForShipment: (Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'requiresRerate' | 'supersededAt'> & {
10841
+ lastRateErrors: Array<Pick<RateFetchFailure, 'providerCode' | 'providerName' | 'errorCode' | 'variables'>>;
10842
+ orderLines: Array<Pick<ShippingGatewayRateGroupLine, 'orderLineId' | 'productName' | 'variantName' | 'quantity' | 'weight' | 'weightUnit' | 'length' | 'width' | 'height' | 'dimensionUnit'>>;
10843
+ rates: Array<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'estimated'>>;
10844
+ });
10845
+ };
10846
+ export type RechargeShippingCostDeltaMutationVariables = Exact<{
10847
+ input: RechargeShippingCostDeltaInput;
10848
+ }>;
10849
+ export type RechargeShippingCostDeltaMutation = {
10850
+ rechargeShippingCostDelta: {
10851
+ order: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
10852
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
10853
+ country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
10854
+ })>;
10855
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
10856
+ country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
10857
+ })>;
10858
+ customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
10859
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
10860
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
10861
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
10862
+ productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
10863
+ shippingLine?: Maybe<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
10864
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
10865
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
10866
+ })>;
10867
+ taxCategory?: Maybe<Pick<TaxCategory, 'id'>>;
10868
+ featuredAsset?: Maybe<Pick<Asset, 'id'>>;
10869
+ snapshot?: Maybe<Pick<ProductVariantSnapshot, 'id' | 'createdAt' | 'updatedAt' | 'productName' | 'variantName' | 'sku' | 'imageUrl' | 'price' | 'priceWithTax'>>;
10870
+ })>;
10871
+ payments: Array<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
10872
+ refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
10873
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
10874
+ })>;
10875
+ })>;
10876
+ fulfillments: Array<(Pick<Fulfillment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'method' | 'trackingCode' | 'handlerCode'> & {
10877
+ lines: Array<Pick<FulfillmentLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
10878
+ })>;
10879
+ shippingLines: Array<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
10880
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
10881
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
10882
+ })>;
10883
+ surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
10884
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
10885
+ })>;
10886
+ modifications: Array<(Pick<OrderModification, 'id' | 'createdAt' | 'updatedAt' | 'priceChange' | 'note' | 'isSettled'> & {
10887
+ changes: Array<Pick<OrderModificationChange, 'orderLineId' | 'productVariantId' | 'type' | 'quantityBefore' | 'quantityAfter' | 'unitPriceBefore' | 'unitPriceAfter'>>;
10888
+ surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
10889
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
10890
+ })>;
10891
+ payment?: Maybe<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
10892
+ refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
10893
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
10894
+ })>;
10895
+ })>;
10896
+ refund?: Maybe<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
10897
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
10898
+ })>;
10899
+ })>;
10900
+ promotions: Array<Pick<Promotion, 'id'>>;
10901
+ discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
10902
+ taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
10903
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
10904
+ recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
10905
+ history: (Pick<HistoryEntryList, 'totalItems'> & {
10906
+ items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
10907
+ administrator?: Maybe<Pick<Administrator, 'id'>>;
10908
+ })>;
10909
+ });
10910
+ });
10911
+ modification: (Pick<OrderModification, 'id' | 'createdAt' | 'updatedAt' | 'priceChange' | 'note' | 'isSettled'> & {
10912
+ changes: Array<Pick<OrderModificationChange, 'orderLineId' | 'productVariantId' | 'type' | 'quantityBefore' | 'quantityAfter' | 'unitPriceBefore' | 'unitPriceAfter'>>;
10913
+ surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
10914
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
10915
+ })>;
10916
+ payment?: Maybe<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
10917
+ refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
10918
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
10919
+ })>;
10920
+ })>;
10921
+ refund?: Maybe<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
10922
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
10923
+ })>;
10924
+ });
10925
+ };
10926
+ };
10927
+ export type WithdrawShippingRechargeMutationVariables = Exact<{
10928
+ fulfillmentRequestId: Scalars['ID']['input'];
10929
+ }>;
10930
+ export type WithdrawShippingRechargeMutation = {
10931
+ withdrawShippingRecharge: (Pick<Order, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'state' | 'active' | 'type' | 'orderPlacedAt' | 'currencyCode' | 'total' | 'totalQuantity' | 'totalWithTax' | 'refundableTotal' | 'subTotal' | 'subTotalWithTax' | 'shipping' | 'shippingWithTax' | 'couponCodes' | 'draftComplete' | 'preModificationState' | 'version' | 'nextStates'> & {
10932
+ billingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
10933
+ country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
10934
+ })>;
10935
+ shippingAddress?: Maybe<(Pick<OrderAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'phoneNumber'> & {
10936
+ country?: Maybe<Pick<Country, 'id' | 'code' | 'name'>>;
10937
+ })>;
10938
+ customer?: Maybe<Pick<Customer, 'id' | 'createdAt' | 'updatedAt' | 'title' | 'firstName' | 'lastName' | 'phoneNumber' | 'emailAddress'>>;
10939
+ lines: Array<(Pick<OrderLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'productVariantId' | 'pinnedStockLocationId' | 'unitPrice' | 'unitPriceWithTax' | 'linePrice' | 'linePriceWithTax' | 'listPrice' | 'listPriceIncludesTax' | 'orderPlacedQuantity'> & {
10940
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
10941
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
10942
+ productVariant: Pick<ProductVariant, 'id' | 'createdAt' | 'updatedAt' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'stockOnHand' | 'enabled'>;
10943
+ shippingLine?: Maybe<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
10944
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
10945
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
10946
+ })>;
10947
+ taxCategory?: Maybe<Pick<TaxCategory, 'id'>>;
10948
+ featuredAsset?: Maybe<Pick<Asset, 'id'>>;
10949
+ snapshot?: Maybe<Pick<ProductVariantSnapshot, 'id' | 'createdAt' | 'updatedAt' | 'productName' | 'variantName' | 'sku' | 'imageUrl' | 'price' | 'priceWithTax'>>;
10950
+ })>;
10951
+ payments: Array<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
10952
+ refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
10953
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
10954
+ })>;
10955
+ })>;
10956
+ fulfillments: Array<(Pick<Fulfillment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'method' | 'trackingCode' | 'handlerCode'> & {
10957
+ lines: Array<Pick<FulfillmentLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
10958
+ })>;
10959
+ shippingLines: Array<(Pick<ShippingLine, 'id' | 'createdAt' | 'updatedAt' | 'listPrice' | 'listPriceWithTax' | 'listPriceIncludesTax'> & {
10960
+ adjustments: Array<Pick<Adjustment, 'amount' | 'description' | 'orderLineId' | 'shippingLineId'>>;
10961
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
10962
+ })>;
10963
+ surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
10964
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
10965
+ })>;
10966
+ modifications: Array<(Pick<OrderModification, 'id' | 'createdAt' | 'updatedAt' | 'priceChange' | 'note' | 'isSettled'> & {
10967
+ changes: Array<Pick<OrderModificationChange, 'orderLineId' | 'productVariantId' | 'type' | 'quantityBefore' | 'quantityAfter' | 'unitPriceBefore' | 'unitPriceAfter'>>;
10968
+ surcharges: Array<(Pick<Surcharge, 'id' | 'createdAt' | 'updatedAt' | 'description' | 'listPrice' | 'listPriceIncludesTax' | 'sku' | 'taxRate'> & {
10969
+ taxLines: Array<Pick<OrderTaxLine, 'provider' | 'taxRate' | 'description' | 'taxAmount'>>;
10970
+ })>;
10971
+ payment?: Maybe<(Pick<Payment, 'id' | 'createdAt' | 'updatedAt' | 'state' | 'amount' | 'providerCode' | 'transactionId' | 'errorMessage' | 'metadata' | 'orderId'> & {
10972
+ refunds: Array<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
10973
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
10974
+ })>;
10975
+ })>;
10976
+ refund?: Maybe<(Pick<Refund, 'id' | 'createdAt' | 'updatedAt' | 'total' | 'reason' | 'state' | 'transactionId' | 'method' | 'metadata' | 'paymentId'> & {
10977
+ lines: Array<Pick<RefundLine, 'id' | 'createdAt' | 'updatedAt' | 'quantity' | 'orderLineId'>>;
10978
+ })>;
10979
+ })>;
10980
+ promotions: Array<Pick<Promotion, 'id'>>;
10981
+ discounts: Array<Pick<OrderDiscount, 'description' | 'amount' | 'amountWithTax'>>;
10982
+ taxSummary: Array<Pick<OrderTaxSummary, 'provider' | 'description' | 'taxRate' | 'taxBase' | 'taxTotal'>>;
10983
+ recentShippingMethod?: Maybe<Pick<ShippingGatewayRate, 'id' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'estimated'>>;
10984
+ recentToken?: Maybe<Pick<PaymentGatewayToken, 'id' | 'displayName' | 'type' | 'isDefault' | 'providerCode' | 'createdAt' | 'updatedAt'>>;
10985
+ history: (Pick<HistoryEntryList, 'totalItems'> & {
10986
+ items: Array<(Pick<HistoryEntry, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'isPublic' | 'data'> & {
10987
+ administrator?: Maybe<Pick<Administrator, 'id'>>;
10988
+ })>;
10989
+ });
10990
+ });
10991
+ };
10992
+ export type ShippingPackagePresetFieldFragment = Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
10993
+ export type ShippingPackageTemplateFieldFragment = Pick<ShippingPackageTemplate, 'providerCode' | 'providerName' | 'carrier' | 'token' | 'label'>;
10994
+ export type ShippingPackagePresetsQueryVariables = Exact<{
10995
+ [key: string]: never;
10996
+ }>;
10997
+ export type ShippingPackagePresetsQuery = {
10998
+ shippingPackagePresets: Array<Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>>;
10999
+ };
11000
+ export type AvailablePackageTemplatesQueryVariables = Exact<{
11001
+ [key: string]: never;
11002
+ }>;
11003
+ export type AvailablePackageTemplatesQuery = {
11004
+ availablePackageTemplates: Array<Pick<ShippingPackageTemplate, 'providerCode' | 'providerName' | 'carrier' | 'token' | 'label'>>;
11005
+ };
11006
+ export type CreateShippingPackagePresetMutationVariables = Exact<{
11007
+ input: CreateShippingPackagePresetInput;
11008
+ }>;
11009
+ export type CreateShippingPackagePresetMutation = {
11010
+ createShippingPackagePreset: Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
11011
+ };
11012
+ export type UpdateShippingPackagePresetMutationVariables = Exact<{
11013
+ input: UpdateShippingPackagePresetInput;
11014
+ }>;
11015
+ export type UpdateShippingPackagePresetMutation = {
11016
+ updateShippingPackagePreset: Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
11017
+ };
11018
+ export type DeleteShippingPackagePresetMutationVariables = Exact<{
11019
+ id: Scalars['ID']['input'];
11020
+ }>;
11021
+ export type DeleteShippingPackagePresetMutation = Pick<Mutation, 'deleteShippingPackagePreset'>;
11022
+ export type SetDefaultShippingPackagePresetMutationVariables = Exact<{
11023
+ id: Scalars['ID']['input'];
11024
+ }>;
11025
+ export type SetDefaultShippingPackagePresetMutation = {
11026
+ setDefaultShippingPackagePreset: Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
11027
+ };
11028
+ export type HideShippingPackagePresetMutationVariables = Exact<{
11029
+ id: Scalars['ID']['input'];
11030
+ }>;
11031
+ export type HideShippingPackagePresetMutation = {
11032
+ hideShippingPackagePreset: Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
11033
+ };
11034
+ export type UnhideShippingPackagePresetMutationVariables = Exact<{
11035
+ id: Scalars['ID']['input'];
11036
+ }>;
11037
+ export type UnhideShippingPackagePresetMutation = {
11038
+ unhideShippingPackagePreset: Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
11039
+ };
10471
11040
  export type LowStockVariantFieldFragment = Pick<LowStockVariant, 'variantId' | 'name' | 'sku' | 'available' | 'threshold'>;
10472
11041
  export type LowStockVariantsQueryVariables = Exact<{
10473
11042
  input: LowStockVariantsInput;
@@ -10476,7 +11045,7 @@ export type LowStockVariantsQuery = {
10476
11045
  lowStockVariants: Array<Pick<LowStockVariant, 'variantId' | 'name' | 'sku' | 'available' | 'threshold'>>;
10477
11046
  };
10478
11047
  export type StockLocationFieldFragment = (Pick<StockLocation, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'description' | 'locationType' | 'emailAddress'> & {
10479
- address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
11048
+ address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
10480
11049
  });
10481
11050
  export type StockMovementFieldFragment = Pick<StockMovement, 'id' | 'createdAt' | 'updatedAt' | 'type' | 'quantity' | 'variantId' | 'stockLocationId' | 'orderLineId' | 'note'>;
10482
11051
  export type StockLocationQueryVariables = Exact<{
@@ -10484,7 +11053,7 @@ export type StockLocationQueryVariables = Exact<{
10484
11053
  }>;
10485
11054
  export type StockLocationQuery = {
10486
11055
  stockLocation?: Maybe<(Pick<StockLocation, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'description' | 'locationType' | 'emailAddress'> & {
10487
- address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
11056
+ address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
10488
11057
  })>;
10489
11058
  };
10490
11059
  export type StockLocationsQueryVariables = Exact<{
@@ -10493,7 +11062,7 @@ export type StockLocationsQueryVariables = Exact<{
10493
11062
  export type StockLocationsQuery = {
10494
11063
  stockLocations: (Pick<StockLocationList, 'totalItems'> & {
10495
11064
  items: Array<(Pick<StockLocation, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'description' | 'locationType' | 'emailAddress'> & {
10496
- address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
11065
+ address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
10497
11066
  })>;
10498
11067
  });
10499
11068
  };
@@ -10502,7 +11071,7 @@ export type DefaultStockLocationQueryVariables = Exact<{
10502
11071
  }>;
10503
11072
  export type DefaultStockLocationQuery = {
10504
11073
  defaultStockLocation: (Pick<StockLocation, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'description' | 'locationType' | 'emailAddress'> & {
10505
- address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
11074
+ address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
10506
11075
  });
10507
11076
  };
10508
11077
  export type StockMovementsQueryVariables = Exact<{
@@ -10522,7 +11091,7 @@ export type CreateStockLocationMutationVariables = Exact<{
10522
11091
  }>;
10523
11092
  export type CreateStockLocationMutation = {
10524
11093
  createStockLocation: (Pick<StockLocation, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'description' | 'locationType' | 'emailAddress'> & {
10525
- address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
11094
+ address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
10526
11095
  });
10527
11096
  };
10528
11097
  export type UpdateStockLocationMutationVariables = Exact<{
@@ -10530,7 +11099,7 @@ export type UpdateStockLocationMutationVariables = Exact<{
10530
11099
  }>;
10531
11100
  export type UpdateStockLocationMutation = {
10532
11101
  updateStockLocation: (Pick<StockLocation, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'description' | 'locationType' | 'emailAddress'> & {
10533
- address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
11102
+ address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
10534
11103
  });
10535
11104
  };
10536
11105
  export type DeleteStockLocationMutationVariables = Exact<{
@@ -10544,7 +11113,7 @@ export type AssignStockLocationToChannelMutationVariables = Exact<{
10544
11113
  }>;
10545
11114
  export type AssignStockLocationToChannelMutation = {
10546
11115
  assignStockLocationToChannel: (Pick<StockLocation, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'description' | 'locationType' | 'emailAddress'> & {
10547
- address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
11116
+ address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
10548
11117
  });
10549
11118
  };
10550
11119
  export type RemoveStockLocationFromChannelMutationVariables = Exact<{
@@ -10552,7 +11121,7 @@ export type RemoveStockLocationFromChannelMutationVariables = Exact<{
10552
11121
  }>;
10553
11122
  export type RemoveStockLocationFromChannelMutation = {
10554
11123
  removeStockLocationFromChannel: (Pick<StockLocation, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'description' | 'locationType' | 'emailAddress'> & {
10555
- address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'fullName' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
11124
+ address?: Maybe<Pick<StockLocationAddress, 'id' | 'createdAt' | 'updatedAt' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
10556
11125
  });
10557
11126
  };
10558
11127
  export type AdjustStockMutationVariables = Exact<{
@@ -10857,7 +11426,7 @@ export type AddSubscriptionCreditMutationVariables = Exact<{
10857
11426
  export type AddSubscriptionCreditMutation = {
10858
11427
  addSubscriptionCredit: Pick<SubscriptionCreditBalance, 'id' | 'amountCents' | 'appliedCents' | 'reason' | 'sourceOrderId'>;
10859
11428
  };
10860
- export type TaxCategoryFieldFragment = (Pick<TaxCategory, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'isDefault' | 'exempt'> & {
11429
+ export type TaxCategoryFieldFragment = (Pick<TaxCategory, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'isDefault' | 'exempt' | 'isProtected'> & {
10861
11430
  externalCodes: Array<Pick<TaxCategoryExternalCode, 'providerCode' | 'taxCode'>>;
10862
11431
  });
10863
11432
  export type TaxRateFieldFragment = (Pick<TaxRate, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'value' | 'enabled' | 'zoneId' | 'categoryId'> & {
@@ -10868,7 +11437,7 @@ export type TaxCategoryQueryVariables = Exact<{
10868
11437
  id: Scalars['ID']['input'];
10869
11438
  }>;
10870
11439
  export type TaxCategoryQuery = {
10871
- taxCategory?: Maybe<(Pick<TaxCategory, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'isDefault' | 'exempt'> & {
11440
+ taxCategory?: Maybe<(Pick<TaxCategory, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'isDefault' | 'exempt' | 'isProtected'> & {
10872
11441
  externalCodes: Array<Pick<TaxCategoryExternalCode, 'providerCode' | 'taxCode'>>;
10873
11442
  })>;
10874
11443
  };
@@ -10877,7 +11446,7 @@ export type TaxCategoriesQueryVariables = Exact<{
10877
11446
  }>;
10878
11447
  export type TaxCategoriesQuery = {
10879
11448
  taxCategories: (Pick<TaxCategoryList, 'totalItems'> & {
10880
- items: Array<(Pick<TaxCategory, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'isDefault' | 'exempt'> & {
11449
+ items: Array<(Pick<TaxCategory, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'isDefault' | 'exempt' | 'isProtected'> & {
10881
11450
  externalCodes: Array<Pick<TaxCategoryExternalCode, 'providerCode' | 'taxCode'>>;
10882
11451
  })>;
10883
11452
  });
@@ -10906,7 +11475,7 @@ export type CreateTaxCategoryMutationVariables = Exact<{
10906
11475
  input: CreateTaxCategoryInput;
10907
11476
  }>;
10908
11477
  export type CreateTaxCategoryMutation = {
10909
- createTaxCategory: (Pick<TaxCategory, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'isDefault' | 'exempt'> & {
11478
+ createTaxCategory: (Pick<TaxCategory, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'isDefault' | 'exempt' | 'isProtected'> & {
10910
11479
  externalCodes: Array<Pick<TaxCategoryExternalCode, 'providerCode' | 'taxCode'>>;
10911
11480
  });
10912
11481
  };
@@ -10914,7 +11483,7 @@ export type UpdateTaxCategoryMutationVariables = Exact<{
10914
11483
  input: UpdateTaxCategoryInput;
10915
11484
  }>;
10916
11485
  export type UpdateTaxCategoryMutation = {
10917
- updateTaxCategory: (Pick<TaxCategory, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'isDefault' | 'exempt'> & {
11486
+ updateTaxCategory: (Pick<TaxCategory, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'isDefault' | 'exempt' | 'isProtected'> & {
10918
11487
  externalCodes: Array<Pick<TaxCategoryExternalCode, 'providerCode' | 'taxCode'>>;
10919
11488
  });
10920
11489
  };
@@ -10922,7 +11491,7 @@ export type SetDefaultTaxCategoryMutationVariables = Exact<{
10922
11491
  id: Scalars['ID']['input'];
10923
11492
  }>;
10924
11493
  export type SetDefaultTaxCategoryMutation = {
10925
- setDefaultTaxCategory: (Pick<TaxCategory, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'isDefault' | 'exempt'> & {
11494
+ setDefaultTaxCategory: (Pick<TaxCategory, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'isDefault' | 'exempt' | 'isProtected'> & {
10926
11495
  externalCodes: Array<Pick<TaxCategoryExternalCode, 'providerCode' | 'taxCode'>>;
10927
11496
  });
10928
11497
  };