@woocommerce/data
Version:
WooCommerce Admin data store and utilities
39 lines • 1.17 kB
TypeScript
/**
* External dependencies
*/
import { DispatchFromMap } from '@automattic/data-stores';
/**
* Internal dependencies
*/
import { CrudActions, CrudSelectors } from '../crud/types';
export type ProductAttributeTerm = {
id: number;
slug: string;
name: string;
description: string;
menu_order: number;
count: number;
};
type Query = {
context: string;
page: number;
per_page: number;
search: string;
exclude: number[];
include: number[];
offset: number;
order: string;
orderby: string;
hide_empty: boolean;
product: number;
slug: string;
};
type ReadOnlyProperties = 'id' | 'count';
type MutableProperties = Partial<Omit<ProductAttributeTerm, ReadOnlyProperties>>;
type ProductAttributeTermActions = CrudActions<'ProductAttributeTerm', ProductAttributeTerm & {
attribute_id: string;
}, MutableProperties, 'name'>;
export type ProductAttributeTermsSelectors = CrudSelectors<'ProductAttributeTerm', 'ProductAttributeTerms', ProductAttributeTerm, Query, MutableProperties>;
export type ActionDispatchers = DispatchFromMap<ProductAttributeTermActions>;
export {};
//# sourceMappingURL=types.d.ts.map