@posx/core 5.5.265 → 5.5.267

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 CHANGED
@@ -1692,6 +1692,7 @@ declare module '@posx/core/services/invoice.service' {
1692
1692
  */
1693
1693
  switchInvoice(invoice: IInvoice, targetSectionItem: ISectionItem, sourceSectionItem: ISectionItem, employee?: IEmployee): Promise<SwitchInvoiceOptions>;
1694
1694
  reprintReceipt(invoice: IInvoice): Promise<boolean>;
1695
+ printLastKitchenSlips(invoiceUid: string): Promise<boolean>;
1695
1696
  /**
1696
1697
  * Adds a discount to an invoice
1697
1698
  * @param invoice - The invoice to add the discount to
@@ -1834,6 +1835,7 @@ declare module '@posx/core/services/invoice.service' {
1834
1835
  voidInvoice(invoice: IInvoice, till?: ITill, reason?: string, employee?: IEmployee): Promise<VoidInvoiceOptions>;
1835
1836
  duplicateInvoice(invoice: IInvoice, employee?: IEmployee): Promise<IInvoice>;
1836
1837
  reprintReceipt(invoice: IInvoice): Promise<boolean>;
1838
+ printLastKitchenSlips(invoiceUid: string): Promise<boolean>;
1837
1839
  addInvoiceDiscount(invoice: IInvoice, discountType: CalcType, amountOrPercent: number, calcFlow?: CalcFlow, name?: string, nameTranslations?: Record<string, string>): IInvoice;
1838
1840
  addCouponToInvoice(invoice: IInvoice, itemized: ICouponItemized, calcFlow?: CalcFlow): IInvoice;
1839
1841
  removeInvoiceDiscount(invoice: IInvoice, discountUid: string): IInvoice;
@@ -2276,9 +2278,9 @@ declare module '@posx/core/types/auto.query.type' {
2276
2278
  export type QueryableType<T> = {
2277
2279
  [K in keyof T]: T[K] extends Date ? Date : T[K] extends number ? number : EnumToString<T[K]>;
2278
2280
  };
2279
- export type Operator<T> = T extends number ? keyof typeof NumericOperators | keyof typeof NullOperators : T extends Date ? keyof typeof DateOperators | keyof typeof NullOperators : T extends string ? keyof typeof StringOperators | keyof typeof NullOperators : string extends T ? keyof typeof StringOperators | keyof typeof NullOperators : keyof typeof NullOperators;
2281
+ export type Operator<T> = T extends number ? keyof typeof NumericOperators | keyof typeof NullOperators : T extends Date ? keyof typeof DateOperators | keyof typeof NullOperators : T extends string ? keyof typeof StringOperators | keyof typeof ArrayOperators | keyof typeof NullOperators : string extends T ? keyof typeof StringOperators | keyof typeof ArrayOperators | keyof typeof NullOperators : keyof typeof NullOperators;
2280
2282
  export type OperatorValueMap<T = any> = {
2281
- [K in Operator<T>]: T extends Date ? (K extends keyof typeof DateOperators ? DateOperatorValueMap[K] : K extends keyof typeof NullOperators ? boolean : never) : T extends number ? (K extends keyof typeof NumericOperators ? number : K extends keyof typeof NullOperators ? boolean : never) : T extends string ? (K extends keyof typeof StringOperators ? string : K extends keyof typeof NullOperators ? boolean : never) : string extends T ? (K extends keyof typeof StringOperators ? string : K extends keyof typeof NullOperators ? boolean : never) : K extends keyof typeof NullOperators ? boolean : never;
2283
+ [K in Operator<T>]: T extends Date ? (K extends keyof typeof DateOperators ? DateOperatorValueMap[K] : K extends keyof typeof NullOperators ? boolean : never) : T extends number ? (K extends keyof typeof NumericOperators ? number : K extends keyof typeof NullOperators ? boolean : never) : T extends string ? (K extends keyof typeof StringOperators ? string : K extends keyof typeof ArrayOperators ? string[] : K extends keyof typeof NullOperators ? boolean : never) : string extends T ? (K extends keyof typeof StringOperators ? string : K extends keyof typeof ArrayOperators ? string[] : K extends keyof typeof NullOperators ? boolean : never) : K extends keyof typeof NullOperators ? boolean : never;
2282
2284
  };
2283
2285
  export enum NumericOperators {
2284
2286
  '>' = 0,
@@ -2300,6 +2302,10 @@ declare module '@posx/core/types/auto.query.type' {
2300
2302
  'EndsWith' = 3,
2301
2303
  "Like" = 4
2302
2304
  }
2305
+ export enum ArrayOperators {
2306
+ 'In' = 0,
2307
+ 'NotIn' = 1
2308
+ }
2303
2309
  export enum NullOperators {
2304
2310
  'IsNull' = 0,
2305
2311
  'IsNotNull' = 1
@@ -2985,15 +2991,15 @@ declare module '@posx/core/types/csv.type' {
2985
2991
  * Interface for CSV export rows
2986
2992
  *
2987
2993
  * CSV Structure:
2988
- * Type,Name,SKU,Price
2989
- * category,Beverages,,
2990
- * product,Americano,AME001,4.00
2991
- * product,Espresso,ESP001,3.50
2992
- * modifier_category,Extras,,
2993
- * modifier,Extra Sugar,SUGAR001,0.50
2994
- * modifier,Extra Milk,MILK001,1.00
2995
- * category,Food,,
2996
- * product,Burger,BUR001,12.00
2994
+ * Type,Name,SKU,Price,Image URL,Thumbnail URL,Sequence
2995
+ * category,Beverages,,,https://example.com/beverages.jpg,https://example.com/beverages-thumb.jpg,0
2996
+ * product,Americano,AME001,4.00,https://example.com/americano.jpg,https://example.com/americano-thumb.jpg,0
2997
+ * product,Espresso,ESP001,3.50,https://example.com/espresso.jpg,https://example.com/espresso-thumb.jpg,1
2998
+ * modifier_category,Extras,,,,,0
2999
+ * modifier,Extra Sugar,SUGAR001,0.50,,,0
3000
+ * modifier,Extra Milk,MILK001,1.00,,,1
3001
+ * category,Food,,,https://example.com/food.jpg,https://example.com/food-thumb.jpg,1
3002
+ * product,Burger,BUR001,12.00,https://example.com/burger.jpg,https://example.com/burger-thumb.jpg,0
2997
3003
  */
2998
3004
  export interface IExportRow {
2999
3005
  /**
@@ -3012,6 +3018,18 @@ declare module '@posx/core/types/csv.type' {
3012
3018
  * Price - only for products and modifiers
3013
3019
  */
3014
3020
  price?: number;
3021
+ /**
3022
+ * Image URL - for categories and products
3023
+ */
3024
+ image_url?: string;
3025
+ /**
3026
+ * Image thumbnail URL - for categories and products
3027
+ */
3028
+ image_thumbnail_url?: string;
3029
+ /**
3030
+ * Sequence number for sorting
3031
+ */
3032
+ sequence?: number;
3015
3033
  }
3016
3034
 
3017
3035
  }