@rebuy/rebuy 2.27.0 → 2.29.0-rc.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.
Files changed (107) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1416 -370
  4. package/dist/index.js.map +4 -4
  5. package/dist/index.mjs +1415 -369
  6. package/dist/index.mjs.map +4 -4
  7. package/dist/pricing/amountToCents.d.ts +10 -0
  8. package/dist/pricing/amountToCents.d.ts.map +1 -0
  9. package/dist/pricing/computeCompareAtPrice.d.ts +10 -0
  10. package/dist/pricing/computeCompareAtPrice.d.ts.map +1 -0
  11. package/dist/pricing/computeDisplayPrice.d.ts +17 -0
  12. package/dist/pricing/computeDisplayPrice.d.ts.map +1 -0
  13. package/dist/pricing/currencyDecimals.d.ts +12 -0
  14. package/dist/pricing/currencyDecimals.d.ts.map +1 -0
  15. package/dist/pricing/index.d.ts +7 -0
  16. package/dist/pricing/index.d.ts.map +1 -0
  17. package/dist/pricing/index.js +109 -0
  18. package/dist/pricing/index.js.map +7 -0
  19. package/dist/pricing/index.mjs +86 -0
  20. package/dist/pricing/index.mjs.map +7 -0
  21. package/dist/pricing/priceVariant.d.ts +10 -0
  22. package/dist/pricing/priceVariant.d.ts.map +1 -0
  23. package/dist/pricing/types.d.ts +30 -0
  24. package/dist/pricing/types.d.ts.map +1 -0
  25. package/dist/schema/checkout-and-beyond/constants.js +4 -2
  26. package/dist/schema/checkout-and-beyond/constants.js.map +2 -2
  27. package/dist/schema/checkout-and-beyond/constants.mjs +4 -2
  28. package/dist/schema/checkout-and-beyond/constants.mjs.map +2 -2
  29. package/dist/schema/checkout-and-beyond/index.js +320 -96
  30. package/dist/schema/checkout-and-beyond/index.js.map +4 -4
  31. package/dist/schema/checkout-and-beyond/index.mjs +320 -96
  32. package/dist/schema/checkout-and-beyond/index.mjs.map +4 -4
  33. package/dist/schema/widget-data.js +172 -152
  34. package/dist/schema/widget-data.js.map +4 -4
  35. package/dist/schema/widget-data.mjs +172 -152
  36. package/dist/schema/widget-data.mjs.map +4 -4
  37. package/dist/schema/widgetData.d.ts +6 -3
  38. package/dist/schema/widgetData.d.ts.map +1 -1
  39. package/dist/schema/widgets/checkout-and-beyond/banner.d.ts +2 -1
  40. package/dist/schema/widgets/checkout-and-beyond/banner.d.ts.map +1 -1
  41. package/dist/schema/widgets/checkout-and-beyond/button.d.ts +1 -1
  42. package/dist/schema/widgets/checkout-and-beyond/carousel.d.ts +2 -1
  43. package/dist/schema/widgets/checkout-and-beyond/carousel.d.ts.map +1 -1
  44. package/dist/schema/widgets/checkout-and-beyond/cartLine.d.ts +2 -1
  45. package/dist/schema/widgets/checkout-and-beyond/cartLine.d.ts.map +1 -1
  46. package/dist/schema/widgets/checkout-and-beyond/common.d.ts +7 -5
  47. package/dist/schema/widgets/checkout-and-beyond/common.d.ts.map +1 -1
  48. package/dist/schema/widgets/checkout-and-beyond/dataSource.d.ts +1 -0
  49. package/dist/schema/widgets/checkout-and-beyond/dataSource.d.ts.map +1 -1
  50. package/dist/schema/widgets/checkout-and-beyond/discount.d.ts +30 -0
  51. package/dist/schema/widgets/checkout-and-beyond/discount.d.ts.map +1 -0
  52. package/dist/schema/widgets/checkout-and-beyond/image.d.ts +2 -1
  53. package/dist/schema/widgets/checkout-and-beyond/image.d.ts.map +1 -1
  54. package/dist/schema/widgets/checkout-and-beyond/index.d.ts +2 -0
  55. package/dist/schema/widgets/checkout-and-beyond/index.d.ts.map +1 -1
  56. package/dist/schema/widgets/checkout-and-beyond/layout.d.ts +2 -1
  57. package/dist/schema/widgets/checkout-and-beyond/layout.d.ts.map +1 -1
  58. package/dist/schema/widgets/checkout-and-beyond/offerLabels.d.ts +206 -0
  59. package/dist/schema/widgets/checkout-and-beyond/offerLabels.d.ts.map +1 -0
  60. package/dist/schema/widgets/checkout-and-beyond/offers.d.ts +2 -1
  61. package/dist/schema/widgets/checkout-and-beyond/offers.d.ts.map +1 -1
  62. package/dist/schema/widgets/checkout-and-beyond/progressBar.d.ts +2 -1
  63. package/dist/schema/widgets/checkout-and-beyond/progressBar.d.ts.map +1 -1
  64. package/dist/schema/widgets/checkout-and-beyond/regex.d.ts +13 -1
  65. package/dist/schema/widgets/checkout-and-beyond/regex.d.ts.map +1 -1
  66. package/dist/schema/widgets/checkout-and-beyond/root.d.ts +2 -1
  67. package/dist/schema/widgets/checkout-and-beyond/root.d.ts.map +1 -1
  68. package/dist/schema/widgets/checkout-and-beyond/shared.d.ts +2 -1
  69. package/dist/schema/widgets/checkout-and-beyond/shared.d.ts.map +1 -1
  70. package/dist/schema/widgets/checkout-and-beyond/text.d.ts +2 -1
  71. package/dist/schema/widgets/checkout-and-beyond/text.d.ts.map +1 -1
  72. package/dist/schema/widgets/checkout-and-beyond/utils.d.ts +2 -0
  73. package/dist/schema/widgets/checkout-and-beyond/utils.d.ts.map +1 -1
  74. package/dist/schema/widgets/contentBlock.d.ts +2 -1
  75. package/dist/schema/widgets/contentBlock.d.ts.map +1 -1
  76. package/dist/schema/widgets/lineItemEditor.d.ts +2 -1
  77. package/dist/schema/widgets/lineItemEditor.d.ts.map +1 -1
  78. package/dist/schema/widgets/rebuyButton.d.ts +2 -1
  79. package/dist/schema/widgets/rebuyButton.d.ts.map +1 -1
  80. package/dist/server/dataSourceResults.d.ts +18 -0
  81. package/dist/server/dataSourceResults.d.ts.map +1 -0
  82. package/dist/server/index.d.ts +6 -2
  83. package/dist/server/index.d.ts.map +1 -1
  84. package/dist/server/index.js +1209 -435
  85. package/dist/server/index.js.map +4 -4
  86. package/dist/server/index.mjs +1209 -435
  87. package/dist/server/index.mjs.map +4 -4
  88. package/dist/server/userConfig.d.ts +8 -0
  89. package/dist/server/userConfig.d.ts.map +1 -0
  90. package/dist/server/widgetSettings.d.ts.map +1 -1
  91. package/dist/transforms/index.d.ts +4 -0
  92. package/dist/transforms/index.d.ts.map +1 -1
  93. package/dist/transforms/index.js +1068 -85
  94. package/dist/transforms/index.js.map +4 -4
  95. package/dist/transforms/index.mjs +1068 -85
  96. package/dist/transforms/index.mjs.map +4 -4
  97. package/dist/transforms/offerV1/buildOfferTemplate.d.ts +13 -0
  98. package/dist/transforms/offerV1/buildOfferTemplate.d.ts.map +1 -0
  99. package/dist/transforms/offerV1/convertOfferToV2.d.ts +18 -0
  100. package/dist/transforms/offerV1/convertOfferToV2.d.ts.map +1 -0
  101. package/dist/transforms/offerV1/offerCard.d.ts +17 -0
  102. package/dist/transforms/offerV1/offerCard.d.ts.map +1 -0
  103. package/dist/transforms/offerV1/offerTemplateSeed.d.ts +436 -0
  104. package/dist/transforms/offerV1/offerTemplateSeed.d.ts.map +1 -0
  105. package/dist/transforms/offerV1/types.d.ts +148 -0
  106. package/dist/transforms/offerV1/types.d.ts.map +1 -0
  107. package/package.json +6 -1
package/dist/index.d.ts CHANGED
@@ -5,5 +5,6 @@ export * from './geolocation';
5
5
  export * from './identity';
6
6
  export * from './schema';
7
7
  export * from './session';
8
+ export { buildOfferTemplate, type BuildOfferTemplateInput, convertOfferToV2, isOfferV1 } from './transforms';
8
9
  export * from './utilities';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAI1B,OAAO,EAAE,kBAAkB,EAAE,KAAK,uBAAuB,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC7G,cAAc,aAAa,CAAC"}