@aimee.shop/sdk 0.35.0 → 0.36.0-dev.372

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.
@@ -14242,6 +14242,63 @@ export interface components {
14242
14242
  */
14243
14243
  hasLowStockLocation: boolean;
14244
14244
  };
14245
+ AppliedPriceTierDto: {
14246
+ /** @description Minimum quantity for the tier */
14247
+ minQuantity: number;
14248
+ /** @description Tier unit price in cents (integer string) */
14249
+ amount: string;
14250
+ };
14251
+ ResolvedPriceDto: {
14252
+ /**
14253
+ * @description Product variant ID
14254
+ * @example 550e8400-e29b-41d4-a716-446655440000
14255
+ */
14256
+ variantId: string;
14257
+ /**
14258
+ * @description Resolved selling price in cents (integer string). Null when source is "unavailable" (price explicitly disabled).
14259
+ * @example 2999
14260
+ */
14261
+ amount: string | null;
14262
+ /**
14263
+ * @description Compare-at price (strikethrough) in cents
14264
+ * @example 3999
14265
+ */
14266
+ compareAtAmount?: string;
14267
+ /**
14268
+ * @description Cost of Goods Sold in cents. Internal only: the HTTP resolve endpoints never return it.
14269
+ * @example 1500
14270
+ */
14271
+ cost?: string;
14272
+ /**
14273
+ * @description Currency code
14274
+ * @example USD
14275
+ */
14276
+ currencyCode: string;
14277
+ /**
14278
+ * @description How the price was resolved. "unavailable" means an explicit price exists with isAvailable=false.
14279
+ * @example market
14280
+ * @enum {string}
14281
+ */
14282
+ source: 'exact' | 'market' | 'converted' | 'unavailable';
14283
+ /**
14284
+ * @description Whether the price is available for purchase. False when source is "unavailable".
14285
+ * @example true
14286
+ */
14287
+ isAvailable: boolean;
14288
+ /** @description Applied quantity tier (if quantity-based pricing applies); amount is the tier unit price in cents (integer string) */
14289
+ appliedTier?: components['schemas']['AppliedPriceTierDto'];
14290
+ /**
14291
+ * @description ID of the VariantPrice record used
14292
+ * @example 550e8400-e29b-41d4-a716-446655440001
14293
+ */
14294
+ priceId?: string;
14295
+ /**
14296
+ * Format: date-time
14297
+ * @description Timestamp when price was resolved
14298
+ * @example 2024-01-15T10:30:00.000Z
14299
+ */
14300
+ resolvedAt: string;
14301
+ };
14245
14302
  ProductVariantDto: {
14246
14303
  /**
14247
14304
  * @description Unique variant identifier
@@ -14364,6 +14421,8 @@ export interface components {
14364
14421
  dimensionsUnit?: string | null;
14365
14422
  /** @description Aggregated inventory summary. Present when include contains inventory. */
14366
14423
  inventory?: components['schemas']['VariantInventorySummaryDto'];
14424
+ /** @description Price resolved for the request market and currency (marketId, currencyCode; else the store default market and its currency), all-customers price, quantity 1. Same rules as GET /v1/pricing/variant-prices/resolve/batch; null when the variant has no price there. Present when include contains resolvedPrice. */
14425
+ resolvedPrice?: components['schemas']['ResolvedPriceDto'] | null;
14367
14426
  };
14368
14427
  ProductDto: {
14369
14428
  /**
@@ -14483,7 +14542,7 @@ export interface components {
14483
14542
  * @example null
14484
14543
  */
14485
14544
  isBackorderedAllowed?: boolean | null;
14486
- /** @description Variants included when include contains variants or inventory. Each variant carries inventory when include contains inventory. Requesting inventory alone implies variants. */
14545
+ /** @description Variants included when include contains variants, inventory or resolvedPrice. Each variant carries inventory when include contains inventory and resolvedPrice when include contains resolvedPrice. Requesting inventory or resolvedPrice alone implies variants. */
14487
14546
  variants?: components['schemas']['ProductVariantDto'][];
14488
14547
  /**
14489
14548
  * @description Product shipping weight
@@ -20647,63 +20706,6 @@ export interface components {
20647
20706
  */
20648
20707
  isAvailable?: boolean;
20649
20708
  };
