@harbortouch/skytab-analytics-report-utils 0.12.2 → 0.13.1

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/dist/index.cjs CHANGED
@@ -24,6 +24,7 @@ __export(index_exports, {
24
24
  Report: () => Report,
25
25
  calculateFieldTotal: () => calculateFieldTotal,
26
26
  calculateReportTotals: () => calculateReportTotals,
27
+ dailySalesCacheConfig: () => dailySalesCacheConfig,
27
28
  dailySalesConfig: () => dailySalesConfig,
28
29
  dailySalesDiscountsConfig: () => dailySalesDiscountsConfig,
29
30
  dailySalesLiveConfig: () => dailySalesLiveConfig,
@@ -258,7 +259,7 @@ var FIELDS3 = {
258
259
  footerCalculation: { type: "sum" }
259
260
  },
260
261
  locationName: { type: "string", size: 240, columnKey: "locationName" },
261
- orderNumber: { type: "number", columnKey: "ticketNumber", footerCalculation: { type: "count" } },
262
+ orderNumber: { type: "number", columnKey: "ticketNumber", footerCalculation: { type: "none" } },
262
263
  businessDate: { type: "date", columnKey: "date" },
263
264
  ticketOpenedAt: { type: "time", columnKey: "ticketOpen" },
264
265
  ticketClosedAt: { type: "time", columnKey: "ticketClosed" },
@@ -343,8 +344,7 @@ var FIELDS4 = {
343
344
  locationName: { type: "string", columnKey: "locationName" },
344
345
  orderNumber: {
345
346
  type: "number",
346
- columnKey: "ticketNumber",
347
- footerCalculation: { type: "count" }
347
+ columnKey: "ticketNumber"
348
348
  },
349
349
  dateOpen: { type: "string", columnKey: "date" },
350
350
  timeOpen: { type: "string", columnKey: "ticketOpen" },
@@ -1421,6 +1421,10 @@ var COLUMN_REGISTRY = {
1421
1421
  titleKey: "common.report-col.net",
1422
1422
  shortTitleKey: "common.report-col.net.short",
1423
1423
  infoTextKey: "common.report-col.net.info"
1424
+ },
1425
+ type: {
1426
+ titleKey: "common.report-col.type",
1427
+ shortTitleKey: "common.report-col.type.short"
1424
1428
  }
1425
1429
  };
1426
1430
  function getColumnMetadata(key) {
@@ -1567,6 +1571,18 @@ var dailySalesTaxesConfig = {
1567
1571
  hasFooter: true
1568
1572
  };
1569
1573
 
1574
+ // src/reports/dailySalesCache.ts
1575
+ var FIELDS16 = {
1576
+ name: { type: "string", columnKey: "type", size: FIRST_COLUMN_WIDTH },
1577
+ amount: { type: "money", columnKey: "paymentsAmount", footerCalculation: { type: "sum" } }
1578
+ };
1579
+ var dailySalesCacheConfig = {
1580
+ fields: FIELDS16,
1581
+ availableColumns: ["name", "amount"],
1582
+ defaultVisibleColumns: ["name", "amount"],
1583
+ hasFooter: true
1584
+ };
1585
+
1570
1586
  // src/formatting.ts
1571
1587
  var dateFormatterCache = /* @__PURE__ */ new Map();
1572
1588
  var timeFormatterCache = /* @__PURE__ */ new Map();
@@ -1711,6 +1727,7 @@ var formatFieldValue = (value, type, localeOptions, fullRecord, fieldConfig = DE
1711
1727
  Report,
1712
1728
  calculateFieldTotal,
1713
1729
  calculateReportTotals,
1730
+ dailySalesCacheConfig,
1714
1731
  dailySalesConfig,
1715
1732
  dailySalesDiscountsConfig,
1716
1733
  dailySalesLiveConfig,
package/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
- type ReportColumnKey = 'fifteenMinInterval' | 'adjustedTips' | 'advantageProgram' | 'amex' | 'amexReturns' | 'attachRate' | 'autoGratuity' | 'averageGrossPrice' | 'bankFees' | 'batchAmount' | 'batchDate' | 'batchNumber' | 'clockInTime' | 'clockOutTime' | 'country' | 'customerName' | 'date' | 'dateClose' | 'daypart' | 'debit' | 'debitReturns' | 'declaredTips' | 'department' | 'depositCurrency' | 'depositDate' | 'discountAmount' | 'ticketCount' | 'itemCount' | 'discover' | 'discoverReturns' | 'ebt' | 'ebtReturns' | 'employeeId' | 'employeeJob' | 'employeeName' | 'exemptTaxes' | 'grandTotal' | 'grossCashSales' | 'grossCashTips' | 'grossCreditCardTips' | 'grossCreditSales' | 'grossSales' | 'grossTips' | 'guestCount' | 'guestsVarLw' | 'guestsVarLwPct' | 'guestsVarLy' | 'guestsVarLyPct' | 'hour' | 'hoursWorked' | 'inclusiveTax' | 'itemName' | 'itemPrice' | 'locationCity' | 'locationId' | 'locationMid' | 'locationName' | 'locationState' | 'mastercard' | 'mcReturns' | 'modifierName' | 'modifierPrice' | 'modifierQuantity' | 'netSales' | 'netTaxCollected' | 'netTips' | 'numberOfGuests' | 'orderType' | 'paymentType' | 'payrollId' | 'quantity' | 'referenceNumber' | 'refundAmount' | 'refundedTaxAmount' | 'revenueCenter' | 'revenueClass' | 'salesVarLw' | 'salesVarLwPct' | 'salesVarLy' | 'salesVarLyPct' | 'salesMixByPct' | 'salesPerGuest' | 'salesPerGuestLw' | 'salesPerGuestLy' | 'scheduledShiftEnd' | 'scheduledShiftStart' | 'settlementBatchDate' | 'shiftDurationHrs' | 'subtotal' | 'taxCollected' | 'taxName' | 'taxRate' | 'taxableSales' | 'ticketClosed' | 'ticketFee' | 'ticketNumber' | 'ticketOpen' | 'ticketTotal' | 'timeOpenMins' | 'tipPct' | 'tipReduction' | 'tipShare' | 'tips' | 'tipsPerHour' | 'totalCollected' | 'totalItemSales' | 'totalModifierSales' | 'totalReturns' | 'totalSales' | 'totalTips' | 'transactionDate' | 'transactionType' | 'untaxedSales' | 'visa' | 'visaReturns' | 'paymentsCount' | 'paymentsAmount' | 'paymentsTotal' | 'refundVoidDescription' | 'refundVoidCount' | 'refundVoidAmount' | 'refundVoidPctSales' | 'discountName' | 'tickets' | 'guests' | 'ticketAverage' | 'guestAverage' | 'net' | 'salePaymentType' | 'status';
1
+ type ReportColumnKey = 'fifteenMinInterval' | 'adjustedTips' | 'advantageProgram' | 'amex' | 'amexReturns' | 'attachRate' | 'autoGratuity' | 'averageGrossPrice' | 'bankFees' | 'batchAmount' | 'batchDate' | 'batchNumber' | 'clockInTime' | 'clockOutTime' | 'country' | 'customerName' | 'date' | 'dateClose' | 'daypart' | 'debit' | 'debitReturns' | 'declaredTips' | 'department' | 'depositCurrency' | 'depositDate' | 'discountAmount' | 'ticketCount' | 'itemCount' | 'discover' | 'discoverReturns' | 'ebt' | 'ebtReturns' | 'employeeId' | 'employeeJob' | 'employeeName' | 'exemptTaxes' | 'grandTotal' | 'grossCashSales' | 'grossCashTips' | 'grossCreditCardTips' | 'grossCreditSales' | 'grossSales' | 'grossTips' | 'guestCount' | 'guestsVarLw' | 'guestsVarLwPct' | 'guestsVarLy' | 'guestsVarLyPct' | 'hour' | 'hoursWorked' | 'inclusiveTax' | 'itemName' | 'itemPrice' | 'locationCity' | 'locationId' | 'locationMid' | 'locationName' | 'locationState' | 'mastercard' | 'mcReturns' | 'modifierName' | 'modifierPrice' | 'modifierQuantity' | 'netSales' | 'netTaxCollected' | 'netTips' | 'numberOfGuests' | 'orderType' | 'paymentType' | 'payrollId' | 'quantity' | 'referenceNumber' | 'refundAmount' | 'refundedTaxAmount' | 'revenueCenter' | 'revenueClass' | 'salesVarLw' | 'salesVarLwPct' | 'salesVarLy' | 'salesVarLyPct' | 'salesMixByPct' | 'salesPerGuest' | 'salesPerGuestLw' | 'salesPerGuestLy' | 'scheduledShiftEnd' | 'scheduledShiftStart' | 'settlementBatchDate' | 'shiftDurationHrs' | 'subtotal' | 'taxCollected' | 'taxName' | 'taxRate' | 'taxableSales' | 'ticketClosed' | 'ticketFee' | 'ticketNumber' | 'ticketOpen' | 'ticketTotal' | 'timeOpenMins' | 'tipPct' | 'tipReduction' | 'tipShare' | 'tips' | 'tipsPerHour' | 'totalCollected' | 'totalItemSales' | 'totalModifierSales' | 'totalReturns' | 'totalSales' | 'totalTips' | 'transactionDate' | 'transactionType' | 'untaxedSales' | 'visa' | 'visaReturns' | 'paymentsCount' | 'paymentsAmount' | 'paymentsTotal' | 'refundVoidDescription' | 'refundVoidCount' | 'refundVoidAmount' | 'refundVoidPctSales' | 'discountName' | 'tickets' | 'guests' | 'ticketAverage' | 'guestAverage' | 'net' | 'salePaymentType' | 'type' | 'status';
2
2
  interface ColumnMetadata {
3
3
  titleKey: string;
4
4
  shortTitleKey: string;
5
- infoTextKey: string;
5
+ infoTextKey?: string;
6
6
  }
7
7
  declare const COLUMN_REGISTRY: {
8
8
  readonly fifteenMinInterval: {
@@ -655,6 +655,10 @@ declare const COLUMN_REGISTRY: {
655
655
  readonly shortTitleKey: "common.report-col.net.short";
656
656
  readonly infoTextKey: "common.report-col.net.info";
657
657
  };
658
+ readonly type: {
659
+ readonly titleKey: "common.report-col.type";
660
+ readonly shortTitleKey: "common.report-col.type.short";
661
+ };
658
662
  };
659
663
  declare function getColumnMetadata(key: ReportColumnKey): {
660
664
  readonly titleKey: "common.report-col.fifteen-min-interval";
@@ -1176,6 +1180,9 @@ declare function getColumnMetadata(key: ReportColumnKey): {
1176
1180
  readonly titleKey: "common.report-col.net";
1177
1181
  readonly shortTitleKey: "common.report-col.net.short";
1178
1182
  readonly infoTextKey: "common.report-col.net.info";
1183
+ } | {
1184
+ readonly titleKey: "common.report-col.type";
1185
+ readonly shortTitleKey: "common.report-col.type.short";
1179
1186
  };
1180
1187
  declare function getColumnExportHeaderLabel(colTitle: string, groupTitle: string | null): string;
1181
1188
 
@@ -1348,6 +1355,14 @@ declare const dailySalesTaxesConfig: {
1348
1355
  readonly hasFooter: true;
1349
1356
  };
1350
1357
 
1358
+ type DailySalesCacheField = 'name' | 'amount';
1359
+ declare const dailySalesCacheConfig: {
1360
+ readonly fields: Record<DailySalesCacheField, ColumnPresentationConfig<DailySalesCacheField>>;
1361
+ readonly availableColumns: ["name", "amount"];
1362
+ readonly defaultVisibleColumns: ["name", "amount"];
1363
+ readonly hasFooter: true;
1364
+ };
1365
+
1351
1366
  type EmployeeTimecardField = 'locationId' | 'locationName' | 'businessDate' | 'employeeName' | 'isActive' | 'lookup' | 'payrollCode' | 'jobName' | 'isBreak' | 'startTime' | 'endTime' | 'shiftHours';
1352
1367
  declare const employeeTimecardConfig: {
1353
1368
  readonly fields: Record<EmployeeTimecardField, ColumnPresentationConfig<EmployeeTimecardField>>;
@@ -1413,4 +1428,4 @@ declare const getReportFormattingLocaleOptions: (locations: {
1413
1428
  }[]) => LocaleOption[];
1414
1429
  declare const formatFieldValue: (value: unknown, type: FieldType, localeOptions: LocaleOption, fullRecord: Record<string, unknown> | null | undefined, fieldConfig?: ColumnPresentationConfig) => string;
1415
1430
 
1416
- export { COLUMN_REGISTRY, type CalculateReportTotalsOptions, type ColumnAlignment, type ColumnGroupConfig, type ColumnMetadata, type ColumnPresentationConfig, type DailySalesDiscountsField, type DailySalesField, type DailySalesLiveField, type DailySalesPaymentsField, type DailySalesRefundsVoidsField, type DailySalesTaxesField, type DailySalesTrendsField, type EmployeeTimecardField, type FieldType, type FooterCalculation, type FooterCalculationType, type FormatDateOptions, type FormatMoneyOptions, type FormatNumberOptions, type FormatTimeOptions, type ItemTaxField, type LocaleOption, type ModifierMixField, type ProductMixField, Report, type ReportColumnKey, type ReportConfig, type ReportType, type SalesByItemDetailField, type SalesSummaryField, type TicketLiveField, type TicketSummaryField, type TimeFormat, calculateFieldTotal, calculateReportTotals, dailySalesConfig, dailySalesDiscountsConfig, dailySalesLiveConfig, dailySalesPaymentsConfig, dailySalesRefundsVoidsConfig, dailySalesTaxesConfig, dailySalesTrendsConfig, employeeTimecardConfig, formatDate, formatFieldValue, formatFixedNumber, formatInteger, formatMoney, formatMoneyWithoutSymbol, formatPercent, formatString, formatTime, getColumnAlignment, getColumnExportHeaderLabel, getColumnMetadata, getDateToFormat, getNumberToFormat, getReportConfig, getReportFormattingLocaleOptions, isNumericType, itemTaxConfig, modifierMixConfig, productMixConfig, salesByItemDetailConfig, salesSummaryConfig, ticketLiveConfig, ticketSummaryConfig };
1431
+ export { COLUMN_REGISTRY, type CalculateReportTotalsOptions, type ColumnAlignment, type ColumnGroupConfig, type ColumnMetadata, type ColumnPresentationConfig, type DailySalesCacheField, type DailySalesDiscountsField, type DailySalesField, type DailySalesLiveField, type DailySalesPaymentsField, type DailySalesRefundsVoidsField, type DailySalesTaxesField, type DailySalesTrendsField, type EmployeeTimecardField, type FieldType, type FooterCalculation, type FooterCalculationType, type FormatDateOptions, type FormatMoneyOptions, type FormatNumberOptions, type FormatTimeOptions, type ItemTaxField, type LocaleOption, type ModifierMixField, type ProductMixField, Report, type ReportColumnKey, type ReportConfig, type ReportType, type SalesByItemDetailField, type SalesSummaryField, type TicketLiveField, type TicketSummaryField, type TimeFormat, calculateFieldTotal, calculateReportTotals, dailySalesCacheConfig, dailySalesConfig, dailySalesDiscountsConfig, dailySalesLiveConfig, dailySalesPaymentsConfig, dailySalesRefundsVoidsConfig, dailySalesTaxesConfig, dailySalesTrendsConfig, employeeTimecardConfig, formatDate, formatFieldValue, formatFixedNumber, formatInteger, formatMoney, formatMoneyWithoutSymbol, formatPercent, formatString, formatTime, getColumnAlignment, getColumnExportHeaderLabel, getColumnMetadata, getDateToFormat, getNumberToFormat, getReportConfig, getReportFormattingLocaleOptions, isNumericType, itemTaxConfig, modifierMixConfig, productMixConfig, salesByItemDetailConfig, salesSummaryConfig, ticketLiveConfig, ticketSummaryConfig };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- type ReportColumnKey = 'fifteenMinInterval' | 'adjustedTips' | 'advantageProgram' | 'amex' | 'amexReturns' | 'attachRate' | 'autoGratuity' | 'averageGrossPrice' | 'bankFees' | 'batchAmount' | 'batchDate' | 'batchNumber' | 'clockInTime' | 'clockOutTime' | 'country' | 'customerName' | 'date' | 'dateClose' | 'daypart' | 'debit' | 'debitReturns' | 'declaredTips' | 'department' | 'depositCurrency' | 'depositDate' | 'discountAmount' | 'ticketCount' | 'itemCount' | 'discover' | 'discoverReturns' | 'ebt' | 'ebtReturns' | 'employeeId' | 'employeeJob' | 'employeeName' | 'exemptTaxes' | 'grandTotal' | 'grossCashSales' | 'grossCashTips' | 'grossCreditCardTips' | 'grossCreditSales' | 'grossSales' | 'grossTips' | 'guestCount' | 'guestsVarLw' | 'guestsVarLwPct' | 'guestsVarLy' | 'guestsVarLyPct' | 'hour' | 'hoursWorked' | 'inclusiveTax' | 'itemName' | 'itemPrice' | 'locationCity' | 'locationId' | 'locationMid' | 'locationName' | 'locationState' | 'mastercard' | 'mcReturns' | 'modifierName' | 'modifierPrice' | 'modifierQuantity' | 'netSales' | 'netTaxCollected' | 'netTips' | 'numberOfGuests' | 'orderType' | 'paymentType' | 'payrollId' | 'quantity' | 'referenceNumber' | 'refundAmount' | 'refundedTaxAmount' | 'revenueCenter' | 'revenueClass' | 'salesVarLw' | 'salesVarLwPct' | 'salesVarLy' | 'salesVarLyPct' | 'salesMixByPct' | 'salesPerGuest' | 'salesPerGuestLw' | 'salesPerGuestLy' | 'scheduledShiftEnd' | 'scheduledShiftStart' | 'settlementBatchDate' | 'shiftDurationHrs' | 'subtotal' | 'taxCollected' | 'taxName' | 'taxRate' | 'taxableSales' | 'ticketClosed' | 'ticketFee' | 'ticketNumber' | 'ticketOpen' | 'ticketTotal' | 'timeOpenMins' | 'tipPct' | 'tipReduction' | 'tipShare' | 'tips' | 'tipsPerHour' | 'totalCollected' | 'totalItemSales' | 'totalModifierSales' | 'totalReturns' | 'totalSales' | 'totalTips' | 'transactionDate' | 'transactionType' | 'untaxedSales' | 'visa' | 'visaReturns' | 'paymentsCount' | 'paymentsAmount' | 'paymentsTotal' | 'refundVoidDescription' | 'refundVoidCount' | 'refundVoidAmount' | 'refundVoidPctSales' | 'discountName' | 'tickets' | 'guests' | 'ticketAverage' | 'guestAverage' | 'net' | 'salePaymentType' | 'status';
1
+ type ReportColumnKey = 'fifteenMinInterval' | 'adjustedTips' | 'advantageProgram' | 'amex' | 'amexReturns' | 'attachRate' | 'autoGratuity' | 'averageGrossPrice' | 'bankFees' | 'batchAmount' | 'batchDate' | 'batchNumber' | 'clockInTime' | 'clockOutTime' | 'country' | 'customerName' | 'date' | 'dateClose' | 'daypart' | 'debit' | 'debitReturns' | 'declaredTips' | 'department' | 'depositCurrency' | 'depositDate' | 'discountAmount' | 'ticketCount' | 'itemCount' | 'discover' | 'discoverReturns' | 'ebt' | 'ebtReturns' | 'employeeId' | 'employeeJob' | 'employeeName' | 'exemptTaxes' | 'grandTotal' | 'grossCashSales' | 'grossCashTips' | 'grossCreditCardTips' | 'grossCreditSales' | 'grossSales' | 'grossTips' | 'guestCount' | 'guestsVarLw' | 'guestsVarLwPct' | 'guestsVarLy' | 'guestsVarLyPct' | 'hour' | 'hoursWorked' | 'inclusiveTax' | 'itemName' | 'itemPrice' | 'locationCity' | 'locationId' | 'locationMid' | 'locationName' | 'locationState' | 'mastercard' | 'mcReturns' | 'modifierName' | 'modifierPrice' | 'modifierQuantity' | 'netSales' | 'netTaxCollected' | 'netTips' | 'numberOfGuests' | 'orderType' | 'paymentType' | 'payrollId' | 'quantity' | 'referenceNumber' | 'refundAmount' | 'refundedTaxAmount' | 'revenueCenter' | 'revenueClass' | 'salesVarLw' | 'salesVarLwPct' | 'salesVarLy' | 'salesVarLyPct' | 'salesMixByPct' | 'salesPerGuest' | 'salesPerGuestLw' | 'salesPerGuestLy' | 'scheduledShiftEnd' | 'scheduledShiftStart' | 'settlementBatchDate' | 'shiftDurationHrs' | 'subtotal' | 'taxCollected' | 'taxName' | 'taxRate' | 'taxableSales' | 'ticketClosed' | 'ticketFee' | 'ticketNumber' | 'ticketOpen' | 'ticketTotal' | 'timeOpenMins' | 'tipPct' | 'tipReduction' | 'tipShare' | 'tips' | 'tipsPerHour' | 'totalCollected' | 'totalItemSales' | 'totalModifierSales' | 'totalReturns' | 'totalSales' | 'totalTips' | 'transactionDate' | 'transactionType' | 'untaxedSales' | 'visa' | 'visaReturns' | 'paymentsCount' | 'paymentsAmount' | 'paymentsTotal' | 'refundVoidDescription' | 'refundVoidCount' | 'refundVoidAmount' | 'refundVoidPctSales' | 'discountName' | 'tickets' | 'guests' | 'ticketAverage' | 'guestAverage' | 'net' | 'salePaymentType' | 'type' | 'status';
2
2
  interface ColumnMetadata {
3
3
  titleKey: string;
4
4
  shortTitleKey: string;
5
- infoTextKey: string;
5
+ infoTextKey?: string;
6
6
  }
7
7
  declare const COLUMN_REGISTRY: {
8
8
  readonly fifteenMinInterval: {
@@ -655,6 +655,10 @@ declare const COLUMN_REGISTRY: {
655
655
  readonly shortTitleKey: "common.report-col.net.short";
656
656
  readonly infoTextKey: "common.report-col.net.info";
657
657
  };
658
+ readonly type: {
659
+ readonly titleKey: "common.report-col.type";
660
+ readonly shortTitleKey: "common.report-col.type.short";
661
+ };
658
662
  };
659
663
  declare function getColumnMetadata(key: ReportColumnKey): {
660
664
  readonly titleKey: "common.report-col.fifteen-min-interval";
@@ -1176,6 +1180,9 @@ declare function getColumnMetadata(key: ReportColumnKey): {
1176
1180
  readonly titleKey: "common.report-col.net";
1177
1181
  readonly shortTitleKey: "common.report-col.net.short";
1178
1182
  readonly infoTextKey: "common.report-col.net.info";
1183
+ } | {
1184
+ readonly titleKey: "common.report-col.type";
1185
+ readonly shortTitleKey: "common.report-col.type.short";
1179
1186
  };
1180
1187
  declare function getColumnExportHeaderLabel(colTitle: string, groupTitle: string | null): string;
1181
1188
 
@@ -1348,6 +1355,14 @@ declare const dailySalesTaxesConfig: {
1348
1355
  readonly hasFooter: true;
1349
1356
  };
1350
1357
 
1358
+ type DailySalesCacheField = 'name' | 'amount';
1359
+ declare const dailySalesCacheConfig: {
1360
+ readonly fields: Record<DailySalesCacheField, ColumnPresentationConfig<DailySalesCacheField>>;
1361
+ readonly availableColumns: ["name", "amount"];
1362
+ readonly defaultVisibleColumns: ["name", "amount"];
1363
+ readonly hasFooter: true;
1364
+ };
1365
+
1351
1366
  type EmployeeTimecardField = 'locationId' | 'locationName' | 'businessDate' | 'employeeName' | 'isActive' | 'lookup' | 'payrollCode' | 'jobName' | 'isBreak' | 'startTime' | 'endTime' | 'shiftHours';
1352
1367
  declare const employeeTimecardConfig: {
1353
1368
  readonly fields: Record<EmployeeTimecardField, ColumnPresentationConfig<EmployeeTimecardField>>;
@@ -1413,4 +1428,4 @@ declare const getReportFormattingLocaleOptions: (locations: {
1413
1428
  }[]) => LocaleOption[];
1414
1429
  declare const formatFieldValue: (value: unknown, type: FieldType, localeOptions: LocaleOption, fullRecord: Record<string, unknown> | null | undefined, fieldConfig?: ColumnPresentationConfig) => string;
1415
1430
 
1416
- export { COLUMN_REGISTRY, type CalculateReportTotalsOptions, type ColumnAlignment, type ColumnGroupConfig, type ColumnMetadata, type ColumnPresentationConfig, type DailySalesDiscountsField, type DailySalesField, type DailySalesLiveField, type DailySalesPaymentsField, type DailySalesRefundsVoidsField, type DailySalesTaxesField, type DailySalesTrendsField, type EmployeeTimecardField, type FieldType, type FooterCalculation, type FooterCalculationType, type FormatDateOptions, type FormatMoneyOptions, type FormatNumberOptions, type FormatTimeOptions, type ItemTaxField, type LocaleOption, type ModifierMixField, type ProductMixField, Report, type ReportColumnKey, type ReportConfig, type ReportType, type SalesByItemDetailField, type SalesSummaryField, type TicketLiveField, type TicketSummaryField, type TimeFormat, calculateFieldTotal, calculateReportTotals, dailySalesConfig, dailySalesDiscountsConfig, dailySalesLiveConfig, dailySalesPaymentsConfig, dailySalesRefundsVoidsConfig, dailySalesTaxesConfig, dailySalesTrendsConfig, employeeTimecardConfig, formatDate, formatFieldValue, formatFixedNumber, formatInteger, formatMoney, formatMoneyWithoutSymbol, formatPercent, formatString, formatTime, getColumnAlignment, getColumnExportHeaderLabel, getColumnMetadata, getDateToFormat, getNumberToFormat, getReportConfig, getReportFormattingLocaleOptions, isNumericType, itemTaxConfig, modifierMixConfig, productMixConfig, salesByItemDetailConfig, salesSummaryConfig, ticketLiveConfig, ticketSummaryConfig };
1431
+ export { COLUMN_REGISTRY, type CalculateReportTotalsOptions, type ColumnAlignment, type ColumnGroupConfig, type ColumnMetadata, type ColumnPresentationConfig, type DailySalesCacheField, type DailySalesDiscountsField, type DailySalesField, type DailySalesLiveField, type DailySalesPaymentsField, type DailySalesRefundsVoidsField, type DailySalesTaxesField, type DailySalesTrendsField, type EmployeeTimecardField, type FieldType, type FooterCalculation, type FooterCalculationType, type FormatDateOptions, type FormatMoneyOptions, type FormatNumberOptions, type FormatTimeOptions, type ItemTaxField, type LocaleOption, type ModifierMixField, type ProductMixField, Report, type ReportColumnKey, type ReportConfig, type ReportType, type SalesByItemDetailField, type SalesSummaryField, type TicketLiveField, type TicketSummaryField, type TimeFormat, calculateFieldTotal, calculateReportTotals, dailySalesCacheConfig, dailySalesConfig, dailySalesDiscountsConfig, dailySalesLiveConfig, dailySalesPaymentsConfig, dailySalesRefundsVoidsConfig, dailySalesTaxesConfig, dailySalesTrendsConfig, employeeTimecardConfig, formatDate, formatFieldValue, formatFixedNumber, formatInteger, formatMoney, formatMoneyWithoutSymbol, formatPercent, formatString, formatTime, getColumnAlignment, getColumnExportHeaderLabel, getColumnMetadata, getDateToFormat, getNumberToFormat, getReportConfig, getReportFormattingLocaleOptions, isNumericType, itemTaxConfig, modifierMixConfig, productMixConfig, salesByItemDetailConfig, salesSummaryConfig, ticketLiveConfig, ticketSummaryConfig };
package/dist/index.js CHANGED
@@ -197,7 +197,7 @@ var FIELDS3 = {
197
197
  footerCalculation: { type: "sum" }
198
198
  },
199
199
  locationName: { type: "string", size: 240, columnKey: "locationName" },
200
- orderNumber: { type: "number", columnKey: "ticketNumber", footerCalculation: { type: "count" } },
200
+ orderNumber: { type: "number", columnKey: "ticketNumber", footerCalculation: { type: "none" } },
201
201
  businessDate: { type: "date", columnKey: "date" },
202
202
  ticketOpenedAt: { type: "time", columnKey: "ticketOpen" },
203
203
  ticketClosedAt: { type: "time", columnKey: "ticketClosed" },
@@ -282,8 +282,7 @@ var FIELDS4 = {
282
282
  locationName: { type: "string", columnKey: "locationName" },
283
283
  orderNumber: {
284
284
  type: "number",
285
- columnKey: "ticketNumber",
286
- footerCalculation: { type: "count" }
285
+ columnKey: "ticketNumber"
287
286
  },
288
287
  dateOpen: { type: "string", columnKey: "date" },
289
288
  timeOpen: { type: "string", columnKey: "ticketOpen" },
@@ -1360,6 +1359,10 @@ var COLUMN_REGISTRY = {
1360
1359
  titleKey: "common.report-col.net",
1361
1360
  shortTitleKey: "common.report-col.net.short",
1362
1361
  infoTextKey: "common.report-col.net.info"
1362
+ },
1363
+ type: {
1364
+ titleKey: "common.report-col.type",
1365
+ shortTitleKey: "common.report-col.type.short"
1363
1366
  }
1364
1367
  };
1365
1368
  function getColumnMetadata(key) {
@@ -1506,6 +1509,18 @@ var dailySalesTaxesConfig = {
1506
1509
  hasFooter: true
1507
1510
  };
1508
1511
 
1512
+ // src/reports/dailySalesCache.ts
1513
+ var FIELDS16 = {
1514
+ name: { type: "string", columnKey: "type", size: FIRST_COLUMN_WIDTH },
1515
+ amount: { type: "money", columnKey: "paymentsAmount", footerCalculation: { type: "sum" } }
1516
+ };
1517
+ var dailySalesCacheConfig = {
1518
+ fields: FIELDS16,
1519
+ availableColumns: ["name", "amount"],
1520
+ defaultVisibleColumns: ["name", "amount"],
1521
+ hasFooter: true
1522
+ };
1523
+
1509
1524
  // src/formatting.ts
1510
1525
  var dateFormatterCache = /* @__PURE__ */ new Map();
1511
1526
  var timeFormatterCache = /* @__PURE__ */ new Map();
@@ -1649,6 +1664,7 @@ export {
1649
1664
  Report,
1650
1665
  calculateFieldTotal,
1651
1666
  calculateReportTotals,
1667
+ dailySalesCacheConfig,
1652
1668
  dailySalesConfig,
1653
1669
  dailySalesDiscountsConfig,
1654
1670
  dailySalesLiveConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harbortouch/skytab-analytics-report-utils",
3
- "version": "0.12.2",
3
+ "version": "0.13.1",
4
4
  "description": "Centralized report column presentation configuration for SkyTab Analytics",
5
5
  "engines": {
6
6
  "node": ">=22.6.0",