@aimee.shop/sdk 0.36.0-dev.374 → 0.36.0-dev.379
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.
- package/dist/generated/core-api.d.ts +42 -3
- package/dist/generated/core-api.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/services/core/carts.client.d.ts +35 -1
- package/dist/services/core/carts.client.d.ts.map +1 -1
- package/dist/services/core/carts.client.js +59 -0
- package/dist/services/core/carts.client.js.map +1 -1
- package/dist/services/core/inventory/inventory.client.d.ts +1 -1
- package/dist/services/core/inventory/inventory.client.js +1 -1
- package/dist/services/core/inventory/stock.client.d.ts +3 -2
- package/dist/services/core/inventory/stock.client.d.ts.map +1 -1
- package/dist/services/core/inventory/stock.client.js +6 -4
- package/dist/services/core/inventory/stock.client.js.map +1 -1
- package/dist/services/core/inventory/types.d.ts +4 -0
- package/dist/services/core/inventory/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6098,7 +6098,7 @@ export interface paths {
|
|
|
6098
6098
|
};
|
|
6099
6099
|
/**
|
|
6100
6100
|
* Get all inventory stock entries
|
|
6101
|
-
* @description Retrieve
|
|
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;
|
|
@@ -26790,6 +26790,10 @@ export interface components {
|
|
|
26790
26790
|
/** @description Variant details (when include=variant) */
|
|
26791
26791
|
variant?: components['schemas']['StockVariantDto'];
|
|
26792
26792
|
};
|
|
26793
|
+
PaginatedInventoryStockResponseDto: {
|
|
26794
|
+
data: components['schemas']['InventoryStockDto'][];
|
|
26795
|
+
meta: components['schemas']['PaginationMetaDto'];
|
|
26796
|
+
};
|
|
26793
26797
|
UpdateInventoryStockDto: {
|
|
26794
26798
|
/**
|
|
26795
26799
|
* @description Physical stock on hand
|
|
@@ -29673,6 +29677,12 @@ export interface components {
|
|
|
29673
29677
|
* @example Discount code has expired
|
|
29674
29678
|
*/
|
|
29675
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';
|
|
29676
29686
|
/** @description The validated discount details */
|
|
29677
29687
|
discount?: {
|
|
29678
29688
|
[key: string]: unknown;
|
|
@@ -31000,6 +31010,24 @@ export interface components {
|
|
|
31000
31010
|
/** @description Matched block zone IDs, or the configured allow zone IDs when mode is "allow" */
|
|
31001
31011
|
zoneIds: string[];
|
|
31002
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
|
+
};
|
|
31003
31031
|
CheckoutSessionDto: {
|
|
31004
31032
|
/**
|
|
31005
31033
|
* @description Checkout session ID
|
|
@@ -31021,6 +31049,11 @@ export interface components {
|
|
|
31021
31049
|
* @example cust_123e4567-e89b-12d3-a456-426614174000
|
|
31022
31050
|
*/
|
|
31023
31051
|
customerId?: string;
|
|
31052
|
+
/**
|
|
31053
|
+
* @description Shopper's contact email, when one has been captured
|
|
31054
|
+
* @example shopper@example.com
|
|
31055
|
+
*/
|
|
31056
|
+
email?: string;
|
|
31024
31057
|
/**
|
|
31025
31058
|
* @description Guest token (if anonymous)
|
|
31026
31059
|
* @example guest_123e4567-e89b-12d3-a456-426614174000
|
|
@@ -31264,6 +31297,8 @@ export interface components {
|
|
|
31264
31297
|
abandonedAt?: string;
|
|
31265
31298
|
/** @description Line items not purchasable at the current shipping address (warning; omitted when none). Completion will fail while present. */
|
|
31266
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'][];
|
|
31267
31302
|
/** @description Resolved cart messages for this session. Omitted when none match. */
|
|
31268
31303
|
messages?: components['schemas']['CartMessageResolved'][];
|
|
31269
31304
|
};
|
|
@@ -53220,6 +53255,10 @@ export interface operations {
|
|
|
53220
53255
|
lowStockOnly?: boolean;
|
|
53221
53256
|
/** @description Comma-separated relations to include: variant, location */
|
|
53222
53257
|
include?: string;
|
|
53258
|
+
/** @description Page number (1-based) */
|
|
53259
|
+
page?: number;
|
|
53260
|
+
/** @description Items per page */
|
|
53261
|
+
limit?: number;
|
|
53223
53262
|
};
|
|
53224
53263
|
header?: never;
|
|
53225
53264
|
path?: never;
|
|
@@ -53227,13 +53266,13 @@ export interface operations {
|
|
|
53227
53266
|
};
|
|
53228
53267
|
requestBody?: never;
|
|
53229
53268
|
responses: {
|
|
53230
|
-
/** @description
|
|
53269
|
+
/** @description Page of inventory stock entries */
|
|
53231
53270
|
200: {
|
|
53232
53271
|
headers: {
|
|
53233
53272
|
[name: string]: unknown;
|
|
53234
53273
|
};
|
|
53235
53274
|
content: {
|
|
53236
|
-
'application/json': components['schemas']['
|
|
53275
|
+
'application/json': components['schemas']['PaginatedInventoryStockResponseDto'];
|
|
53237
53276
|
};
|
|
53238
53277
|
};
|
|
53239
53278
|
/** @description Unauthorized */
|