@aimee.shop/sdk 0.35.0-dev.359 → 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
@@ -19149,6 +19208,18 @@ export interface components {
19149
19208
  */
19150
19209
  updatedAt: string;
19151
19210
  };
19211
+ UpdateCurrentUserDto: {
19212
+ /** @description User email address */
19213
+ email?: string;
19214
+ /** @description User first name */
19215
+ firstName?: string;
19216
+ /** @description User last name */
19217
+ lastName?: string;
19218
+ /** @description User preferences and custom fields */
19219
+ metadata?: {
19220
+ [key: string]: unknown;
19221
+ };
19222
+ };
19152
19223
  UpdateUserDto: {
19153
19224
  /** @description User email address */
19154
19225
  email?: string;
@@ -20635,63 +20706,6 @@ export interface components {
20635
20706
  */
20636
20707
  isAvailable?: boolean;
20637
20708
  };
20638
- AppliedPriceTierDto: {
20639
- /** @description Minimum quantity for the tier */
20640
- minQuantity: number;
20641
- /** @description Tier unit price in cents (integer string) */
20642
- amount: string;
20643
- };
20644
- ResolvedPriceDto: {
20645
- /**
20646
- * @description Product variant ID
20647
- * @example 550e8400-e29b-41d4-a716-446655440000
20648
- */
20649
- variantId: string;
20650
- /**
20651
- * @description Resolved selling price in cents (integer string). Null when source is "unavailable" (price explicitly disabled).
20652
- * @example 2999
20653
- */
20654
- amount: string | null;
20655
- /**
20656
- * @description Compare-at price (strikethrough) in cents
20657
- * @example 3999
20658
- */
20659
- compareAtAmount?: string;
20660
- /**
20661
- * @description Cost of Goods Sold in cents. Internal only: the HTTP resolve endpoints never return it.
20662
- * @example 1500
20663
- */
20664
- cost?: string;
20665
- /**
20666
- * @description Currency code
20667
- * @example USD
20668
- */
20669
- currencyCode: string;
20670
- /**
20671
- * @description How the price was resolved. "unavailable" means an explicit price exists with isAvailable=false.
20672
- * @example market
20673
- * @enum {string}
20674
- */
20675
- source: 'exact' | 'market' | 'converted' | 'unavailable';
20676
- /**
20677
- * @description Whether the price is available for purchase. False when source is "unavailable".
20678
- * @example true
20679
- */
20680
- isAvailable: boolean;
20681
- /** @description Applied quantity tier (if quantity-based pricing applies); amount is the tier unit price in cents (integer string) */
20682
- appliedTier?: components['schemas']['AppliedPriceTierDto'];
20683
- /**
20684
- * @description ID of the VariantPrice record used
20685
- * @example 550e8400-e29b-41d4-a716-446655440001
20686
- */
20687
- priceId?: string;
20688
- /**
20689
- * Format: date-time
20690
- * @description Timestamp when price was resolved
20691
- * @example 2024-01-15T10:30:00.000Z
20692
- */
20693
- resolvedAt: string;
20694
- };
20695
20709
  BatchResolvedPriceItemDto: {
20696
20710
  /**
20697
20711
  * Format: uuid
@@ -39465,8 +39479,8 @@ export interface operations {
39465
39479
  sortBy?: 'name' | 'createdAt';
39466
39480
  /** @description Sort order. Default desc. Given without sortBy it sorts by createdAt. */
39467
39481
  sortOrder?: 'asc' | 'desc';
39468
- /** @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 */
39469
- 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';
39470
39484
  /** @description Market for computed priceRange. Defaults to the store primary market. */
39471
39485
  marketId?: string;
39472
39486
  /** @description ISO 4217 currency for computed priceRange. Defaults to the market default currency. */
@@ -39616,12 +39630,14 @@ export interface operations {
39616
39630
  categorySlug?: string;
39617
39631
  /** @description Filter by sale status. true returns products with at least one variant whose current price has compareAtAmount > amount; false returns the rest. */
39618
39632
  onSale?: boolean;
39619
- /** @description Comma-separated relations to include. inventory implies variants and sets variants[].inventory. Tokens: variantCount, orderReferenceCount, priceRange, ratings, primaryImage, inventory, variants, categories, optionTypes, facets */
39620
- 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';
39621
39635
  /** @description Market for computed priceRange. Defaults to the store primary market. */
39622
39636
  marketId?: string;
39623
39637
  /** @description ISO 4217 currency for computed priceRange. Defaults to the market default currency. */
39624
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;
39625
39641
  };
39626
39642
  header?: never;
39627
39643
  path?: never;
@@ -39702,14 +39718,18 @@ export interface operations {
39702
39718
  ProductsController_findOne: {
39703
39719
  parameters: {
39704
39720
  query?: {
39705
- /** @description Comma-separated relations to include. inventory implies variants and sets variants[].inventory. Tokens: variantCount, orderReferenceCount, priceRange, ratings, primaryImage, inventory, variants, categories, optionTypes, facets */
39706
- 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';
39707
39723
  /** @description ISO 3166-1 alpha-2 country code; enables geoRestricted */
39708
39724
  country?: string;
39709
39725
  /** @description Subdivision code without country prefix; enables geoRestricted */
39710
39726
  state?: string;
39711
39727
  /** @description Postal code; enables geoRestricted */
39712
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;
39713
39733
  };
39714
39734
  header?: never;
39715
39735
  path: {
@@ -39862,14 +39882,18 @@ export interface operations {
39862
39882
  ProductsController_findBySlug: {
39863
39883
  parameters: {
39864
39884
  query?: {
39865
- /** @description Comma-separated relations to include. inventory implies variants and sets variants[].inventory. Tokens: variantCount, orderReferenceCount, priceRange, ratings, primaryImage, inventory, variants, categories, optionTypes, facets */
39866
- 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';
39867
39887
  /** @description ISO 3166-1 alpha-2 country code; enables geoRestricted */
39868
39888
  country?: string;
39869
39889
  /** @description Subdivision code without country prefix; enables geoRestricted */
39870
39890
  state?: string;
39871
39891
  /** @description Postal code; enables geoRestricted */
39872
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;
39873
39897
  };
39874
39898
  header?: never;
39875
39899
  path: {
@@ -44683,7 +44707,7 @@ export interface operations {
44683
44707
  };
44684
44708
  requestBody: {
44685
44709
  content: {
44686
- 'application/json': components['schemas']['UpdateUserDto'];
44710
+ 'application/json': components['schemas']['UpdateCurrentUserDto'];
44687
44711
  };
44688
44712
  };
44689
44713
  responses: {