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

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,
@@ -1421,6 +1422,10 @@ var COLUMN_REGISTRY = {
1421
1422
  titleKey: "common.report-col.net",
1422
1423
  shortTitleKey: "common.report-col.net.short",
1423
1424
  infoTextKey: "common.report-col.net.info"
1425
+ },
1426
+ type: {
1427
+ titleKey: "common.report-col.type",
1428
+ shortTitleKey: "common.report-col.type.short"
1424
1429
  }
1425
1430
  };
1426
1431
  function getColumnMetadata(key) {
@@ -1567,6 +1572,18 @@ var dailySalesTaxesConfig = {
1567
1572
  hasFooter: true
1568
1573
  };
1569
1574
 
1575
+ // src/reports/dailySalesCache.ts
1576
+ var FIELDS16 = {
1577
+ name: { type: "string", columnKey: "type", size: FIRST_COLUMN_WIDTH },
1578
+ amount: { type: "money", columnKey: "paymentsAmount", footerCalculation: { type: "sum" } }
1579
+ };
1580
+ var dailySalesCacheConfig = {
1581
+ fields: FIELDS16,
1582
+ availableColumns: ["name", "amount"],
1583
+ defaultVisibleColumns: ["name", "amount"],
1584
+ hasFooter: true
1585
+ };
1586
+
1570
1587
  // src/formatting.ts
1571
1588
  var dateFormatterCache = /* @__PURE__ */ new Map();
1572
1589
  var timeFormatterCache = /* @__PURE__ */ new Map();
@@ -1711,6 +1728,7 @@ var formatFieldValue = (value, type, localeOptions, fullRecord, fieldConfig = DE
1711
1728
  Report,
1712
1729
  calculateFieldTotal,
1713
1730
  calculateReportTotals,
1731
+ dailySalesCacheConfig,
1714
1732
  dailySalesConfig,
1715
1733
  dailySalesDiscountsConfig,
1716
1734
  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
@@ -1360,6 +1360,10 @@ var COLUMN_REGISTRY = {
1360
1360
  titleKey: "common.report-col.net",
1361
1361
  shortTitleKey: "common.report-col.net.short",
1362
1362
  infoTextKey: "common.report-col.net.info"
1363
+ },
1364
+ type: {
1365
+ titleKey: "common.report-col.type",
1366
+ shortTitleKey: "common.report-col.type.short"
1363
1367
  }
1364
1368
  };
1365
1369
  function getColumnMetadata(key) {
@@ -1506,6 +1510,18 @@ var dailySalesTaxesConfig = {
1506
1510
  hasFooter: true
1507
1511
  };
1508
1512
 
1513
+ // src/reports/dailySalesCache.ts
1514
+ var FIELDS16 = {
1515
+ name: { type: "string", columnKey: "type", size: FIRST_COLUMN_WIDTH },
1516
+ amount: { type: "money", columnKey: "paymentsAmount", footerCalculation: { type: "sum" } }
1517
+ };
1518
+ var dailySalesCacheConfig = {
1519
+ fields: FIELDS16,
1520
+ availableColumns: ["name", "amount"],
1521
+ defaultVisibleColumns: ["name", "amount"],
1522
+ hasFooter: true
1523
+ };
1524
+
1509
1525
  // src/formatting.ts
1510
1526
  var dateFormatterCache = /* @__PURE__ */ new Map();
1511
1527
  var timeFormatterCache = /* @__PURE__ */ new Map();
@@ -1649,6 +1665,7 @@ export {
1649
1665
  Report,
1650
1666
  calculateFieldTotal,
1651
1667
  calculateReportTotals,
1668
+ dailySalesCacheConfig,
1652
1669
  dailySalesConfig,
1653
1670
  dailySalesDiscountsConfig,
1654
1671
  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.0",
4
4
  "description": "Centralized report column presentation configuration for SkyTab Analytics",
5
5
  "engines": {
6
6
  "node": ">=22.6.0",