@redotech/redo-api-schema 2.2.423 → 2.2.427
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/lib/openapi.d.ts +13 -0
- package/lib/openapi.yaml +33 -0
- package/package.json +1 -1
package/lib/openapi.d.ts
CHANGED
|
@@ -432,6 +432,19 @@ export interface components {
|
|
|
432
432
|
* @description Custom event to trigger flows with merchant-defined event names and properties.
|
|
433
433
|
*/
|
|
434
434
|
"custom-event-request.schema": {
|
|
435
|
+
/** @description Cart context for product recommendations in triggered emails. If not provided, no cart-aware recommendations will be made. */
|
|
436
|
+
cart_context?: ({
|
|
437
|
+
/** @description Items already in the customer's cart. */
|
|
438
|
+
alreadyInCart: {
|
|
439
|
+
productId: string;
|
|
440
|
+
quantity?: number;
|
|
441
|
+
variantId: string;
|
|
442
|
+
}[];
|
|
443
|
+
/** @description The ID of an existing cart to use for recommendations. */
|
|
444
|
+
existingCartId: string | null;
|
|
445
|
+
/** @description Product IDs to use as the basis for recommendations. */
|
|
446
|
+
productIdsForRecommendations: string[];
|
|
447
|
+
}) | null;
|
|
435
448
|
/** @description Customer email address (one of email or phone is required). */
|
|
436
449
|
email?: string;
|
|
437
450
|
/** @description The name of the custom event (e.g., 'user_registered', 'purchase_completed'). */
|
package/lib/openapi.yaml
CHANGED
|
@@ -1541,6 +1541,39 @@ components:
|
|
|
1541
1541
|
description: ISO 8601 timestamp when the event occurred. Defaults to current time if not provided.
|
|
1542
1542
|
format: date-time
|
|
1543
1543
|
type: string
|
|
1544
|
+
cart_context:
|
|
1545
|
+
description: Cart context for product recommendations in triggered emails. If not provided, no cart-aware recommendations will be made.
|
|
1546
|
+
nullable: true
|
|
1547
|
+
type: object
|
|
1548
|
+
properties:
|
|
1549
|
+
existingCartId:
|
|
1550
|
+
description: The ID of an existing cart to use for recommendations.
|
|
1551
|
+
type: string
|
|
1552
|
+
nullable: true
|
|
1553
|
+
productIdsForRecommendations:
|
|
1554
|
+
description: Product IDs to use as the basis for recommendations.
|
|
1555
|
+
type: array
|
|
1556
|
+
items:
|
|
1557
|
+
type: string
|
|
1558
|
+
alreadyInCart:
|
|
1559
|
+
description: Items already in the customer's cart.
|
|
1560
|
+
type: array
|
|
1561
|
+
items:
|
|
1562
|
+
type: object
|
|
1563
|
+
properties:
|
|
1564
|
+
productId:
|
|
1565
|
+
type: string
|
|
1566
|
+
variantId:
|
|
1567
|
+
type: string
|
|
1568
|
+
quantity:
|
|
1569
|
+
type: number
|
|
1570
|
+
required:
|
|
1571
|
+
- productId
|
|
1572
|
+
- variantId
|
|
1573
|
+
required:
|
|
1574
|
+
- existingCartId
|
|
1575
|
+
- productIdsForRecommendations
|
|
1576
|
+
- alreadyInCart
|
|
1544
1577
|
required:
|
|
1545
1578
|
- event_name
|
|
1546
1579
|
title: Custom Event Request
|
package/package.json
CHANGED