20650
- AppliedPriceTierDto: {
20651
- /** @description Minimum quantity for the tier */
20652
- minQuantity: number;
20653
- /** @description Tier unit price in cents (integer string) */
20654
- amount: string;
20655
- };
20656
- ResolvedPriceDto: {
20657
- /**
20658
- * @description Product variant ID
20659
- * @example 550e8400-e29b-41d4-a716-446655440000
20660
- */
20661
- variantId: string;
20662
- /**
20663
- * @description Resolved selling price in cents (integer string). Null when source is "unavailable" (price explicitly disabled).
20664
- * @example 2999
20665
- */
20666
- amount: string | null;
20667
- /**
20668
- * @description Compare-at price (strikethrough) in cents
20669
- * @example 3999
20670
- */
20671
- compareAtAmount?: string;
20672
- /**
20673
- * @description Cost of Goods Sold in cents. Internal only: the HTTP resolve endpoints never return it.
20674
- * @example 1500
20675
- */
20676
- cost?: string;
20677
- /**
20678
- * @description Currency code
20679
- * @example USD
20680
- */
20681
- currencyCode: string;
20682
- /**
20683
- * @description How the price was resolved. "unavailable" means an explicit price exists with isAvailable=false.
20684
- * @example market
20685
- * @enum {string}
20686
- */
20687
- source: 'exact' | 'market' | 'converted' | 'unavailable';
20688
- /**
20689
- * @description Whether the price is available for purchase. False when source is "unavailable".
20690
- * @example true
20691
- */
20692
- isAvailable: boolean;
20693
- /** @description Applied quantity tier (if quantity-based pricing applies); amount is the tier unit price in cents (integer string) */
20694
- appliedTier?: components['schemas']['AppliedPriceTierDto'];
20695
- /**
20696
- * @description ID of the VariantPrice record used
20697
- * @example 550e8400-e29b-41d4-a716-446655440001
20698
- */
20699
- priceId?: string;
20700
- /**
20701
- * Format: date-time
20702
- * @description Timestamp when price was resolved
20703
- * @example 2024-01-15T10:30:00.000Z
20704
- */
20705
- resolvedAt: string;
20706
- };
20707
20709
  BatchResolvedPriceItemDto: {
20708
20710
  /**
20709
20711
  * Format: uuid
@@ -39477,8 +39479,8 @@ export interface operations {
39477
39479
  sortBy?: 'name' | 'createdAt';
39478
39480
  /** @description Sort order. Default desc. Given without sortBy it sorts by createdAt. */
39479
39481
  sortOrder?: 'asc' | 'desc';
39480
- /** @description Comma-separated computed fields to include. Search applies variantCount, orderReferenceCount, priceRange, ratings and primaryImage only; relation tokens and inventory are accepted but ignored (search does not load variants). Tokens: variantCount, orderReferenceCount, priceRange, ratings, primaryImage, inventory, variants, categories, optionTypes, facets */
39481
- include?: 'variantCount' | 'orderReferenceCount' | 'priceRange' | 'ratings' | 'primaryImage' | 'inventory' | 'variants' | 'categories' | 'optionTypes' | 'facets';
39482
+ /** @description Comma-separated computed fields to include. Search applies variantCount, orderReferenceCount, priceRange, ratings and primaryImage only; relation tokens and inventory are accepted but ignored (search does not load variants). Tokens: variantCount, orderReferenceCount, priceRange, ratings, primaryImage, inventory, resolvedPrice, variants, categories, optionTypes, facets */
39483
+ include?: 'variantCount' | 'orderReferenceCount' | 'priceRange' | 'ratings' | 'primaryImage' | 'inventory' | 'resolvedPrice' | 'variants' | 'categories' | 'optionTypes' | 'facets';
39482
39484
  /** @description Market for computed priceRange. Defaults to the store primary market. */
39483
39485
  marketId?: string;
39484
39486
  /** @description ISO 4217 currency for computed priceRange. Defaults to the market default currency. */
@@ -39628,12 +39630,14 @@ export interface operations {
39628
39630
  categorySlug?: string;
39629
39631
  /** @description Filter by sale status. true returns products with at least one variant whose current price has compareAtAmount > amount; false returns the rest. */
39630
39632
  onSale?: boolean;
39631
- /** @description Comma-separated relations to include. inventory implies variants and sets variants[].inventory. Tokens: variantCount, orderReferenceCount, priceRange, ratings, primaryImage, inventory, variants, categories, optionTypes, facets */
39632
- include?: 'variantCount' | 'orderReferenceCount' | 'priceRange' | 'ratings' | 'primaryImage' | 'inventory' | 'variants' | 'categories' | 'optionTypes' | 'facets';
39633
+ /** @description Comma-separated relations to include. inventory implies variants and sets variants[].inventory. Tokens: variantCount, orderReferenceCount, priceRange, ratings, primaryImage, inventory, resolvedPrice, variants, categories, optionTypes, facets */
39634
+ include?: 'variantCount' | 'orderReferenceCount' | 'priceRange' | 'ratings' | 'primaryImage' | 'inventory' | 'resolvedPrice' | 'variants' | 'categories' | 'optionTypes' | 'facets';
39633
39635
  /** @description Market for computed priceRange. Defaults to the store primary market. */
39634
39636
  marketId?: string;
39635
39637
  /** @description ISO 4217 currency for computed priceRange. Defaults to the market default currency. */
39636
39638
  currencyCode?: string;
39639
+ /** @description Comma-separated product IDs (1-50, unique): return only these products, in one page, in request order (CMS and home block products). Other filters still apply; unknown ids are omitted. */
39640
+ ids?: string;
39637
39641
  };
39638
39642
  header?: never;
39639
39643
  path?: never;
@@ -39714,14 +39718,18 @@ export interface operations {
39714
39718
  ProductsController_findOne: {
39715
39719
  parameters: {
39716
39720
  query?: {
39717
- /** @description Comma-separated relations to include. inventory implies variants and sets variants[].inventory. Tokens: variantCount, orderReferenceCount, priceRange, ratings, primaryImage, inventory, variants, categories, optionTypes, facets */
39718
- include?: 'variantCount' | 'orderReferenceCount' | 'priceRange' | 'ratings' | 'primaryImage' | 'inventory' | 'variants' | 'categories' | 'optionTypes' | 'facets';
39721
+ /** @description Comma-separated relations to include. inventory implies variants and sets variants[].inventory. Tokens: variantCount, orderReferenceCount, priceRange, ratings, primaryImage, inventory, resolvedPrice, variants, categories, optionTypes, facets */
39722
+ include?: 'variantCount' | 'orderReferenceCount' | 'priceRange' | 'ratings' | 'primaryImage' | 'inventory' | 'resolvedPrice' | 'variants' | 'categories' | 'optionTypes' | 'facets';
39719
39723
  /** @description ISO 3166-1 alpha-2 country code; enables geoRestricted */
39720
39724
  country?: string;
39721
39725
  /** @description Subdivision code without country prefix; enables geoRestricted */
39722
39726
  state?: string;
39723
39727
  /** @description Postal code; enables geoRestricted */
39724
39728
  postalCode?: string;
39729
+ /** @description Market for priceRange and resolvedPrice. Defaults to the store primary market. */
39730
+ marketId?: string;
39731
+ /** @description ISO 4217 currency for priceRange and resolvedPrice. Defaults to the market default currency. */
39732
+ currencyCode?: string;
39725
39733
  };
39726
39734
  header?: never;
39727
39735
  path: {
@@ -39874,14 +39882,18 @@ export interface operations {
39874
39882
  ProductsController_findBySlug: {
39875
39883
  parameters: {
39876
39884
  query?: {
39877
- /** @description Comma-separated relations to include. inventory implies variants and sets variants[].inventory. Tokens: variantCount, orderReferenceCount, priceRange, ratings, primaryImage, inventory, variants, categories, optionTypes, facets */
39878
- include?: 'variantCount' | 'orderReferenceCount' | 'priceRange' | 'ratings' | 'primaryImage' | 'inventory' | 'variants' | 'categories' | 'optionTypes' | 'facets';
39885
+ /** @description Comma-separated relations to include. inventory implies variants and sets variants[].inventory. Tokens: variantCount, orderReferenceCount, priceRange, ratings, primaryImage, inventory, resolvedPrice, variants, categories, optionTypes, facets */
39886
+ include?: 'variantCount' | 'orderReferenceCount' | 'priceRange' | 'ratings' | 'primaryImage' | 'inventory' | 'resolvedPrice' | 'variants' | 'categories' | 'optionTypes' | 'facets';
39879
39887
  /** @description ISO 3166-1 alpha-2 country code; enables geoRestricted */
39880
39888
  country?: string;
39881
39889
  /** @description Subdivision code without country prefix; enables geoRestricted */
39882
39890
  state?: string;
39883
39891
  /** @description Postal code; enables geoRestricted */
39884
39892
  postalCode?: string;
39893
+ /** @description Market for priceRange and resolvedPrice. Defaults to the store primary market. */
39894
+ marketId?: string;
39895
+ /** @description ISO 4217 currency for priceRange and resolvedPrice. Defaults to the market default currency. */
39896
+ currencyCode?: string;
39885
39897
  };
39886
39898
  header?: never;
39887
39899
  path: {