chore(core-flows): update TSDocs of createProductsWorkflow (#11439)

* chore(core-flows): update TSDocs of createProductsWorkflow

* update example in js sdk
This commit is contained in:
Shahed Nasser
2025-02-13 15:30:56 +02:00
committed by GitHub
parent b864cb4e28
commit e3b93c679f
2 changed files with 9 additions and 2 deletions
@@ -40,7 +40,12 @@ export interface ValidateProductInputStepInput {
/** /**
* The shipping profiles to validate. * The shipping profiles to validate.
*/ */
shippingProfiles: { id: string }[] shippingProfiles: {
/**
* The shipping profile's ID.
*/
id: string
}[]
} }
const validateProductInputStepId = "validate-product-input" const validateProductInputStepId = "validate-product-input"
@@ -168,6 +173,7 @@ export const createProductsWorkflowId = "create-products"
* ] * ]
* } * }
* ], * ],
* shipping_profile_id: "sp_123",
* additional_data: { * additional_data: {
* erp_id: "123" * erp_id: "123"
* } * }
+2 -1
View File
@@ -213,7 +213,8 @@ export class Product {
* }, * },
* prices: [] * prices: []
* } * }
* ] * ],
* shipping_profile_id: "sp_123"
* }) * })
* .then(({ product }) => { * .then(({ product }) => {
* console.log(product) * console.log(product)