@forgecart/sdk 1.202607212307.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.
@@ -1090,7 +1090,6 @@ export type CreateProductVariantInput = {
1090
1090
  dimensions?: InputMaybe<DimensionsInput>;
1091
1091
  featuredAssetId?: InputMaybe<Scalars['ID']['input']>;
1092
1092
  optionIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1093
- packagePresetId?: InputMaybe<Scalars['ID']['input']>;
1094
1093
  price: Scalars['Int']['input'];
1095
1094
  productId: Scalars['ID']['input'];
1096
1095
  sku?: InputMaybe<Scalars['String']['input']>;
@@ -2252,6 +2251,7 @@ export type Mutation = {
2252
2251
  enablePlugin: ChannelPlugin;
2253
2252
  enableScheduledJob: ScheduledJob;
2254
2253
  enqueueChatMessage: Scalars['Int']['output'];
2254
+ estimateVariantShippingProfile: VariantShippingProfileEstimate;
2255
2255
  evaluateAudienceSegment: AudienceSegmentEvaluationResult;
2256
2256
  generateDeviceCode: DeviceCodeResponse;
2257
2257
  hideShippingPackagePreset: ShippingPackagePreset;
@@ -2782,6 +2782,9 @@ export type MutationenableScheduledJobArgs = {
2782
2782
  export type MutationenqueueChatMessageArgs = {
2783
2783
  input: EnqueueChatMessageInput;
2784
2784
  };
2785
+ export type MutationestimateVariantShippingProfileArgs = {
2786
+ variantId: Scalars['ID']['input'];
2787
+ };
2785
2788
  export type MutationevaluateAudienceSegmentArgs = {
2786
2789
  id: Scalars['ID']['input'];
2787
2790
  };
@@ -3527,7 +3530,6 @@ export type ProductVariant = {
3527
3530
  name: Scalars['String']['output'];
3528
3531
  options: Array<ProductOption>;
3529
3532
  outOfStockThreshold: Scalars['Int']['output'];
3530
- packagePresetId?: Maybe<Scalars['ID']['output']>;
3531
3533
  price: Scalars['Int']['output'];
3532
3534
  priceWithTax: Scalars['Int']['output'];
3533
3535
  prices: Array<ProductVariantPrice>;
@@ -4610,8 +4612,9 @@ export type SetSafetyStockInput = {
4610
4612
  variantId: Scalars['ID']['input'];
4611
4613
  };
4612
4614
  export type SetShipmentPackageInput = {
4613
- fulfillmentRequestId: Scalars['ID']['input'];
4615
+ fulfillmentRequestId?: InputMaybe<Scalars['ID']['input']>;
4614
4616
  packagePresetId?: InputMaybe<Scalars['ID']['input']>;
4617
+ rateGroupId?: InputMaybe<Scalars['ID']['input']>;
4615
4618
  };
4616
4619
  export type SetShippingAddressInput = {
4617
4620
  address: CreateAddressInput;
@@ -5429,7 +5432,6 @@ export type UpdateProductVariantInput = {
5429
5432
  featuredAssetId?: InputMaybe<Scalars['ID']['input']>;
5430
5433
  id: Scalars['ID']['input'];
5431
5434
  optionIds?: InputMaybe<Array<Scalars['ID']['input']>>;
5432
- packagePresetId?: InputMaybe<Scalars['ID']['input']>;
5433
5435
  price?: InputMaybe<Scalars['Int']['input']>;
5434
5436
  sku?: InputMaybe<Scalars['String']['input']>;
5435
5437
  stockLevels?: InputMaybe<Array<StockLevelInput>>;
@@ -5610,6 +5612,14 @@ export type UserPreferences = {
5610
5612
  preferredLanguageCode: Scalars['String']['output'];
5611
5613
  preferredTimezone: Scalars['String']['output'];
5612
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
+ };
5613
5623
  export type VariantStockLevel = {
5614
5624
  available: Scalars['Int']['output'];
5615
5625
  safetyStock: Scalars['Int']['output'];
@@ -10238,7 +10248,7 @@ export type PluginDeleteManageableMutationVariables = Exact<{
10238
10248
  }>;
10239
10249
  export type PluginDeleteManageableMutation = Pick<Mutation, 'deleteManageablePlugin'>;
10240
10250
  export type ProductVariantTranslationFieldFragment = Pick<ProductVariantTranslation, 'id' | 'languageCode' | 'name'>;
10241
- 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'> & {
10242
10252
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10243
10253
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10244
10254
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10260,7 +10270,7 @@ export type AdminProductVariantQueryVariables = Exact<{
10260
10270
  id: Scalars['ID']['input'];
10261
10271
  }>;
10262
10272
  export type AdminProductVariantQuery = {
10263
- 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'> & {
10264
10274
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10265
10275
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10266
10276
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10282,7 +10292,7 @@ export type AdminProductVariantsQueryVariables = Exact<{
10282
10292
  productId: Scalars['ID']['input'];
10283
10293
  }>;
10284
10294
  export type AdminProductVariantsQuery = {
10285
- 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'> & {
10286
10296
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10287
10297
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10288
10298
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10304,7 +10314,7 @@ export type CreateProductVariantsMutationVariables = Exact<{
10304
10314
  input: Array<CreateProductVariantInput> | CreateProductVariantInput;
10305
10315
  }>;
10306
10316
  export type CreateProductVariantsMutation = {
10307
- 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'> & {
10308
10318
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10309
10319
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10310
10320
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10326,7 +10336,7 @@ export type UpdateProductVariantsMutationVariables = Exact<{
10326
10336
  input: Array<UpdateProductVariantInput> | UpdateProductVariantInput;
10327
10337
  }>;
10328
10338
  export type UpdateProductVariantsMutation = {
10329
- 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'> & {
10330
10340
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10331
10341
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10332
10342
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10362,6 +10372,12 @@ export type DeleteProductVariantPriceMutationVariables = Exact<{
10362
10372
  export type DeleteProductVariantPriceMutation = {
10363
10373
  deleteProductVariantPrice: Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>;
10364
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
+ };
10365
10381
  export type ProductTranslationFieldFragment = Pick<ProductTranslation, 'id' | 'languageCode' | 'name' | 'slug' | 'description'>;
10366
10382
  export type ProductFieldFragment = (Pick<Product, 'id' | 'createdAt' | 'updatedAt' | 'enabled' | 'isDigital' | 'trackInventory'> & {
10367
10383
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10379,7 +10395,7 @@ export type ProductFieldFragment = (Pick<Product, 'id' | 'createdAt' | 'updatedA
10379
10395
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10380
10396
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10381
10397
  })>;
10382
- 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'> & {
10383
10399
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10384
10400
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10385
10401
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10417,7 +10433,7 @@ export type AdminProductQuery = {
10417
10433
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10418
10434
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10419
10435
  })>;
10420
- 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'> & {
10421
10437
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10422
10438
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10423
10439
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10457,7 +10473,7 @@ export type AdminProductsQuery = {
10457
10473
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10458
10474
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10459
10475
  })>;
10460
- 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'> & {
10461
10477
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10462
10478
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10463
10479
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10497,7 +10513,7 @@ export type CreateProductMutation = {
10497
10513
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10498
10514
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10499
10515
  })>;
10500
- 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'> & {
10501
10517
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10502
10518
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10503
10519
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10536,7 +10552,7 @@ export type UpdateProductMutation = {
10536
10552
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10537
10553
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10538
10554
  })>;
10539
- 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'> & {
10540
10556
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10541
10557
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10542
10558
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10581,7 +10597,7 @@ export type AssignProductsToChannelMutation = {
10581
10597
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10582
10598
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10583
10599
  })>;
10584
- 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'> & {
10585
10601
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10586
10602
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10587
10603
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10620,7 +10636,7 @@ export type RemoveProductsFromChannelMutation = {
10620
10636
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10621
10637
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10622
10638
  })>;
10623
- 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'> & {
10624
10640
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10625
10641
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10626
10642
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10706,7 +10722,7 @@ export type AddOptionGroupToProductMutation = {
10706
10722
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10707
10723
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10708
10724
  })>;
10709
- 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'> & {
10710
10726
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10711
10727
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10712
10728
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -10745,7 +10761,7 @@ export type RemoveOptionGroupFromProductMutation = {
10745
10761
  options: Array<Pick<ProductOption, 'id' | 'code' | 'name' | 'groupId'>>;
10746
10762
  translations: Array<Pick<ProductOptionGroupTranslation, 'id' | 'languageCode' | 'name'>>;
10747
10763
  })>;
10748
- 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'> & {
10749
10765
  prices: Array<Pick<ProductVariantPrice, 'id' | 'createdAt' | 'updatedAt' | 'price' | 'currencyCode' | 'variantId'>>;
10750
10766
  taxCategory?: Maybe<Pick<TaxCategory, 'id' | 'name' | 'exempt'>>;
10751
10767
  featuredAsset?: Maybe<(Pick<Asset, 'id' | 'name' | 'type' | 'mimeType' | 'source' | 'preview' | 'fileSize' | 'width' | 'height'> & {
@@ -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;
@@ -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 {
@@ -123,9 +123,36 @@ export declare class BaseGraphQLClient {
123
123
  private notifyErrorHandler;
124
124
  query<T>(document: string, variables?: Record<string, unknown>): QueryObservable<T>;
125
125
  mutate<T>(document: string, variables?: Record<string, unknown>): QueryObservable<T>;
126
+ /**
127
+ * One GraphQL operation over the shared graphql-ws socket.
128
+ *
129
+ * graphql-ws re-executes every operation still pending when a dropped
130
+ * socket reconnects — at-least-once delivery. Safe for reads and
131
+ * subscriptions; wrong for mutations: a re-sent create races its own
132
+ * first attempt (observed: activatePlugin re-sent under load — the
133
+ * winner committed, the caller received the loser's duplicate-name
134
+ * error). With `singleDelivery` the operation arms once a live (ACKed)
135
+ * socket could have carried it; a close while armed fails the operation
136
+ * with WS_MUTATION_DELIVERY_INTERRUPTED instead of silently
137
+ * re-executing it — the in-flight attempt's outcome is genuinely
138
+ * unknown, and surfacing that is the only honest behavior. Closes
139
+ * BEFORE the first ACK stay retryable, so shouldRetry keeps healing
140
+ * transient non-101 handshake refusals for mutations too.
141
+ */
142
+ private executeWsOperation;
126
143
  subscribe<T>(document: string, variables?: Record<string, unknown>): Observable<T>;
127
144
  upload<T>(document: string, variables: Record<string, unknown>): QueryObservable<T>;
128
145
  private getPerOperationExtensions;
146
+ /**
147
+ * Uniform error contract for the sink-level error path. graphql-ws
148
+ * delivers a server ErrorMessage payload as a raw GraphQLError[] —
149
+ * without wrapping, consumers see ClientError for result-embedded
150
+ * errors but a bare array for stream-terminal ones (and the
151
+ * registered ErrorHandler never fires). Server-typed payloads become
152
+ * ClientError here; genuine transport failures (Error, CloseEvent)
153
+ * pass through untouched so callers can distinguish the two.
154
+ */
155
+ private toStreamError;
129
156
  private captureSessionToken;
130
157
  private captureSessionTokenFromUpload;
131
158
  private readPersistedToken;
@@ -50,6 +50,11 @@ class QueryObservable extends rxjs_1.Observable {
50
50
  }
51
51
  }
52
52
  exports.QueryObservable = QueryObservable;
53
+ // Liveness of each underlying socket, keyed on the WsClient because
54
+ // fork()ed clients share one socket. An operation that existed while its
55
+ // socket was ACK-live may already sit on the server — that is the arming
56
+ // condition for the single-delivery mutation guard in executeWsOperation.
57
+ const WS_CONNECTION_STATE = new WeakMap();
53
58
  class BaseGraphQLClient {
54
59
  baseHeaders;
55
60
  uploadEndpoint;
@@ -99,7 +104,20 @@ class BaseGraphQLClient {
99
104
  headers: this.getHeaders(),
100
105
  }),
101
106
  lazyCloseTimeout: 15_000,
107
+ // graphql-ws treats a non-101 upgrade response as FATAL by
108
+ // default (zero retries) — a fresh handshake landing on a
109
+ // transient refusal (LB blip, server backlog under load) dies
110
+ // instantly with "Received network error or non-101 status
111
+ // code". Those refusals are infra-shaped and retry-safe: real
112
+ // auth failures arrive AFTER the 101 as connection-ack errors
113
+ // and still fail fast. retryAttempts keeps the default 5 with
114
+ // exponential backoff.
115
+ shouldRetry: () => true,
102
116
  });
117
+ const connectionState = { connected: false };
118
+ WS_CONNECTION_STATE.set(this.wsClient, connectionState);
119
+ this.wsClient.on("connected", () => { connectionState.connected = true; });
120
+ this.wsClient.on("closed", () => { connectionState.connected = false; });
103
121
  }
104
122
  return this.wsClient;
105
123
  }
@@ -184,9 +202,35 @@ class BaseGraphQLClient {
184
202
  }
185
203
  }
186
204
  query(document, variables) {
205
+ return this.executeWsOperation(document, variables, false);
206
+ }
207
+ mutate(document, variables) {
208
+ if (variables && this.containsFiles(variables)) {
209
+ return this.upload(document, variables);
210
+ }
211
+ return this.executeWsOperation(document, variables, true);
212
+ }
213
+ /**
214
+ * One GraphQL operation over the shared graphql-ws socket.
215
+ *
216
+ * graphql-ws re-executes every operation still pending when a dropped
217
+ * socket reconnects — at-least-once delivery. Safe for reads and
218
+ * subscriptions; wrong for mutations: a re-sent create races its own
219
+ * first attempt (observed: activatePlugin re-sent under load — the
220
+ * winner committed, the caller received the loser's duplicate-name
221
+ * error). With `singleDelivery` the operation arms once a live (ACKed)
222
+ * socket could have carried it; a close while armed fails the operation
223
+ * with WS_MUTATION_DELIVERY_INTERRUPTED instead of silently
224
+ * re-executing it — the in-flight attempt's outcome is genuinely
225
+ * unknown, and surfacing that is the only honest behavior. Closes
226
+ * BEFORE the first ACK stay retryable, so shouldRetry keeps healing
227
+ * transient non-101 handshake refusals for mutations too.
228
+ */
229
+ executeWsOperation(document, variables, singleDelivery) {
187
230
  return new QueryObservable((subscriber) => {
188
231
  const client = this.getWsClient();
189
232
  let disposed = false;
233
+ const offConnectionEvents = [];
190
234
  const cleanup = client.subscribe({
191
235
  query: document,
192
236
  variables,
@@ -215,7 +259,7 @@ class BaseGraphQLClient {
215
259
  error: (err) => {
216
260
  if (disposed)
217
261
  return;
218
- subscriber.error(err);
262
+ subscriber.error(this.toStreamError(err));
219
263
  },
220
264
  complete: () => {
221
265
  if (disposed)
@@ -223,18 +267,27 @@ class BaseGraphQLClient {
223
267
  subscriber.complete();
224
268
  },
225
269
  });
270
+ if (singleDelivery) {
271
+ let armed = WS_CONNECTION_STATE.get(client)?.connected ?? false;
272
+ offConnectionEvents.push(client.on("connected", () => { armed = true; }));
273
+ offConnectionEvents.push(client.on("closed", () => {
274
+ if (disposed || !armed)
275
+ return;
276
+ const message = "WS_MUTATION_DELIVERY_INTERRUPTED";
277
+ // subscriber.error tears the subscription down synchronously,
278
+ // disposing the pending graphql-ws operation BEFORE its retry
279
+ // loop can re-send it on the next connection.
280
+ subscriber.error(new ClientError({ errors: [{ message }] }, message));
281
+ }));
282
+ }
226
283
  return () => {
227
284
  disposed = true;
285
+ for (const off of offConnectionEvents)
286
+ off();
228
287
  cleanup();
229
288
  };
230
289
  });
231
290
  }
232
- mutate(document, variables) {
233
- if (variables && this.containsFiles(variables)) {
234
- return this.upload(document, variables);
235
- }
236
- return this.query(document, variables);
237
- }
238
291
  subscribe(document, variables) {
239
292
  return this.query(document, variables);
240
293
  }
@@ -255,6 +308,31 @@ class BaseGraphQLClient {
255
308
  return undefined;
256
309
  return { "forgecart-transaction-token": this.transactionToken };
257
310
  }
311
+ /**
312
+ * Uniform error contract for the sink-level error path. graphql-ws
313
+ * delivers a server ErrorMessage payload as a raw GraphQLError[] —
314
+ * without wrapping, consumers see ClientError for result-embedded
315
+ * errors but a bare array for stream-terminal ones (and the
316
+ * registered ErrorHandler never fires). Server-typed payloads become
317
+ * ClientError here; genuine transport failures (Error, CloseEvent)
318
+ * pass through untouched so callers can distinguish the two.
319
+ */
320
+ toStreamError(err) {
321
+ const isGraphQLErrorArray = Array.isArray(err) &&
322
+ err.length > 0 &&
323
+ err.every((e) => typeof e === "object" && e !== null && "message" in e);
324
+ if (!isGraphQLErrorArray)
325
+ return err;
326
+ const response = {
327
+ errors: err.map((e) => ({
328
+ message: String(e.message),
329
+ extensions: e.extensions,
330
+ })),
331
+ };
332
+ const error = new ClientError(response, response.errors[0].message);
333
+ this.notifyErrorHandler(error);
334
+ return error;
335
+ }
258
336
  captureSessionToken(result) {
259
337
  if (!result.extensions)
260
338
  return;
@@ -300,25 +300,26 @@ export declare const adminProductOptionGroupsDocument = "query ProductOptionGrou
300
300
  export declare const adminCreateProductOptionGroupDocument = "mutation CreateProductOptionGroup($input: CreateProductOptionGroupInput!) {\n createProductOptionGroup(input: $input) {\n ...ProductOptionGroupField\n }\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}";
301
301
  export declare const adminUpdateProductOptionGroupDocument = "mutation UpdateProductOptionGroup($input: UpdateProductOptionGroupInput!) {\n updateProductOptionGroup(input: $input) {\n ...ProductOptionGroupField\n }\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}";
302
302
  export declare const adminDeleteProductOptionGroupDocument = "mutation DeleteProductOptionGroup($input: DeleteProductOptionGroupInput!) {\n deleteProductOptionGroup(input: $input) {\n result\n message\n }\n}";
303
- export declare const adminAddOptionGroupToProductDocument = "mutation AddOptionGroupToProduct($input: AddOptionGroupToProductInput!) {\n addOptionGroupToProduct(input: $input) {\n ...ProductField\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n packagePresetId\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
304
- export declare const adminRemoveOptionGroupFromProductDocument = "mutation RemoveOptionGroupFromProduct($input: RemoveOptionGroupFromProductInput!) {\n removeOptionGroupFromProduct(input: $input) {\n ...ProductField\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n packagePresetId\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
303
+ export declare const adminAddOptionGroupToProductDocument = "mutation AddOptionGroupToProduct($input: AddOptionGroupToProductInput!) {\n addOptionGroupToProduct(input: $input) {\n ...ProductField\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
304
+ export declare const adminRemoveOptionGroupFromProductDocument = "mutation RemoveOptionGroupFromProduct($input: RemoveOptionGroupFromProductInput!) {\n removeOptionGroupFromProduct(input: $input) {\n ...ProductField\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
305
305
  export declare const adminCreateProductOptionDocument = "mutation CreateProductOption($input: CreateProductOptionInput!) {\n createProductOption(input: $input) {\n ...ProductOptionField\n }\n}\n\nfragment ProductOptionField on ProductOption {\n id\n code\n name\n groupId\n group {\n id\n code\n name\n }\n translations {\n ...ProductOptionTranslationField\n }\n}\n\nfragment ProductOptionTranslationField on ProductOptionTranslation {\n id\n languageCode\n name\n}";
306
306
  export declare const adminUpdateProductOptionDocument = "mutation UpdateProductOption($input: UpdateProductOptionInput!) {\n updateProductOption(input: $input) {\n ...ProductOptionField\n }\n}\n\nfragment ProductOptionField on ProductOption {\n id\n code\n name\n groupId\n group {\n id\n code\n name\n }\n translations {\n ...ProductOptionTranslationField\n }\n}\n\nfragment ProductOptionTranslationField on ProductOptionTranslation {\n id\n languageCode\n name\n}";
307
307
  export declare const adminDeleteProductOptionDocument = "mutation DeleteProductOption($id: ID!) {\n deleteProductOption(id: $id) {\n result\n message\n }\n}";
308
- export declare const adminAdminProductVariantDocument = "query AdminProductVariant($id: ID!) {\n productVariant(id: $id) {\n ...ProductVariantField\n }\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n packagePresetId\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
309
- export declare const adminAdminProductVariantsDocument = "query AdminProductVariants($productId: ID!) {\n productVariants(productId: $productId) {\n ...ProductVariantField\n }\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n packagePresetId\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
310
- export declare const adminCreateProductVariantsDocument = "mutation CreateProductVariants($input: [CreateProductVariantInput!]!) {\n createProductVariants(input: $input) {\n ...ProductVariantField\n }\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n packagePresetId\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
311
- export declare const adminUpdateProductVariantsDocument = "mutation UpdateProductVariants($input: [UpdateProductVariantInput!]!) {\n updateProductVariants(input: $input) {\n ...ProductVariantField\n }\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n packagePresetId\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
308
+ export declare const adminAdminProductVariantDocument = "query AdminProductVariant($id: ID!) {\n productVariant(id: $id) {\n ...ProductVariantField\n }\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
309
+ export declare const adminAdminProductVariantsDocument = "query AdminProductVariants($productId: ID!) {\n productVariants(productId: $productId) {\n ...ProductVariantField\n }\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
310
+ export declare const adminCreateProductVariantsDocument = "mutation CreateProductVariants($input: [CreateProductVariantInput!]!) {\n createProductVariants(input: $input) {\n ...ProductVariantField\n }\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
311
+ export declare const adminUpdateProductVariantsDocument = "mutation UpdateProductVariants($input: [UpdateProductVariantInput!]!) {\n updateProductVariants(input: $input) {\n ...ProductVariantField\n }\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
312
312
  export declare const adminDeleteProductVariantsDocument = "mutation DeleteProductVariants($ids: [ID!]!) {\n deleteProductVariants(ids: $ids) {\n result\n message\n }\n}";
313
313
  export declare const adminSetProductVariantPriceDocument = "mutation SetProductVariantPrice($input: SetPriceInput!) {\n setProductVariantPrice(input: $input) {\n ...ProductVariantPriceField\n }\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}";
314
314
  export declare const adminDeleteProductVariantPriceDocument = "mutation DeleteProductVariantPrice($input: DeletePriceInput!) {\n deleteProductVariantPrice(input: $input) {\n ...ProductVariantPriceField\n }\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}";
315
- export declare const adminAdminProductDocument = "query AdminProduct($id: ID!) {\n product(id: $id) {\n ...ProductField\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n packagePresetId\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
316
- export declare const adminAdminProductsDocument = "query AdminProducts($options: ListQueryOptions) {\n products(options: $options) {\n items {\n ...ProductField\n }\n totalItems\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n packagePresetId\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
317
- export declare const adminCreateProductDocument = "mutation CreateProduct($input: CreateProductInput!) {\n createProduct(input: $input) {\n ...ProductField\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n packagePresetId\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
318
- export declare const adminUpdateProductDocument = "mutation UpdateProduct($input: UpdateProductInput!) {\n updateProduct(input: $input) {\n ...ProductField\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n packagePresetId\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
315
+ export declare const adminEstimateVariantShippingProfileDocument = "mutation EstimateVariantShippingProfile($variantId: ID!) {\n estimateVariantShippingProfile(variantId: $variantId) {\n lengthCm\n widthCm\n heightCm\n weightGrams\n hsCode\n rationale\n }\n}";
316
+ export declare const adminAdminProductDocument = "query AdminProduct($id: ID!) {\n product(id: $id) {\n ...ProductField\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
317
+ export declare const adminAdminProductsDocument = "query AdminProducts($options: ListQueryOptions) {\n products(options: $options) {\n items {\n ...ProductField\n }\n totalItems\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
318
+ export declare const adminCreateProductDocument = "mutation CreateProduct($input: CreateProductInput!) {\n createProduct(input: $input) {\n ...ProductField\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
319
+ export declare const adminUpdateProductDocument = "mutation UpdateProduct($input: UpdateProductInput!) {\n updateProduct(input: $input) {\n ...ProductField\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
319
320
  export declare const adminDeleteProductDocument = "mutation DeleteProduct($id: ID!) {\n deleteProduct(id: $id) {\n result\n message\n }\n}";
320
- export declare const adminAssignProductsToChannelDocument = "mutation AssignProductsToChannel($input: AssignProductsToChannelInput!) {\n assignProductsToChannel(input: $input) {\n ...ProductField\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n packagePresetId\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
321
- export declare const adminRemoveProductsFromChannelDocument = "mutation RemoveProductsFromChannel($input: RemoveProductsFromChannelInput!) {\n removeProductsFromChannel(input: $input) {\n ...ProductField\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n packagePresetId\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
321
+ export declare const adminAssignProductsToChannelDocument = "mutation AssignProductsToChannel($input: AssignProductsToChannelInput!) {\n assignProductsToChannel(input: $input) {\n ...ProductField\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
322
+ export declare const adminRemoveProductsFromChannelDocument = "mutation RemoveProductsFromChannel($input: RemoveProductsFromChannelInput!) {\n removeProductsFromChannel(input: $input) {\n ...ProductField\n }\n}\n\nfragment ProductField on Product {\n id\n createdAt\n updatedAt\n enabled\n isDigital\n trackInventory\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n assets {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n }\n translations {\n ...ProductTranslationField\n }\n facetValues {\n id\n name\n code\n facetId\n }\n facetValues {\n id\n name\n code\n facetId\n }\n channels {\n id\n code\n token\n }\n optionGroups {\n ...ProductOptionGroupField\n }\n variants {\n ...ProductVariantField\n }\n}\n\nfragment AssetField on Asset {\n id\n name\n type\n mimeType\n source\n preview\n fileSize\n width\n height\n tags {\n id\n value\n }\n focalPoint {\n x\n y\n }\n}\n\nfragment ProductTranslationField on ProductTranslation {\n id\n languageCode\n name\n slug\n description\n}\n\nfragment ProductOptionGroupField on ProductOptionGroup {\n id\n code\n name\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductOptionGroupTranslationField\n }\n}\n\nfragment ProductOptionGroupTranslationField on ProductOptionGroupTranslation {\n id\n languageCode\n name\n}\n\nfragment ProductVariantField on ProductVariant {\n id\n sku\n name\n price\n priceWithTax\n currencyCode\n prices {\n ...ProductVariantPriceField\n }\n stockOnHand\n stockAllocated\n trackInventory\n enabled\n productId\n taxCategoryId\n taxCategory {\n id\n name\n exempt\n }\n featuredAsset {\n ...AssetField\n }\n assets {\n ...AssetField\n }\n options {\n id\n code\n name\n groupId\n }\n translations {\n ...ProductVariantTranslationField\n }\n weight {\n value\n unit\n }\n dimensions {\n length\n width\n height\n unit\n }\n customs {\n hsCode\n originCountryCode\n contentsType\n }\n}\n\nfragment ProductVariantPriceField on ProductVariantPrice {\n id\n createdAt\n updatedAt\n price\n currencyCode\n variantId\n}\n\nfragment ProductVariantTranslationField on ProductVariantTranslation {\n id\n languageCode\n name\n}";
322
323
  export declare const adminPromotionDocument = "query Promotion($id: ID!) {\n promotion(id: $id) {\n ...PromotionField\n }\n}\n\nfragment PromotionField on Promotion {\n id\n createdAt\n updatedAt\n name\n enabled\n couponCode\n startsAt\n endsAt\n perCustomerUsageLimit\n usageLimit\n priorityScore\n conditions\n actions\n}";
323
324
  export declare const adminPromotionsDocument = "query Promotions($options: ListQueryOptions) {\n promotions(options: $options) {\n items {\n ...PromotionField\n }\n totalItems\n }\n}\n\nfragment PromotionField on Promotion {\n id\n createdAt\n updatedAt\n name\n enabled\n couponCode\n startsAt\n endsAt\n perCustomerUsageLimit\n usageLimit\n priorityScore\n conditions\n actions\n}";
324
325
  export declare const adminPromotionConditionsDocument = "query PromotionConditions {\n promotionConditions\n}";