@alphabite/medusa-reviews
Version:
Alphabite's Medusa Reviews Plugin
90 lines (89 loc) • 3.02 kB
TypeScript
export type UpdateReviewInput = {
id: string;
status: "pending" | "approved" | "rejected";
}[];
export declare const updateReviewWorkflow: import("@medusajs/framework/workflows-sdk").ReturnWorkflow<UpdateReviewInput, {
reviews: ({
id: string;
title: string | null;
content: string | null;
rating: number;
status: "pending" | "approved" | "rejected";
product_id: string;
customer_id: string;
image_urls: string[];
is_verified_purchase: boolean;
created_at: Date;
updated_at: Date;
deleted_at: Date | null;
} | import("@medusajs/framework/workflows-sdk").WorkflowData<{
id: string;
title: string | null;
content: string | null;
rating: number;
status: "pending" | "approved" | "rejected";
product_id: string;
customer_id: string;
image_urls: string[];
is_verified_purchase: boolean;
created_at: Date;
updated_at: Date;
deleted_at: Date | null;
}>)[] & {
id: string;
title: string | null;
content: string | null;
rating: number;
status: "pending" | "approved" | "rejected";
product_id: string;
customer_id: string;
image_urls: string[];
is_verified_purchase: boolean;
created_at: Date;
updated_at: Date;
deleted_at: Date | null;
}[] & import("@medusajs/framework/workflows-sdk").WorkflowDataProperties<{
id: string;
title: string | null;
content: string | null;
rating: number;
status: "pending" | "approved" | "rejected";
product_id: string;
customer_id: string;
image_urls: string[];
is_verified_purchase: boolean;
created_at: Date;
updated_at: Date;
deleted_at: Date | null;
}[]> & {
config(config: {
name?: string;
} & Omit<import("@medusajs/orchestration").TransactionStepsDefinition, "next" | "uuid" | "action">): import("@medusajs/framework/workflows-sdk").WorkflowData<{
id: string;
title: string | null;
content: string | null;
rating: number;
status: "pending" | "approved" | "rejected";
product_id: string;
customer_id: string;
image_urls: string[];
is_verified_purchase: boolean;
created_at: Date;
updated_at: Date;
deleted_at: Date | null;
}[]>;
} & import("@medusajs/framework/workflows-sdk").StepFunctionReturnConfig<{
id: string;
title: string | null;
content: string | null;
rating: number;
status: "pending" | "approved" | "rejected";
product_id: string;
customer_id: string;
image_urls: string[];
is_verified_purchase: boolean;
created_at: Date;
updated_at: Date;
deleted_at: Date | null;
}[]>;
}, []>;