@posx/core 5.5.255 → 5.5.257

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
@@ -1273,7 +1273,7 @@ declare module '@posx/core/services/invoice.service' {
1273
1273
  import { PrinterService } from '@posx/core/services/printer.service';
1274
1274
  import { IPrinter, PrinterType } from '@posx/core/types/printer.type';
1275
1275
  import { IEmployee } from '@posx/core/types/employee.type';
1276
- import { QueryBuilder, QueryEtcParams } from '@posx/core/utils/autoquery.utils';
1276
+ import { QueryBuilder } from '@posx/core/utils/autoquery.utils';
1277
1277
  import { ICouponItemized } from '@posx/core/types/wyo.coupon.type';
1278
1278
  export interface IInvoiceBaseService extends IAppRemoteService<IInvoice> {
1279
1279
  calculate(invoice: IInvoice, appConfig: IAppConfig, disableRounding?: boolean): IInvoice;
@@ -1788,7 +1788,7 @@ declare module '@posx/core/services/invoice.service' {
1788
1788
  *
1789
1789
  * @returns Promise<QueryResponse<IInvoice>> Response containing filtered invoices and total count
1790
1790
  */
1791
- autoQuery(query: QueryBuilder<IInvoice>): Promise<QueryResponse<IInvoice>>;
1791
+ autoQuery<T extends Record<string, any> = Record<string, never>>(query: QueryBuilder<IInvoice & T>): Promise<QueryResponse<IInvoice>>;
1792
1792
  getRefId(): Promise<string>;
1793
1793
  /**
1794
1794
  * Change payments of an invoice
@@ -1839,7 +1839,7 @@ declare module '@posx/core/services/invoice.service' {
1839
1839
  addSalesPersonToInvoice(invoice: IInvoice, salesUserUid: string): IInvoice;
1840
1840
  addPaxToInvoice(invoice: IInvoice, pax: number): IInvoice;
1841
1841
  addCustomerToInvoice(invoice: IInvoice, customer: ICustomer): IInvoice;
1842
- autoQuery(query: QueryBuilder<IInvoice & QueryEtcParams>): Promise<QueryResponse<IInvoice>>;
1842
+ autoQuery<T extends Record<string, any> = Record<string, never>>(query: QueryBuilder<IInvoice & T>): Promise<QueryResponse<IInvoice>>;
1843
1843
  appendInvoice(mainInvoice: IInvoice, addOnInvoice: IInvoice): IInvoice;
1844
1844
  mergeInvoice(targetInvoice: IInvoice, sourceInvoice: IInvoice): Promise<IInvoice>;
1845
1845
  getRefId(): Promise<string>;
@@ -3360,7 +3360,7 @@ declare module '@posx/core/types/invoice.type' {
3360
3360
  /** Additional charges */
3361
3361
  charges: IInvoiceCharge[];
3362
3362
  /** Flag to track if charge has been manually deleted by user */
3363
- is_charge_triggered?: boolean;
3363
+ is_charge_triggered: boolean;
3364
3364
  /** Meta data for the invoice */
3365
3365
  meta: Record<string, any>;
3366
3366
  /** If the key is not null or empty, meaning the items prices are from this price lookup key tier */