UNPKG

@aptly-as/types

Version:
33 lines (32 loc) 1.02 kB
import { AptlyInternationalCodeDesignator } from '../enums/index.js'; import { AptlyVatCategory } from './algorithm.js'; import { AptlyMediaSrcSchema } from './media.js'; export type AptlyItem = AptlyItemSchema<string, string>; export interface AptlyItemSchema<ID, DATE> { name: string; type: AptlyItemType; description: string; buyersIdentification: string; sellersIdentification: string; standardIdentification: AptlyItemStandardIdentification | null; vatCategory: AptlyVatCategory; thumbnail: AptlyMediaSrcSchema<ID, DATE> | null; producer?: string; properties: AptlyItemProperty[]; } export declare enum AptlyItemType { Physical = "physical", Digital = "digital", Service = "service", Resource = "resource", Material = "material", Category = "category" } export interface AptlyItemStandardIdentification { scheme: AptlyInternationalCodeDesignator; value: string; } export interface AptlyItemProperty { name: string; value: string; }