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:
@@ -40,7 +40,12 @@ export interface ValidateProductInputStepInput {
|
||||
/**
|
||||
* The shipping profiles to validate.
|
||||
*/
|
||||
shippingProfiles: { id: string }[]
|
||||
shippingProfiles: {
|
||||
/**
|
||||
* The shipping profile's ID.
|
||||
*/
|
||||
id: string
|
||||
}[]
|
||||
}
|
||||
|
||||
const validateProductInputStepId = "validate-product-input"
|
||||
@@ -168,6 +173,7 @@ export const createProductsWorkflowId = "create-products"
|
||||
* ]
|
||||
* }
|
||||
* ],
|
||||
* shipping_profile_id: "sp_123",
|
||||
* additional_data: {
|
||||
* erp_id: "123"
|
||||
* }
|
||||
|
||||
@@ -213,7 +213,8 @@ export class Product {
|
||||
* },
|
||||
* prices: []
|
||||
* }
|
||||
* ]
|
||||
* ],
|
||||
* shipping_profile_id: "sp_123"
|
||||
* })
|
||||
* .then(({ product }) => {
|
||||
* console.log(product)
|
||||
|
||||
Reference in New Issue
Block a user