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

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.
@@ -489,7 +489,7 @@ export interface paths {
489
489
  };
490
490
  /**
491
491
  * Get stock availability for many products
492
- * @description Availability flags and per-variant inventory summaries for up to 50 products in one call (listing and related-product cards). Same resolution as include=inventory. Unknown ids are omitted. Anonymous API-key responses are cached in Redis for 60s and invalidated on stock and product changes; anonymous publishable-key responses are also publicly cacheable.
492
+ * @description Availability flags and per-variant inventory summaries for up to 50 products in one call (listing and related-product cards). Same resolution as include=inventory. Unknown ids are omitted. Anonymous API-key responses are cached in Redis for 60s and invalidated on product, price and store setting changes (stock is read per variant); anonymous publishable-key responses are also publicly cacheable.
493
493
  */
494
494
  get: operations['ProductsController_getAvailability'];
495
495
  put?: never;
@@ -6098,7 +6098,7 @@ export interface paths {
6098
6098
  };
6099
6099
  /**
6100
6100
  * Get all inventory stock entries
6101
- * @description Retrieve all inventory stock entries for the current tenant and store. Supports filtering by location, variant, status, and low stock threshold.
6101
+ * @description Retrieve a page of inventory stock entries for the current tenant and store. Supports filtering by location, variant, status, and low stock threshold.
6102
6102
  */
6103
6103
  get: operations['InventoryStockController_findAll'];
6104
6104
  put?: never;
@@ -17710,6 +17710,8 @@ export interface components {
17710
17710
  completedSteps: string[];
17711
17711
  pendingSteps: string[];
17712
17712
  nextActions: string[];
17713
+ /** @description Provision only. false when the owner invite is saved but the email could not be sent; use Resend Invitation. Omitted when sent. */
17714
+ inviteEmailSent?: boolean;
17713
17715
  /** @description ID of the linked sandbox tenant, when linked */
17714
17716
  sandboxTenantId?: string;
17715
17717
  /** @description ID of the sandbox store, when linked */
@@ -19195,6 +19197,8 @@ export interface components {
19195
19197
  * @enum {string}
19196
19198
  */
19197
19199
  inviteKind?: 'invitation' | 'join_confirmation';
19200
+ /** @description POST /users/invite only. false when the invite is saved but the email could not be sent; use Resend Invitation. Omitted when sent or on non-invite responses. */
19201
+ inviteEmailSent?: boolean;
19198
19202
  /** @description Cognito User Pool user ID (for direct linking) */
19199
19203
  cognitoUserId?: string;
19200
19204
  /**
@@ -26786,6 +26790,10 @@ export interface components {
26786
26790
  /** @description Variant details (when include=variant) */
26787
26791
  variant?: components['schemas']['StockVariantDto'];
26788
26792
  };
26793
+ PaginatedInventoryStockResponseDto: {
26794
+ data: components['schemas']['InventoryStockDto'][];
26795
+ meta: components['schemas']['PaginationMetaDto'];
26796
+ };
26789
26797
  UpdateInventoryStockDto: {
26790
26798
  /**
26791
26799
  * @description Physical stock on hand
@@ -29669,6 +29677,12 @@ export interface components {
29669
29677
  * @example Discount code has expired
29670
29678
  */
29671
29679
  reason?: string;
29680
+ /**
29681
+ * @description Machine-readable reason when the discount is invalid
29682
+ * @example EXPIRED
29683
+ * @enum {string}
29684
+ */
29685
+ reasonCode?: 'NOT_FOUND' | 'NOT_ACTIVE' | 'NOT_STARTED' | 'EXPIRED' | 'USAGE_LIMIT_REACHED' | 'CUSTOMER_LIMIT_REACHED' | 'MIN_NOT_MET' | 'NOT_ELIGIBLE' | 'NOT_APPLICABLE' | 'ERROR';
29672
29686
  /** @description The validated discount details */
29673
29687
  discount?: {
29674
29688
  [key: string]: unknown;
@@ -30996,6 +31010,24 @@ export interface components {
30996
31010
  /** @description Matched block zone IDs, or the configured allow zone IDs when mode is "allow" */
30997
31011
  zoneIds: string[];
30998
31012
  };
31013
+ RejectedDiscountDto: {
31014
+ /**
31015
+ * @description The code the shopper applied
31016
+ * @example SAVE10
31017
+ */
31018
+ code: string;
31019
+ /**
31020
+ * @description Why the code does not apply to this checkout
31021
+ * @example EXPIRED
31022
+ * @enum {string}
31023
+ */
31024
+ reasonCode: 'NOT_FOUND' | 'NOT_ACTIVE' | 'NOT_STARTED' | 'EXPIRED' | 'USAGE_LIMIT_REACHED' | 'CUSTOMER_LIMIT_REACHED' | 'MIN_NOT_MET' | 'NOT_ELIGIBLE' | 'NOT_APPLICABLE' | 'ERROR';
31025
+ /**
31026
+ * @description Human-readable reason
31027
+ * @example Discount has expired
31028
+ */
31029
+ reason: string;
31030
+ };
30999
31031
  CheckoutSessionDto: {
31000
31032
  /**
31001
31033
  * @description Checkout session ID
@@ -31017,6 +31049,11 @@ export interface components {
31017
31049
  * @example cust_123e4567-e89b-12d3-a456-426614174000
31018
31050
  */
31019
31051
  customerId?: string;
31052
+ /**
31053
+ * @description Shopper's contact email, when one has been captured
31054
+ * @example shopper@example.com
31055
+ */
31056
+ email?: string;
31020
31057
  /**
31021
31058
  * @description Guest token (if anonymous)
31022
31059
  * @example guest_123e4567-e89b-12d3-a456-426614174000
@@ -31260,6 +31297,8 @@ export interface components {
31260
31297
  abandonedAt?: string;
31261
31298
  /** @description Line items not purchasable at the current shipping address (warning; omitted when none). Completion will fail while present. */
31262
31299
  restrictedItems?: components['schemas']['RestrictedItemDto'][];
31300
+ /** @description Discount codes on the cart that do not apply to this checkout, with the reason (omitted when none). */
31301
+ rejectedDiscounts?: components['schemas']['RejectedDiscountDto'][];
31263
31302
  /** @description Resolved cart messages for this session. Omitted when none match. */
31264
31303
  messages?: components['schemas']['CartMessageResolved'][];
31265
31304
  };
@@ -53216,6 +53255,10 @@ export interface operations {
53216
53255
  lowStockOnly?: boolean;
53217
53256
  /** @description Comma-separated relations to include: variant, location */
53218
53257
  include?: string;
53258
+ /** @description Page number (1-based) */
53259
+ page?: number;
53260
+ /** @description Items per page */
53261
+ limit?: number;
53219
53262
  };
53220
53263
  header?: never;
53221
53264
  path?: never;
@@ -53223,13 +53266,13 @@ export interface operations {
53223
53266
  };
53224
53267
  requestBody?: never;
53225
53268
  responses: {
53226
- /** @description Inventory stock entries retrieved successfully */
53269
+ /** @description Page of inventory stock entries */
53227
53270
  200: {
53228
53271
  headers: {
53229
53272
  [name: string]: unknown;
53230
53273
  };
53231
53274
  content: {
53232
- 'application/json': components['schemas']['InventoryStockDto'][];
53275
+ 'application/json': components['schemas']['PaginatedInventoryStockResponseDto'];
53233
53276
  };
53234
53277
  };
53235
53278
  /** @description Unauthorized */