@medusajs/types
Version:
Medusa Types definition
66 lines • 1.45 kB
TypeScript
import { MetadataType } from "../common";
/**
* The sales channel to be created.
*/
export interface CreateSalesChannelDTO {
/**
* The name of the sales channel.
*/
name: string;
/**
* The description of the sales channel.
*/
description?: string | null;
/**
* Whether the sales channel is disabled.
*/
is_disabled?: boolean;
}
/**
* The attributes to update in the sales channel.
*/
export interface UpdateSalesChannelDTO {
/**
* The name of the sales channel.
*/
name?: string;
/**
* The description of the sales channel.
*/
description?: string | null;
/**
* Whether the sales channel is disabled.
*/
is_disabled?: boolean;
/**
* Holds custom data in key-value pairs.
*/
metadata?: MetadataType;
}
/**
* The attributes in the sales channel to be created or updated.
*/
export interface UpsertSalesChannelDTO {
/**
* The ID of the sales channel.
*/
id?: string;
/**
* The name of the sales channel. Required
* when creating a sales channel.
*/
name?: string;
/**
* The description of the sales channel.
*/
description?: string | null;
/**
* Whether the sales channel is disabled.
*/
is_disabled?: boolean;
/**
* Holds custom data in key-value pairs.
*/
metadata?: MetadataType;
}
//# sourceMappingURL=mutations.d.ts.map