@posx/core 5.5.273 → 5.5.276
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.d.ts +18 -0
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1858,6 +1858,8 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1858
1858
|
lines: IInvoiceLine[];
|
|
1859
1859
|
printerUids: string[];
|
|
1860
1860
|
};
|
|
1861
|
+
private filterDeletedLinesForCancelPrint;
|
|
1862
|
+
private createCancelKitchenPrintJobs;
|
|
1861
1863
|
/**
|
|
1862
1864
|
* Sorts print jobs by printer sequence
|
|
1863
1865
|
* @param printJobs - Array of print jobs to sort
|
|
@@ -3266,6 +3268,8 @@ declare module '@posx/core/types/invoice.type' {
|
|
|
3266
3268
|
quantity: number;
|
|
3267
3269
|
/** Whether it is sent to server*/
|
|
3268
3270
|
sent: number;
|
|
3271
|
+
/** Whether cancel slip is printed */
|
|
3272
|
+
cancel_printed: number;
|
|
3269
3273
|
/** Whether it is selected */
|
|
3270
3274
|
selected: boolean;
|
|
3271
3275
|
}
|
|
@@ -3478,6 +3482,7 @@ declare module '@posx/core/types/invoice.type' {
|
|
|
3478
3482
|
unit_of_measure: UomType;
|
|
3479
3483
|
quantity: number;
|
|
3480
3484
|
sent: number;
|
|
3485
|
+
cancel_printed: number;
|
|
3481
3486
|
selected: boolean;
|
|
3482
3487
|
constructor();
|
|
3483
3488
|
}
|
|
@@ -3506,6 +3511,7 @@ declare module '@posx/core/types/invoice.type' {
|
|
|
3506
3511
|
modifiers: any[];
|
|
3507
3512
|
duplicated_from_uid: string;
|
|
3508
3513
|
sent: number;
|
|
3514
|
+
cancel_printed: number;
|
|
3509
3515
|
selected: boolean;
|
|
3510
3516
|
meta: {};
|
|
3511
3517
|
constructor();
|
|
@@ -4049,6 +4055,12 @@ declare module '@posx/core/types/printer.type' {
|
|
|
4049
4055
|
fomopay_terminal_id: string;
|
|
4050
4056
|
hirector_public_key: string;
|
|
4051
4057
|
hirector_private_key: string;
|
|
4058
|
+
yeahpay_app_id: string;
|
|
4059
|
+
yeahpay_device_sn: string;
|
|
4060
|
+
yeahpay_server_public_key: string;
|
|
4061
|
+
yeahpay_client_private_key: string;
|
|
4062
|
+
yeahpay_signature_key: string;
|
|
4063
|
+
yeahpay_async_url: string;
|
|
4052
4064
|
};
|
|
4053
4065
|
export type INode = IDevice;
|
|
4054
4066
|
export class Device extends AppBaseModel implements IDevice {
|
|
@@ -4160,6 +4172,7 @@ declare module '@posx/core/types/printer.type' {
|
|
|
4160
4172
|
job_id: number;
|
|
4161
4173
|
/** Print sequence order (lower number prints first) */
|
|
4162
4174
|
print_sequence?: number;
|
|
4175
|
+
meta: Record<string, unknown>;
|
|
4163
4176
|
}
|
|
4164
4177
|
export class PrintJob extends AppBaseModel implements IPrintJob {
|
|
4165
4178
|
printer_name: string;
|
|
@@ -4182,6 +4195,7 @@ declare module '@posx/core/types/printer.type' {
|
|
|
4182
4195
|
job_id: number;
|
|
4183
4196
|
print_sequence?: number;
|
|
4184
4197
|
constructor(printer: IPrinter, printData: IPrintCommand, saveOnly?: boolean, printTimes?: number);
|
|
4198
|
+
meta: Record<string, unknown>;
|
|
4185
4199
|
}
|
|
4186
4200
|
export enum PrinterStatus {
|
|
4187
4201
|
Online = "online",
|
|
@@ -4239,6 +4253,7 @@ declare module '@posx/core/types/printer.type' {
|
|
|
4239
4253
|
normalized_printed_at: string;
|
|
4240
4254
|
report_data: IReportData;
|
|
4241
4255
|
meta: Record<string, any>;
|
|
4256
|
+
is_cancel?: boolean;
|
|
4242
4257
|
}
|
|
4243
4258
|
export class TemplateData implements ITemplateData {
|
|
4244
4259
|
config: IConfig;
|
|
@@ -4249,14 +4264,17 @@ declare module '@posx/core/types/printer.type' {
|
|
|
4249
4264
|
printed_at: Date;
|
|
4250
4265
|
normalized_printed_at: string;
|
|
4251
4266
|
meta: Record<string, any>;
|
|
4267
|
+
is_cancel: boolean;
|
|
4252
4268
|
}
|
|
4253
4269
|
export type IRenderPrintTemplateOptions = {
|
|
4254
4270
|
printer_name: string;
|
|
4255
4271
|
kitchen_itemized_print: boolean;
|
|
4272
|
+
is_cancel?: boolean;
|
|
4256
4273
|
};
|
|
4257
4274
|
export class RenderPrintTemplateOptions implements IRenderPrintTemplateOptions {
|
|
4258
4275
|
printer_name: string;
|
|
4259
4276
|
kitchen_itemized_print: boolean;
|
|
4277
|
+
is_cancel: boolean;
|
|
4260
4278
|
}
|
|
4261
4279
|
|
|
4262
4280
|
}
|