@posx/core 5.5.261 → 5.5.264
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 +27 -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
|
|
@@ -2054,10 +2060,22 @@ declare module '@posx/core/test/services/invoice/invoice-discount-test/invoice-d
|
|
|
2054
2060
|
declare module '@posx/core/test/services/invoice/invoice-print-job-uids-test/invoice-print-job-uids.test' {
|
|
2055
2061
|
export {};
|
|
2056
2062
|
|
|
2063
|
+
}
|
|
2064
|
+
declare module '@posx/core/test/services/invoice/invoice-rounding-bugfix-test/invoice-rounding-bugfix.test' {
|
|
2065
|
+
export {};
|
|
2066
|
+
|
|
2067
|
+
}
|
|
2068
|
+
declare module '@posx/core/test/services/invoice/invoice-rounding-multi-payment-test/invoice-rounding-multi-payment.test' {
|
|
2069
|
+
export {};
|
|
2070
|
+
|
|
2057
2071
|
}
|
|
2058
2072
|
declare module '@posx/core/test/services/invoice/invoice-rounding-test/invoice-rounding.test' {
|
|
2059
2073
|
export {};
|
|
2060
2074
|
|
|
2075
|
+
}
|
|
2076
|
+
declare module '@posx/core/test/services/invoice/printer-sequence-sorting-test/printer-sequence-sorting.test' {
|
|
2077
|
+
export {};
|
|
2078
|
+
|
|
2061
2079
|
}
|
|
2062
2080
|
declare module '@posx/core/test/services/item/modifier-stock-test/modifier-stock.test' {
|
|
2063
2081
|
export {};
|
|
@@ -3403,9 +3421,9 @@ declare module '@posx/core/types/invoice.type' {
|
|
|
3403
3421
|
/** Receipt printer unique id */
|
|
3404
3422
|
receipt_print_job_uid: string;
|
|
3405
3423
|
/** Kitchen print job uids */
|
|
3406
|
-
kitchen_print_job_uids: string[];
|
|
3424
|
+
kitchen_print_job_uids: string[][];
|
|
3407
3425
|
/** Label print job uids */
|
|
3408
|
-
label_print_job_uids: string[];
|
|
3426
|
+
label_print_job_uids: string[][];
|
|
3409
3427
|
/** Additional charges */
|
|
3410
3428
|
charges: IInvoiceCharge[];
|
|
3411
3429
|
/** Flag to track if charge has been manually deleted by user */
|
|
@@ -3520,8 +3538,8 @@ declare module '@posx/core/types/invoice.type' {
|
|
|
3520
3538
|
otp: string;
|
|
3521
3539
|
activities: any[];
|
|
3522
3540
|
receipt_print_job_uid: string;
|
|
3523
|
-
kitchen_print_job_uids: string[];
|
|
3524
|
-
label_print_job_uids: string[];
|
|
3541
|
+
kitchen_print_job_uids: string[][];
|
|
3542
|
+
label_print_job_uids: string[][];
|
|
3525
3543
|
charges: IInvoiceCharge[];
|
|
3526
3544
|
/** Flag to track if charge has been manually deleted by user */
|
|
3527
3545
|
is_charge_triggered: boolean;
|
|
@@ -4102,6 +4120,8 @@ declare module '@posx/core/types/printer.type' {
|
|
|
4102
4120
|
designated_table_section_uids: string[];
|
|
4103
4121
|
/** Job ID */
|
|
4104
4122
|
job_id: number;
|
|
4123
|
+
/** Print sequence order (lower number prints first) */
|
|
4124
|
+
print_sequence?: number;
|
|
4105
4125
|
}
|
|
4106
4126
|
export class PrintJob extends AppBaseModel implements IPrintJob {
|
|
4107
4127
|
printer_name: string;
|
|
@@ -4122,6 +4142,7 @@ declare module '@posx/core/types/printer.type' {
|
|
|
4122
4142
|
device_uid_to_print: string;
|
|
4123
4143
|
designated_table_section_uids: any[];
|
|
4124
4144
|
job_id: number;
|
|
4145
|
+
print_sequence?: number;
|
|
4125
4146
|
constructor(printer: IPrinter, printData: IPrintCommand, saveOnly?: boolean, printTimes?: number);
|
|
4126
4147
|
}
|
|
4127
4148
|
export enum PrinterStatus {
|
|
@@ -4153,6 +4174,8 @@ declare module '@posx/core/types/printer.type' {
|
|
|
4153
4174
|
print_times: number;
|
|
4154
4175
|
/** Number of retries */
|
|
4155
4176
|
retries: number;
|
|
4177
|
+
/** Print sequence order (lower number prints first) */
|
|
4178
|
+
print_sequence?: number;
|
|
4156
4179
|
}
|
|
4157
4180
|
export class Printer extends AppBaseModel implements IPrinter {
|
|
4158
4181
|
device_uid: string;
|