feat(medusa, types, core-flows): Add invite endpoints for api-v2 (#6395)
**What** - Add invite endpoints for simple operations on invites
This commit is contained in:
@@ -12,8 +12,6 @@ export interface UpdateUserDTO extends Partial<Omit<CreateUserDTO, "email">> {
|
||||
export interface CreateInviteDTO {
|
||||
email: string
|
||||
accepted?: boolean
|
||||
token: string
|
||||
expires_at: Date
|
||||
metadata?: Record<string, unknown> | null
|
||||
}
|
||||
|
||||
|
||||
@@ -4,3 +4,4 @@ export * as ProductWorkflow from "./product"
|
||||
export * as InventoryWorkflow from "./inventory"
|
||||
export * as PriceListWorkflow from "./price-list"
|
||||
export * as UserWorkflow from "./user"
|
||||
export * as InviteWorkflow from "./invite"
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import { CreateInviteDTO } from "../../user"
|
||||
|
||||
export interface CreateInvitesWorkflowInputDTO {
|
||||
invites: CreateInviteDTO[]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export interface DeleteInvitesWorkflowInput {
|
||||
ids: string[]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export * from "./create-invite"
|
||||
export * from "./update-invite"
|
||||
export * from "./delete-invite"
|
||||
@@ -0,0 +1,5 @@
|
||||
import { UpdateInviteDTO } from "../../user"
|
||||
|
||||
export interface UpdateInvitesWorkflowInputDTO {
|
||||
updates: UpdateInviteDTO[]
|
||||
}
|
||||
Reference in New Issue
Block a user