av6-utils 1.0.2 → 1.0.4

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.d.mts CHANGED
@@ -113,6 +113,7 @@ interface BillingCalcResult {
113
113
  children: ChildCalculated[];
114
114
  }
115
115
 
116
+ declare function applyRound(value: number, format: RoundFormat, precision?: number): number;
116
117
  /**
117
118
  * calculateBillingFromChildren (master-level additional discount applied AFTER child calculations)
118
119
  * - Child: item discount -> tax (INCLUSIVE/EXCLUSIVE/NONE) -> coPay -> patient line net + line rounding
@@ -135,4 +136,4 @@ declare function calculateSingleChild(it: ChildCalcInput, coPayMode: CoPayMode,
135
136
  */
136
137
  declare function findDifferences<T extends Record<string, any>>(obj1: T, obj2: T): CreateTransaction[];
137
138
 
138
- export { type AdditionalDiscountMode, type BillingCalcResult, type CalcOptions, type ChildCalcInput, type ChildCalculated, type CoPayMode, type CoPayType, type DiscountMode, type MasterAdditionalDiscount, type MasterCalculated, RoundFormat, type TaxMethod, calculateBillingFromChildren, calculateSingleChild, capitalizeFirstLetter, customOmit, findDifferences, getDynamicValue, getPattern, interpolate, objectTo2DArray, omitAudit, toIdValue, toNumberOrNull, toPickFields };
139
+ export { type AdditionalDiscountMode, type BillingCalcResult, type CalcOptions, type ChildCalcInput, type ChildCalculated, type CoPayMode, type CoPayType, type DiscountMode, type MasterAdditionalDiscount, type MasterCalculated, RoundFormat, type TaxMethod, applyRound, calculateBillingFromChildren, calculateSingleChild, capitalizeFirstLetter, customOmit, findDifferences, getDynamicValue, getPattern, interpolate, objectTo2DArray, omitAudit, toIdValue, toNumberOrNull, toPickFields };
package/dist/index.d.ts CHANGED
@@ -113,6 +113,7 @@ interface BillingCalcResult {
113
113
  children: ChildCalculated[];
114
114
  }
115
115
 
116
+ declare function applyRound(value: number, format: RoundFormat, precision?: number): number;
116
117
  /**
117
118
  * calculateBillingFromChildren (master-level additional discount applied AFTER child calculations)
118
119
  * - Child: item discount -> tax (INCLUSIVE/EXCLUSIVE/NONE) -> coPay -> patient line net + line rounding
@@ -135,4 +136,4 @@ declare function calculateSingleChild(it: ChildCalcInput, coPayMode: CoPayMode,
135
136
  */
136
137
  declare function findDifferences<T extends Record<string, any>>(obj1: T, obj2: T): CreateTransaction[];
137
138
 
138
- export { type AdditionalDiscountMode, type BillingCalcResult, type CalcOptions, type ChildCalcInput, type ChildCalculated, type CoPayMode, type CoPayType, type DiscountMode, type MasterAdditionalDiscount, type MasterCalculated, RoundFormat, type TaxMethod, calculateBillingFromChildren, calculateSingleChild, capitalizeFirstLetter, customOmit, findDifferences, getDynamicValue, getPattern, interpolate, objectTo2DArray, omitAudit, toIdValue, toNumberOrNull, toPickFields };
139
+ export { type AdditionalDiscountMode, type BillingCalcResult, type CalcOptions, type ChildCalcInput, type ChildCalculated, type CoPayMode, type CoPayType, type DiscountMode, type MasterAdditionalDiscount, type MasterCalculated, RoundFormat, type TaxMethod, applyRound, calculateBillingFromChildren, calculateSingleChild, capitalizeFirstLetter, customOmit, findDifferences, getDynamicValue, getPattern, interpolate, objectTo2DArray, omitAudit, toIdValue, toNumberOrNull, toPickFields };
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
23
  RoundFormat: () => RoundFormat,
24
+ applyRound: () => applyRound,
24
25
  calculateBillingFromChildren: () => calculateBillingFromChildren,
25
26
  calculateSingleChild: () => calculateSingleChild,
26
27
  capitalizeFirstLetter: () => capitalizeFirstLetter,
@@ -383,6 +384,7 @@ function findDifferences(obj1, obj2) {
383
384
  // Annotate the CommonJS export names for ESM import in node:
384
385
  0 && (module.exports = {
385
386
  RoundFormat,
387
+ applyRound,
386
388
  calculateBillingFromChildren,
387
389
  calculateSingleChild,
388
390
  capitalizeFirstLetter,
package/dist/index.mjs CHANGED
@@ -343,6 +343,7 @@ function findDifferences(obj1, obj2) {
343
343
  }
344
344
  export {
345
345
  RoundFormat,
346
+ applyRound,
346
347
  calculateBillingFromChildren,
347
348
  calculateSingleChild,
348
349
  capitalizeFirstLetter,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "av6-utils",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",