@forgecart/sdk 1.202607202320.0 → 1.202607240817.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.
@@ -660,6 +660,7 @@ export type ChannelSettings = {
660
660
  defaultDimensionUnit?: Maybe<DimensionUnit>;
661
661
  defaultFulfillmentHandlerCode?: Maybe<Scalars['String']['output']>;
662
662
  defaultPaymentProviderCode?: Maybe<Scalars['String']['output']>;
663
+ defaultShippingProviderCode?: Maybe<Scalars['String']['output']>;
663
664
  defaultWeightUnit?: Maybe<WeightUnit>;
664
665
  emailAddress?: Maybe<Scalars['String']['output']>;
665
666
  fxMarkupPercent: Scalars['Float']['output'];
@@ -1089,7 +1090,6 @@ export type CreateProductVariantInput = {
1089
1090
  dimensions?: InputMaybe<DimensionsInput>;
1090
1091
  featuredAssetId?: InputMaybe<Scalars['ID']['input']>;
1091
1092
  optionIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1092
- packagePresetId?: InputMaybe<Scalars['ID']['input']>;
1093
1093
  price: Scalars['Int']['input'];
1094
1094
  productId: Scalars['ID']['input'];
1095
1095
  sku?: InputMaybe<Scalars['String']['input']>;
@@ -1183,6 +1183,7 @@ export type CreateShippingPackagePresetInput = {
1183
1183
  easypostPredefinedPackage?: InputMaybe<Scalars['String']['input']>;
1184
1184
  isDefault?: InputMaybe<Scalars['Boolean']['input']>;
1185
1185
  kind: ShippingPackagePresetKind;
1186
+ maxWeightGrams?: InputMaybe<Scalars['Int']['input']>;
1186
1187
  name: Scalars['String']['input'];
1187
1188
  shippoTemplate?: InputMaybe<Scalars['String']['input']>;
1188
1189
  tareWeightGrams?: InputMaybe<Scalars['Int']['input']>;
@@ -2250,6 +2251,7 @@ export type Mutation = {
2250
2251
  enablePlugin: ChannelPlugin;
2251
2252
  enableScheduledJob: ScheduledJob;
2252
2253
  enqueueChatMessage: Scalars['Int']['output'];
2254
+ estimateVariantShippingProfile: VariantShippingProfileEstimate;
2253
2255
  evaluateAudienceSegment: AudienceSegmentEvaluationResult;
2254
2256
  generateDeviceCode: DeviceCodeResponse;
2255
2257
  hideShippingPackagePreset: ShippingPackagePreset;
@@ -2322,6 +2324,7 @@ export type Mutation = {
2322
2324
  setManualShippingRate: Order;
2323
2325
  setProductVariantPrice: ProductVariantPrice;
2324
2326
  setSafetyStock: StockLevel;
2327
+ setShipmentPackage: ShippingGatewayRateGroup;
2325
2328
  setShippingAddress: Order;
2326
2329
  settleRefund: Refund;
2327
2330
  splitFulfillmentRequest: FulfillmentRequest;
@@ -2779,6 +2782,9 @@ export type MutationenableScheduledJobArgs = {
2779
2782
  export type MutationenqueueChatMessageArgs = {
2780
2783
  input: EnqueueChatMessageInput;
2781
2784
  };
2785
+ export type MutationestimateVariantShippingProfileArgs = {
2786
+ variantId: Scalars['ID']['input'];
2787
+ };
2782
2788
  export type MutationevaluateAudienceSegmentArgs = {
2783
2789
  id: Scalars['ID']['input'];
2784
2790
  };
@@ -2989,6 +2995,9 @@ export type MutationsetProductVariantPriceArgs = {
2989
2995
  export type MutationsetSafetyStockArgs = {
2990
2996
  input: SetSafetyStockInput;
2991
2997
  };
2998
+ export type MutationsetShipmentPackageArgs = {
2999
+ input: SetShipmentPackageInput;
3000
+ };
2992
3001
  export type MutationsetShippingAddressArgs = {
2993
3002
  input: SetShippingAddressInput;
2994
3003
  };
@@ -3521,7 +3530,6 @@ export type ProductVariant = {
3521
3530
  name: Scalars['String']['output'];
3522
3531
  options: Array<ProductOption>;
3523
3532
  outOfStockThreshold: Scalars['Int']['output'];
3524
- packagePresetId?: Maybe<Scalars['ID']['output']>;
3525
3533
  price: Scalars['Int']['output'];
3526
3534
  priceWithTax: Scalars['Int']['output'];
3527
3535
  prices: Array<ProductVariantPrice>;
@@ -4603,6 +4611,11 @@ export type SetSafetyStockInput = {
4603
4611
  stockLocationId: Scalars['ID']['input'];
4604
4612
  variantId: Scalars['ID']['input'];
4605
4613
  };
4614
+ export type SetShipmentPackageInput = {
4615
+ fulfillmentRequestId?: InputMaybe<Scalars['ID']['input']>;
4616
+ packagePresetId?: InputMaybe<Scalars['ID']['input']>;
4617
+ rateGroupId?: InputMaybe<Scalars['ID']['input']>;
4618
+ };
4606
4619
  export type SetShippingAddressInput = {
4607
4620
  address: CreateAddressInput;
4608
4621
  orderId: Scalars['ID']['input'];
@@ -4611,6 +4624,12 @@ export type SettleRefundInput = {
4611
4624
  id: Scalars['ID']['input'];
4612
4625
  transactionId: Scalars['String']['input'];
4613
4626
  };
4627
+ export type ShipmentPackingSolution = {
4628
+ engine: Scalars['String']['output'];
4629
+ presetId: Scalars['ID']['output'];
4630
+ totalWeightGrams: Scalars['Int']['output'];
4631
+ utilization: Scalars['Float']['output'];
4632
+ };
4614
4633
  export type ShipmentRate = {
4615
4634
  amount: Scalars['Int']['output'];
4616
4635
  carrier: Scalars['String']['output'];
@@ -4687,6 +4706,9 @@ export type ShippingGatewayRateGroup = {
4687
4706
  lastRateErrors: Array<RateFetchFailure>;
4688
4707
  orderId: Scalars['ID']['output'];
4689
4708
  orderLines: Array<ShippingGatewayRateGroupLine>;
4709
+ packagePresetId?: Maybe<Scalars['ID']['output']>;
4710
+ packedPresetId?: Maybe<Scalars['ID']['output']>;
4711
+ packing?: Maybe<ShipmentPackingSolution>;
4690
4712
  rates: Array<ShippingGatewayRate>;
4691
4713
  rechargeModificationId?: Maybe<Scalars['ID']['output']>;
4692
4714
  requiresRerate: Scalars['Boolean']['output'];
@@ -4749,6 +4771,7 @@ export type ShippingPackagePreset = {
4749
4771
  isProtected: Scalars['Boolean']['output'];
4750
4772
  kind: ShippingPackagePresetKind;
4751
4773
  length?: Maybe<Scalars['Float']['output']>;
4774
+ maxWeightGrams?: Maybe<Scalars['Int']['output']>;
4752
4775
  name: Scalars['String']['output'];
4753
4776
  shippoTemplate?: Maybe<Scalars['String']['output']>;
4754
4777
  tareWeightGrams?: Maybe<Scalars['Int']['output']>;
@@ -4763,11 +4786,19 @@ export type ShippingPackagePresetDimensionsInput = {
4763
4786
  export type ShippingPackagePresetKind = 'CARRIER_TEMPLATE' | 'CUSTOM_BOX';
4764
4787
  export type ShippingPackageTemplate = {
4765
4788
  carrier: Scalars['String']['output'];
4789
+ innerDimensions?: Maybe<ShippingPackageTemplateDimensions>;
4766
4790
  label: Scalars['String']['output'];
4791
+ maxWeightGrams?: Maybe<Scalars['Int']['output']>;
4767
4792
  providerCode: Scalars['String']['output'];
4768
4793
  providerName: Scalars['String']['output'];
4769
4794
  token: Scalars['String']['output'];
4770
4795
  };
4796
+ export type ShippingPackageTemplateDimensions = {
4797
+ height: Scalars['Float']['output'];
4798
+ length: Scalars['Float']['output'];
4799
+ unit: Scalars['String']['output'];
4800
+ width: Scalars['Float']['output'];
4801
+ };
4771
4802
  export type ShippingProvider = {
4772
4803
  code: Scalars['String']['output'];
4773
4804
  name: Scalars['String']['output'];
@@ -5215,6 +5246,7 @@ export type UpdateChannelSettingsInput = {
5215
5246
  defaultDimensionUnit?: InputMaybe<DimensionUnit>;
5216
5247
  defaultFulfillmentHandlerCode?: InputMaybe<Scalars['String']['input']>;
5217
5248
  defaultPaymentProviderCode?: InputMaybe<Scalars['String']['input']>;
5249
+ defaultShippingProviderCode?: InputMaybe<Scalars['String']['input']>;
5218
5250
  defaultWeightUnit?: InputMaybe<WeightUnit>;
5219
5251
  emailAddress?: InputMaybe<Scalars['String']['input']>;
5220
5252
  fxMarkupPercent?: InputMaybe<Scalars['Float']['input']>;
@@ -5400,7 +5432,6 @@ export type UpdateProductVariantInput = {
5400
5432
  featuredAssetId?: InputMaybe<Scalars['ID']['input']>;
5401
5433
  id: Scalars['ID']['input'];
5402
5434
  optionIds?: InputMaybe<Array<Scalars['ID']['input']>>;
5403
- packagePresetId?: InputMaybe<Scalars['ID']['input']>;
5404
5435
  price?: InputMaybe<Scalars['Int']['input']>;
5405
5436
  sku?: InputMaybe<Scalars['String']['input']>;
5406
5437
  stockLevels?: InputMaybe<Array<StockLevelInput>>;
@@ -5487,6 +5518,7 @@ export type UpdateShippingPackagePresetInput = {
5487
5518
  easypostPredefinedPackage?: InputMaybe<Scalars['String']['input']>;
5488
5519
  id: Scalars['ID']['input'];
5489
5520
  isDefault?: InputMaybe<Scalars['Boolean']['input']>;
5521
+ maxWeightGrams?: InputMaybe<Scalars['Int']['input']>;
5490
5522
  name?: InputMaybe<Scalars['String']['input']>;
5491
5523
  shippoTemplate?: InputMaybe<Scalars['String']['input']>;
5492
5524
  tareWeightGrams?: InputMaybe<Scalars['Int']['input']>;
@@ -5580,6 +5612,14 @@ export type UserPreferences = {
5580
5612
  preferredLanguageCode: Scalars['String']['output'];
5581
5613
  preferredTimezone: Scalars['String']['output'];
5582
5614
  };
5615
+ export type VariantShippingProfileEstimate = {
5616
+ heightCm: Scalars['Float']['output'];
5617
+ hsCode?: Maybe<Scalars['String']['output']>;
5618
+ lengthCm: Scalars['Float']['output'];
5619
+ rationale: Scalars['String']['output'];
5620
+ weightGrams: Scalars['Float']['output'];
5621
+ widthCm: Scalars['Float']['output'];
5622
+ };
5583
5623
  export type VariantStockLevel = {
5584
5624
  available: Scalars['Int']['output'];
5585
5625
  safetyStock: Scalars['Int']['output'];
@@ -6554,7 +6594,7 @@ export type UpdateChannelSettingsMutationVariables = Exact<{
6554
6594
  input: UpdateChannelSettingsInput;
6555
6595
  }>;
6556
6596
  export type UpdateChannelSettingsMutation = {
6557
- updateChannelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'emailAddress' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'chargeTaxOnShipping' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
6597
+ updateChannelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'emailAddress' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultShippingProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'chargeTaxOnShipping' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
6558
6598
  companyAddress?: Maybe<Pick<CompanyAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
6559
6599
  });
6560
6600
  };
@@ -6564,7 +6604,7 @@ export type ProvisionChannelMutationVariables = Exact<{
6564
6604
  export type ProvisionChannelMutation = {
6565
6605
  provisionChannel: {
6566
6606
  channel: Pick<Channel, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'token' | 'secret' | 'previewUrl' | 'defaultLanguageCode' | 'defaultCurrencyCode' | 'availableLanguageCodes' | 'availableCurrencyCodes' | 'description' | 'pricesIncludeTax' | 'taxProviderCode' | 'trackInventory' | 'outOfStockThreshold' | 'sellerId' | 'defaultTaxZoneId'>;
6567
- channelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'emailAddress' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'chargeTaxOnShipping' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
6607
+ channelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'emailAddress' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultShippingProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'chargeTaxOnShipping' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
6568
6608
  companyAddress?: Maybe<Pick<CompanyAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
6569
6609
  });
6570
6610
  role: Pick<Role, 'id' | 'name' | 'code' | 'description' | 'permissions'>;
@@ -6576,14 +6616,14 @@ export type AdminExchangeRatesQueryVariables = Exact<{
6576
6616
  export type AdminExchangeRatesQuery = {
6577
6617
  exchangeRates: Array<Pick<ExchangeRate, 'id' | 'baseCurrencyCode' | 'targetCurrencyCode' | 'rate' | 'rateUpdatedAt'>>;
6578
6618
  };
6579
- export type ChannelSettingsFieldFragment = (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'emailAddress' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'chargeTaxOnShipping' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
6619
+ export type ChannelSettingsFieldFragment = (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'emailAddress' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultShippingProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'chargeTaxOnShipping' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
6580
6620
  companyAddress?: Maybe<Pick<CompanyAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
6581
6621
  });
6582
6622
  export type ChannelSettingsQueryVariables = Exact<{
6583
6623
  [key: string]: never;
6584
6624
  }>;
6585
6625
  export type ChannelSettingsQuery = {
6586
- channelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'emailAddress' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'chargeTaxOnShipping' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
6626
+ channelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'emailAddress' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultShippingProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'chargeTaxOnShipping' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
6587
6627
  companyAddress?: Maybe<Pick<CompanyAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
6588
6628
  });
6589
6629
  };
@@ -6591,7 +6631,7 @@ export type ChannelUpdateSettingsMutationVariables = Exact<{
6591
6631
  input: UpdateChannelSettingsInput;
6592
6632
  }>;
6593
6633
  export type ChannelUpdateSettingsMutation = {
6594
- updateChannelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'emailAddress' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'chargeTaxOnShipping' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
6634
+ updateChannelSettings: (Pick<ChannelSettings, 'id' | 'channelId' | 'shopName' | 'emailAddress' | 'requiresShippingAddressValidation' | 'requireCustomerForCheckout' | 'defaultFulfillmentHandlerCode' | 'defaultPaymentProviderCode' | 'defaultShippingProviderCode' | 'defaultDeploymentProviderCode' | 'defaultWeightUnit' | 'defaultDimensionUnit' | 'taxOriginScope' | 'chargeTaxOnShipping' | 'autoCurrencyExchange' | 'fxRoundingRule' | 'fxMarkupPercent'> & {
6595
6635
  companyAddress?: Maybe<Pick<CompanyAddress, 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'province' | 'postalCode' | 'countryCode' | 'phoneNumber'>>;
6596
6636
  });
6597
6637
  };
@@ -10208,7 +10248,7 @@ export type PluginDeleteManageableMutationVariables = Exact<{
10208
10248
  }>;
10209
10249
  export type PluginDeleteManageableMutation = Pick<Mutation, 'deleteManageablePlugin'>;
10210
10250
  export type ProductVariantTranslationFieldFragment = Pick<ProductVariantTranslation, 'id' | 'languageCode' | 'name'>;
10211
- export type ProductVariantFieldFragment = (Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
10251
+ export type ProductVariantFieldFragment = (Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10212
10252
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10213
10253
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10214
10254
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10230,7 +10270,7 @@ export type AdminProductVariantQueryVariables = Exact<{
10230
10270
  id: Scalars['ID']['input'];
10231
10271
  }>;
10232
10272
  export type AdminProductVariantQuery = {
10233
- productVariant?: Maybe<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
10273
+ productVariant?: Maybe<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10234
10274
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10235
10275
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10236
10276
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10252,7 +10292,7 @@ export type AdminProductVariantsQueryVariables = Exact<{
10252
10292
  productId: Scalars['ID']['input'];
10253
10293
  }>;
10254
10294
  export type AdminProductVariantsQuery = {
10255
- productVariants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
10295
+ productVariants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10256
10296
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10257
10297
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10258
10298
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10274,7 +10314,7 @@ export type CreateProductVariantsMutationVariables = Exact<{
10274
10314
  input: Array<CreateProductVariantInput> | CreateProductVariantInput;
10275
10315
  }>;
10276
10316
  export type CreateProductVariantsMutation = {
10277
- createProductVariants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
10317
+ createProductVariants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10278
10318
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10279
10319
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10280
10320
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10296,7 +10336,7 @@ export type UpdateProductVariantsMutationVariables = Exact<{
10296
10336
  input: Array<UpdateProductVariantInput> | UpdateProductVariantInput;
10297
10337
  }>;
10298
10338
  export type UpdateProductVariantsMutation = {
10299
- updateProductVariants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
10339
+ updateProductVariants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10300
10340
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10301
10341
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10302
10342
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10332,6 +10372,12 @@ export type DeleteProductVariantPriceMutationVariables = Exact<{
10332
10372
  export type DeleteProductVariantPriceMutation = {
10333
10373
  deleteProductVariantPrice: Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>;
10334
10374
  };
10375
+ export type EstimateVariantShippingProfileMutationVariables = Exact<{
10376
+ variantId: Scalars['ID']['input'];
10377
+ }>;
10378
+ export type EstimateVariantShippingProfileMutation = {
10379
+ estimateVariantShippingProfile: Pick<VariantShippingProfileEstimate, 'lengthCm' | 'widthCm' | 'heightCm' | 'weightGrams' | 'hsCode' | 'rationale'>;
10380
+ };
10335
10381
  export type ProductTranslationFieldFragment = Pick<ProductTranslation, 'id' | 'languageCode' | 'name' | 'slug' | 'description'>;
10336
10382
  export type ProductFieldFragment = (Pick<Product, 'id' | 'createdAt' | 'updatedAt' | 'enabled' | 'isDigital' | 'trackInventory'> & {
10337
10383
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10349,7 +10395,7 @@ export type ProductFieldFragment = (Pick<Product, 'id' | 'createdAt' | 'updatedA
10349
10395
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10350
10396
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10351
10397
  })>;
10352
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
10398
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10353
10399
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10354
10400
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10355
10401
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10387,7 +10433,7 @@ export type AdminProductQuery = {
10387
10433
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10388
10434
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10389
10435
  })>;
10390
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
10436
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10391
10437
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10392
10438
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10393
10439
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10427,7 +10473,7 @@ export type AdminProductsQuery = {
10427
10473
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10428
10474
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10429
10475
  })>;
10430
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
10476
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10431
10477
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10432
10478
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10433
10479
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10467,7 +10513,7 @@ export type CreateProductMutation = {
10467
10513
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10468
10514
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10469
10515
  })>;
10470
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
10516
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10471
10517
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10472
10518
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10473
10519
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10506,7 +10552,7 @@ export type UpdateProductMutation = {
10506
10552
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10507
10553
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10508
10554
  })>;
10509
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
10555
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10510
10556
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10511
10557
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10512
10558
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10551,7 +10597,7 @@ export type AssignProductsToChannelMutation = {
10551
10597
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10552
10598
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10553
10599
  })>;
10554
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
10600
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10555
10601
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10556
10602
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10557
10603
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10590,7 +10636,7 @@ export type RemoveProductsFromChannelMutation = {
10590
10636
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10591
10637
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10592
10638
  })>;
10593
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
10639
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10594
10640
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10595
10641
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10596
10642
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10676,7 +10722,7 @@ export type AddOptionGroupToProductMutation = {
10676
10722
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10677
10723
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10678
10724
  })>;
10679
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
10725
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10680
10726
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10681
10727
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10682
10728
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10715,7 +10761,7 @@ export type RemoveOptionGroupFromProductMutation = {
10715
10761
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10716
10762
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10717
10763
  })>;
10718
- variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId' | 'packagePresetId'> & {
10764
+ variants: Array<(Pick<ProductVariant, 'id' | 'sku' | 'name' | 'price' | 'priceWithTax' | 'currencyCode' | 'stockOnHand' | 'stockAllocated' | 'trackInventory' | 'enabled' | 'productId' | 'taxCategoryId'> & {
10719
10765
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10720
10766
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10721
10767
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -11026,10 +11072,11 @@ export type DeleteSellingPlanMutationVariables = Exact<{
11026
11072
  export type DeleteSellingPlanMutation = {
11027
11073
  deleteSellingPlan: Pick<SellingPlan, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'billingInterval' | 'intervalCount' | 'trialDays' | 'pricingPolicy' | 'adjustmentValue' | 'anchorDay' | 'enabled'>;
11028
11074
  };
11029
- export type ShippingRateGroupFieldFragment = (Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'requiresRerate' | 'supersededAt'> & {
11075
+ export type ShippingRateGroupFieldFragment = (Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'packagePresetId' | 'packedPresetId' | 'requiresRerate' | 'supersededAt'> & {
11030
11076
  lastRateErrors: Array<Pick<RateFetchFailure, 'providerCode' | 'providerName' | 'errorCode' | 'variables'>>;
11031
11077
  orderLines: Array<Pick<ShippingGatewayRateGroupLine, 'orderLineId' | 'productName' | 'variantName' | 'quantity' | 'weight' | 'weightUnit' | 'length' | 'width' | 'height' | 'dimensionUnit'>>;
11032
11078
  rates: Array<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'estimated'>>;
11079
+ packing?: Maybe<Pick<ShipmentPackingSolution, 'presetId' | 'engine' | 'utilization' | 'totalWeightGrams'>>;
11033
11080
  });
11034
11081
  export type ShippingLabelFieldFragment = Pick<ShippingGatewayLabel, 'id' | 'status' | 'trackingNumber' | 'carrier' | 'service' | 'providerCode' | 'labelUrl' | 'orderId' | 'fulfillmentId' | 'isReturnLabel' | 'rateGroupId' | 'costAmount' | 'costCurrencyCode' | 'lastErrorCode' | 'lastErrorDetail' | 'voidedAt'>;
11035
11082
  export type ShippingPickupFieldFragment = Pick<ShippingGatewayPickup, 'id' | 'orderId' | 'fulfillmentId' | 'rateGroupId' | 'providerCode' | 'carrier' | 'extPickupId' | 'status' | 'confirmationCode' | 'requestedStartAt' | 'requestedEndAt' | 'confirmedStartAt' | 'confirmedEndAt' | 'lastErrorCode'>;
@@ -11088,20 +11135,22 @@ export type ShippingRateGroupsQueryVariables = Exact<{
11088
11135
  orderId: Scalars['ID']['input'];
11089
11136
  }>;
11090
11137
  export type ShippingRateGroupsQuery = {
11091
- shippingRateGroups: Array<(Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'requiresRerate' | 'supersededAt'> & {
11138
+ shippingRateGroups: Array<(Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'packagePresetId' | 'packedPresetId' | 'requiresRerate' | 'supersededAt'> & {
11092
11139
  lastRateErrors: Array<Pick<RateFetchFailure, 'providerCode' | 'providerName' | 'errorCode' | 'variables'>>;
11093
11140
  orderLines: Array<Pick<ShippingGatewayRateGroupLine, 'orderLineId' | 'productName' | 'variantName' | 'quantity' | 'weight' | 'weightUnit' | 'length' | 'width' | 'height' | 'dimensionUnit'>>;
11094
11141
  rates: Array<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'estimated'>>;
11142
+ packing?: Maybe<Pick<ShipmentPackingSolution, 'presetId' | 'engine' | 'utilization' | 'totalWeightGrams'>>;
11095
11143
  })>;
11096
11144
  };
11097
11145
  export type RefreshShippingRateGroupsMutationVariables = Exact<{
11098
11146
  input: RefreshShippingRateGroupsInput;
11099
11147
  }>;
11100
11148
  export type RefreshShippingRateGroupsMutation = {
11101
- refreshShippingRateGroups: Array<(Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'requiresRerate' | 'supersededAt'> & {
11149
+ refreshShippingRateGroups: Array<(Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'packagePresetId' | 'packedPresetId' | 'requiresRerate' | 'supersededAt'> & {
11102
11150
  lastRateErrors: Array<Pick<RateFetchFailure, 'providerCode' | 'providerName' | 'errorCode' | 'variables'>>;
11103
11151
  orderLines: Array<Pick<ShippingGatewayRateGroupLine, 'orderLineId' | 'productName' | 'variantName' | 'quantity' | 'weight' | 'weightUnit' | 'length' | 'width' | 'height' | 'dimensionUnit'>>;
11104
11152
  rates: Array<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'estimated'>>;
11153
+ packing?: Maybe<Pick<ShipmentPackingSolution, 'presetId' | 'engine' | 'utilization' | 'totalWeightGrams'>>;
11105
11154
  })>;
11106
11155
  };
11107
11156
  export type SelectShippingRateMutationVariables = Exact<{
@@ -11310,10 +11359,11 @@ export type ShipmentRateFieldFragment = Pick<ShipmentRate, 'id' | 'extRateId' |
11310
11359
  export type OrderShipmentCostFieldFragment = Pick<OrderShipmentCost, 'collectedAmount' | 'labelCostAmount' | 'costDelta' | 'refundPendingTotal' | 'refundedTotal' | 'currencyCode'>;
11311
11360
  export type OrderShippingCostSummaryFieldFragment = Pick<OrderShippingCostSummary, 'collectedTotal' | 'labelCostTotal' | 'delta' | 'refundPendingTotal' | 'refundedTotal' | 'currencyCode'>;
11312
11361
  export type OrderShipmentFieldFragment = (Pick<OrderShipment, 'requiresRerate'> & {
11313
- rateGroup: (Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'requiresRerate' | 'supersededAt'> & {
11362
+ rateGroup: (Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'packagePresetId' | 'packedPresetId' | 'requiresRerate' | 'supersededAt'> & {
11314
11363
  lastRateErrors: Array<Pick<RateFetchFailure, 'providerCode' | 'providerName' | 'errorCode' | 'variables'>>;
11315
11364
  orderLines: Array<Pick<ShippingGatewayRateGroupLine, 'orderLineId' | 'productName' | 'variantName' | 'quantity' | 'weight' | 'weightUnit' | 'length' | 'width' | 'height' | 'dimensionUnit'>>;
11316
11365
  rates: Array<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'estimated'>>;
11366
+ packing?: Maybe<Pick<ShipmentPackingSolution, 'presetId' | 'engine' | 'utilization' | 'totalWeightGrams'>>;
11317
11367
  });
11318
11368
  fulfillmentRequest?: Maybe<(Pick<FulfillmentRequest, 'id' | 'state' | 'deliveryMethod' | 'handlerCode'> & {
11319
11369
  holdReasons: Array<Pick<HoldReason, 'code' | 'addedAt' | 'note'>>;
@@ -11332,10 +11382,11 @@ export type OrderShipmentsQueryVariables = Exact<{
11332
11382
  export type OrderShipmentsQuery = {
11333
11383
  orderShipments: {
11334
11384
  shipments: Array<(Pick<OrderShipment, 'requiresRerate'> & {
11335
- rateGroup: (Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'requiresRerate' | 'supersededAt'> & {
11385
+ rateGroup: (Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'packagePresetId' | 'packedPresetId' | 'requiresRerate' | 'supersededAt'> & {
11336
11386
  lastRateErrors: Array<Pick<RateFetchFailure, 'providerCode' | 'providerName' | 'errorCode' | 'variables'>>;
11337
11387
  orderLines: Array<Pick<ShippingGatewayRateGroupLine, 'orderLineId' | 'productName' | 'variantName' | 'quantity' | 'weight' | 'weightUnit' | 'length' | 'width' | 'height' | 'dimensionUnit'>>;
11338
11388
  rates: Array<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'estimated'>>;
11389
+ packing?: Maybe<Pick<ShipmentPackingSolution, 'presetId' | 'engine' | 'utilization' | 'totalWeightGrams'>>;
11339
11390
  });
11340
11391
  fulfillmentRequest?: Maybe<(Pick<FulfillmentRequest, 'id' | 'state' | 'deliveryMethod' | 'handlerCode'> & {
11341
11392
  holdReasons: Array<Pick<HoldReason, 'code' | 'addedAt' | 'note'>>;
@@ -11369,10 +11420,22 @@ export type SelectRateForShipmentMutationVariables = Exact<{
11369
11420
  input: SelectRateForShipmentInput;
11370
11421
  }>;
11371
11422
  export type SelectRateForShipmentMutation = {
11372
- selectRateForShipment: (Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'requiresRerate' | 'supersededAt'> & {
11423
+ selectRateForShipment: (Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'packagePresetId' | 'packedPresetId' | 'requiresRerate' | 'supersededAt'> & {
11424
+ lastRateErrors: Array<Pick<RateFetchFailure, 'providerCode' | 'providerName' | 'errorCode' | 'variables'>>;
11425
+ orderLines: Array<Pick<ShippingGatewayRateGroupLine, 'orderLineId' | 'productName' | 'variantName' | 'quantity' | 'weight' | 'weightUnit' | 'length' | 'width' | 'height' | 'dimensionUnit'>>;
11426
+ rates: Array<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'estimated'>>;
11427
+ packing?: Maybe<Pick<ShipmentPackingSolution, 'presetId' | 'engine' | 'utilization' | 'totalWeightGrams'>>;
11428
+ });
11429
+ };
11430
+ export type SetShipmentPackageMutationVariables = Exact<{
11431
+ input: SetShipmentPackageInput;
11432
+ }>;
11433
+ export type SetShipmentPackageMutation = {
11434
+ setShipmentPackage: (Pick<ShippingGatewayRateGroup, 'id' | 'orderId' | 'stockLocationId' | 'stockLocationName' | 'rechargeModificationId' | 'fulfillmentRequestId' | 'packagePresetId' | 'packedPresetId' | 'requiresRerate' | 'supersededAt'> & {
11373
11435
  lastRateErrors: Array<Pick<RateFetchFailure, 'providerCode' | 'providerName' | 'errorCode' | 'variables'>>;
11374
11436
  orderLines: Array<Pick<ShippingGatewayRateGroupLine, 'orderLineId' | 'productName' | 'variantName' | 'quantity' | 'weight' | 'weightUnit' | 'length' | 'width' | 'height' | 'dimensionUnit'>>;
11375
11437
  rates: Array<Pick<ShippingGatewayRate, 'id' | 'extRateId' | 'carrier' | 'service' | 'amount' | 'currency' | 'estimatedDays' | 'selected' | 'providerCode' | 'consumedByLabelId' | 'estimated'>>;
11438
+ packing?: Maybe<Pick<ShipmentPackingSolution, 'presetId' | 'engine' | 'utilization' | 'totalWeightGrams'>>;
11376
11439
  });
11377
11440
  };
11378
11441
  export type RechargeShippingCostDeltaMutationVariables = Exact<{
@@ -11521,31 +11584,35 @@ export type WithdrawShippingRechargeMutation = {
11521
11584
  });
11522
11585
  });
11523
11586
  };
11524
- export type ShippingPackagePresetFieldFragment = Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
11525
- export type ShippingPackageTemplateFieldFragment = Pick<ShippingPackageTemplate, 'providerCode' | 'providerName' | 'carrier' | 'token' | 'label'>;
11587
+ export type ShippingPackagePresetFieldFragment = Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'maxWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
11588
+ export type ShippingPackageTemplateFieldFragment = (Pick<ShippingPackageTemplate, 'providerCode' | 'providerName' | 'carrier' | 'token' | 'label' | 'maxWeightGrams'> & {
11589
+ innerDimensions?: Maybe<Pick<ShippingPackageTemplateDimensions, 'length' | 'width' | 'height' | 'unit'>>;
11590
+ });
11526
11591
  export type ShippingPackagePresetsQueryVariables = Exact<{
11527
11592
  [key: string]: never;
11528
11593
  }>;
11529
11594
  export type ShippingPackagePresetsQuery = {
11530
- shippingPackagePresets: Array<Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>>;
11595
+ shippingPackagePresets: Array<Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'maxWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>>;
11531
11596
  };
11532
11597
  export type AvailablePackageTemplatesQueryVariables = Exact<{
11533
11598
  [key: string]: never;
11534
11599
  }>;
11535
11600
  export type AvailablePackageTemplatesQuery = {
11536
- availablePackageTemplates: Array<Pick<ShippingPackageTemplate, 'providerCode' | 'providerName' | 'carrier' | 'token' | 'label'>>;
11601
+ availablePackageTemplates: Array<(Pick<ShippingPackageTemplate, 'providerCode' | 'providerName' | 'carrier' | 'token' | 'label' | 'maxWeightGrams'> & {
11602
+ innerDimensions?: Maybe<Pick<ShippingPackageTemplateDimensions, 'length' | 'width' | 'height' | 'unit'>>;
11603
+ })>;
11537
11604
  };
11538
11605
  export type CreateShippingPackagePresetMutationVariables = Exact<{
11539
11606
  input: CreateShippingPackagePresetInput;
11540
11607
  }>;
11541
11608
  export type CreateShippingPackagePresetMutation = {
11542
- createShippingPackagePreset: Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
11609
+ createShippingPackagePreset: Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'maxWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
11543
11610
  };
11544
11611
  export type UpdateShippingPackagePresetMutationVariables = Exact<{
11545
11612
  input: UpdateShippingPackagePresetInput;
11546
11613
  }>;
11547
11614
  export type UpdateShippingPackagePresetMutation = {
11548
- updateShippingPackagePreset: Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
11615
+ updateShippingPackagePreset: Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'maxWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
11549
11616
  };
11550
11617
  export type DeleteShippingPackagePresetMutationVariables = Exact<{
11551
11618
  id: Scalars['ID']['input'];
@@ -11555,19 +11622,19 @@ export type SetDefaultShippingPackagePresetMutationVariables = Exact<{
11555
11622
  id: Scalars['ID']['input'];
11556
11623
  }>;
11557
11624
  export type SetDefaultShippingPackagePresetMutation = {
11558
- setDefaultShippingPackagePreset: Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
11625
+ setDefaultShippingPackagePreset: Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'maxWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
11559
11626
  };
11560
11627
  export type HideShippingPackagePresetMutationVariables = Exact<{
11561
11628
  id: Scalars['ID']['input'];
11562
11629
  }>;
11563
11630
  export type HideShippingPackagePresetMutation = {
11564
- hideShippingPackagePreset: Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
11631
+ hideShippingPackagePreset: Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'maxWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
11565
11632
  };
11566
11633
  export type UnhideShippingPackagePresetMutationVariables = Exact<{
11567
11634
  id: Scalars['ID']['input'];
11568
11635
  }>;
11569
11636
  export type UnhideShippingPackagePresetMutation = {
11570
- unhideShippingPackagePreset: Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
11637
+ unhideShippingPackagePreset: Pick<ShippingPackagePreset, 'id' | 'channelId' | 'name' | 'kind' | 'easypostPredefinedPackage' | 'shippoTemplate' | 'length' | 'width' | 'height' | 'dimensionUnit' | 'tareWeightGrams' | 'maxWeightGrams' | 'isDefault' | 'isProtected' | 'hidden'>;
11571
11638
  };
11572
11639
  export type LowStockVariantFieldFragment = Pick<LowStockVariant, 'variantId' | 'name' | 'sku' | 'available' | 'threshold'>;
11573
11640
  export type LowStockVariantsQueryVariables = Exact<{
@@ -536,6 +536,7 @@ export declare class ProductVariantCategory {
536
536
  deleteProductVariants(variables: Types.DeleteProductVariantsMutationVariables): QueryObservable<Types.DeleteProductVariantsMutation>;
537
537
  setProductVariantPrice(variables: Types.SetProductVariantPriceMutationVariables): QueryObservable<Types.SetProductVariantPriceMutation>;
538
538
  deleteProductVariantPrice(variables: Types.DeleteProductVariantPriceMutationVariables): QueryObservable<Types.DeleteProductVariantPriceMutation>;
539
+ estimateVariantShippingProfile(variables: Types.EstimateVariantShippingProfileMutationVariables): QueryObservable<Types.EstimateVariantShippingProfileMutation>;
539
540
  }
540
541
  export declare class PromotionCategory {
541
542
  private readonly client;
@@ -630,6 +631,7 @@ export declare class ShippingCategory {
630
631
  refreshRatesForShipment(variables: Types.RefreshRatesForShipmentMutationVariables): QueryObservable<Types.RefreshRatesForShipmentMutation>;
631
632
  renewShipmentRates(variables: Types.RenewShipmentRatesMutationVariables): QueryObservable<Types.RenewShipmentRatesMutation>;
632
633
  selectRateForShipment(variables: Types.SelectRateForShipmentMutationVariables): QueryObservable<Types.SelectRateForShipmentMutation>;
634
+ setShipmentPackage(variables: Types.SetShipmentPackageMutationVariables): QueryObservable<Types.SetShipmentPackageMutation>;
633
635
  rechargeShippingCostDelta(variables: Types.RechargeShippingCostDeltaMutationVariables): QueryObservable<Types.RechargeShippingCostDeltaMutation>;
634
636
  withdrawShippingRecharge(variables: Types.WithdrawShippingRechargeMutationVariables): QueryObservable<Types.WithdrawShippingRechargeMutation>;
635
637
  shippingPackagePresets(): QueryObservable<Types.ShippingPackagePresetsQuery>;
@@ -1347,6 +1347,9 @@ class ProductVariantCategory {
1347
1347
  deleteProductVariantPrice(variables) {
1348
1348
  return this.client.mutate(documents_generated_1.adminDeleteProductVariantPriceDocument, variables);
1349
1349
  }
1350
+ estimateVariantShippingProfile(variables) {
1351
+ return this.client.mutate(documents_generated_1.adminEstimateVariantShippingProfileDocument, variables);
1352
+ }
1350
1353
  }
1351
1354
  exports.ProductVariantCategory = ProductVariantCategory;
1352
1355
  class PromotionCategory {
@@ -1594,6 +1597,9 @@ class ShippingCategory {
1594
1597
  selectRateForShipment(variables) {
1595
1598
  return this.client.mutate(documents_generated_1.adminSelectRateForShipmentDocument, variables);
1596
1599
  }
1600
+ setShipmentPackage(variables) {
1601
+ return this.client.mutate(documents_generated_1.adminSetShipmentPackageDocument, variables);
1602
+ }
1597
1603
  rechargeShippingCostDelta(variables) {
1598
1604
  return this.client.mutate(documents_generated_1.adminRechargeShippingCostDeltaDocument, variables);
1599
1605
  }