7365-star-print
v1.0.4
Published
star print SDK integration
Readme
seven365-star-print
star print SDK integration
Install
npm install seven365-star-print
npx cap syncAPI
echo(...)printText(...)printFoodKitchen(...)printCancelKitchen(...)discoverPrinters()printInvoice(...)- Type Aliases
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: Promise<{ value: string; }>
printText(...)
printText(options: { template: string; identifier: string; }) => Promise<void>| Param | Type |
| ------------- | ------------------------------------------------------ |
| options | { template: string; identifier: string; } |
printFoodKitchen(...)
printFoodKitchen(options: { template: Record<string, any>; identifier: string; }) => Promise<{ status: string; }>| Param | Type |
| ------------- | ----------------------------------------------------------------------------------------------- |
| options | { template: Record<string, any>; identifier: string; } |
Returns: Promise<{ status: string; }>
printCancelKitchen(...)
printCancelKitchen(options: { template: Record<string, any>; identifier: string; }) => Promise<void>| Param | Type |
| ------------- | ----------------------------------------------------------------------------------------------- |
| options | { template: Record<string, any>; identifier: string; } |
discoverPrinters()
discoverPrinters() => Promise<{ printers: { identifier: string; model: string; }[]; }>Returns: Promise<{ printers: { identifier: string; model: string; }[]; }>
printInvoice(...)
printInvoice(options: { identifier: string; invoice: Record<string, any>; layout: Record<string, any>; }) => Promise<void>| Param | Type |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| options | { identifier: string; invoice: Record<string, any>; layout: Record<string, any>; } |
Type Aliases
Record
Construct a type with a set of properties K of type T
{ [P in K]: T; }
