@posx/core 5.5.261 → 5.5.263
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/CLAUDE.md +9 -0
- package/build/index.d.ts +19 -4
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/CLAUDE.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Claude AI Development Guidelines
|
|
2
2
|
|
|
3
|
+
## Rules you have to follow strictly
|
|
4
|
+
|
|
5
|
+
- You are top-notch programmer who always write simplest code to achieve the ideal result
|
|
6
|
+
- you are one liner engineers and we believe "The Great Tao is Simple", so try to keep changes small and focused
|
|
7
|
+
- keep the changes as minimal as possible
|
|
8
|
+
- if or else has one line of code, then { } are not needed and it should be wrote into same line
|
|
9
|
+
- DO NOT write uncessary comment do not make newlines within a function and try to make the code compact
|
|
10
|
+
- All crucial code should have proper explanation in English
|
|
11
|
+
|
|
3
12
|
## Best Practices for AI-Assisted Development
|
|
4
13
|
|
|
5
14
|
1. **在开始编码前先充分讨论和规划架构,确保理解用户的真实需求和使用场景,避免过度设计。**
|
package/build/index.d.ts
CHANGED
|
@@ -1856,6 +1856,12 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1856
1856
|
lines: IInvoiceLine[];
|
|
1857
1857
|
printerUids: string[];
|
|
1858
1858
|
};
|
|
1859
|
+
/**
|
|
1860
|
+
* Sorts print jobs by printer sequence
|
|
1861
|
+
* @param printJobs - Array of print jobs to sort
|
|
1862
|
+
* @returns Sorted array of print jobs (lower sequence number prints first)
|
|
1863
|
+
*/
|
|
1864
|
+
private sortPrintJobsByPrinterSequence;
|
|
1859
1865
|
private preprocessInvoice;
|
|
1860
1866
|
/**
|
|
1861
1867
|
* Adds a charge to an invoice
|
|
@@ -2058,6 +2064,10 @@ declare module '@posx/core/test/services/invoice/invoice-print-job-uids-test/inv
|
|
|
2058
2064
|
declare module '@posx/core/test/services/invoice/invoice-rounding-test/invoice-rounding.test' {
|
|
2059
2065
|
export {};
|
|
2060
2066
|
|
|
2067
|
+
}
|
|
2068
|
+
declare module '@posx/core/test/services/invoice/printer-sequence-sorting-test/printer-sequence-sorting.test' {
|
|
2069
|
+
export {};
|
|
2070
|
+
|
|
2061
2071
|
}
|
|
2062
2072
|
declare module '@posx/core/test/services/item/modifier-stock-test/modifier-stock.test' {
|
|
2063
2073
|
export {};
|
|
@@ -3403,9 +3413,9 @@ declare module '@posx/core/types/invoice.type' {
|
|
|
3403
3413
|
/** Receipt printer unique id */
|
|
3404
3414
|
receipt_print_job_uid: string;
|
|
3405
3415
|
/** Kitchen print job uids */
|
|
3406
|
-
kitchen_print_job_uids: string[];
|
|
3416
|
+
kitchen_print_job_uids: string[][];
|
|
3407
3417
|
/** Label print job uids */
|
|
3408
|
-
label_print_job_uids: string[];
|
|
3418
|
+
label_print_job_uids: string[][];
|
|
3409
3419
|
/** Additional charges */
|
|
3410
3420
|
charges: IInvoiceCharge[];
|
|
3411
3421
|
/** Flag to track if charge has been manually deleted by user */
|
|
@@ -3520,8 +3530,8 @@ declare module '@posx/core/types/invoice.type' {
|
|
|
3520
3530
|
otp: string;
|
|
3521
3531
|
activities: any[];
|
|
3522
3532
|
receipt_print_job_uid: string;
|
|
3523
|
-
kitchen_print_job_uids: string[];
|
|
3524
|
-
label_print_job_uids: string[];
|
|
3533
|
+
kitchen_print_job_uids: string[][];
|
|
3534
|
+
label_print_job_uids: string[][];
|
|
3525
3535
|
charges: IInvoiceCharge[];
|
|
3526
3536
|
/** Flag to track if charge has been manually deleted by user */
|
|
3527
3537
|
is_charge_triggered: boolean;
|
|
@@ -4102,6 +4112,8 @@ declare module '@posx/core/types/printer.type' {
|
|
|
4102
4112
|
designated_table_section_uids: string[];
|
|
4103
4113
|
/** Job ID */
|
|
4104
4114
|
job_id: number;
|
|
4115
|
+
/** Print sequence order (lower number prints first) */
|
|
4116
|
+
print_sequence?: number;
|
|
4105
4117
|
}
|
|
4106
4118
|
export class PrintJob extends AppBaseModel implements IPrintJob {
|
|
4107
4119
|
printer_name: string;
|
|
@@ -4122,6 +4134,7 @@ declare module '@posx/core/types/printer.type' {
|
|
|
4122
4134
|
device_uid_to_print: string;
|
|
4123
4135
|
designated_table_section_uids: any[];
|
|
4124
4136
|
job_id: number;
|
|
4137
|
+
print_sequence?: number;
|
|
4125
4138
|
constructor(printer: IPrinter, printData: IPrintCommand, saveOnly?: boolean, printTimes?: number);
|
|
4126
4139
|
}
|
|
4127
4140
|
export enum PrinterStatus {
|
|
@@ -4153,6 +4166,8 @@ declare module '@posx/core/types/printer.type' {
|
|
|
4153
4166
|
print_times: number;
|
|
4154
4167
|
/** Number of retries */
|
|
4155
4168
|
retries: number;
|
|
4169
|
+
/** Print sequence order (lower number prints first) */
|
|
4170
|
+
print_sequence?: number;
|
|
4156
4171
|
}
|
|
4157
4172
|
export class Printer extends AppBaseModel implements IPrinter {
|
|
4158
4173
|
device_uid: string;
|