@rebuy/rebuy 3.34.0 → 3.36.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.
Files changed (51) hide show
  1. package/dist/index.cjs +1003 -801
  2. package/dist/index.mjs +1005 -803
  3. package/dist/schema/index.d.ts +8 -0
  4. package/dist/schema/postPurchaseGroup.d.ts +15 -0
  5. package/dist/schema/postPurchaseGroupCatalog.d.ts +56 -0
  6. package/dist/schema/postPurchaseOfferEligibility.d.ts +32 -0
  7. package/dist/schema/postPurchaseOfferPresentation.d.ts +386 -0
  8. package/dist/schema/postPurchaseProduct.d.ts +74 -24
  9. package/dist/schema/postPurchaseProductCalculation.d.ts +87 -0
  10. package/dist/schema/postPurchaseProductCollectionView.d.ts +724 -3
  11. package/dist/schema/postPurchaseProductDisplay.d.ts +41 -12
  12. package/dist/schema/postPurchaseProductSource.d.ts +10 -5
  13. package/dist/schema/postPurchaseProductView.d.ts +708 -0
  14. package/dist/schema/postPurchaseQuantity.d.ts +26 -0
  15. package/dist/schema/postPurchaseSubscriptionProduct.d.ts +74 -17
  16. package/dist/schema/postPurchaseVariantDefault.d.ts +17 -0
  17. package/dist/schema/postPurchaseVariantDefaultContext.d.ts +10 -0
  18. package/dist/server/__fixtures__/postPurchaseGroup.d.ts +78 -0
  19. package/dist/server/classifyPostPurchaseOffer.d.ts +3 -0
  20. package/dist/server/createPostPurchaseOrderAttributes.d.ts +9 -0
  21. package/dist/server/index.cjs +1131 -210
  22. package/dist/server/index.d.ts +20 -2
  23. package/dist/server/index.mjs +1131 -210
  24. package/dist/server/postPurchaseMemberEligibility.d.ts +7 -0
  25. package/dist/server/postPurchaseOfferCopy.d.ts +3 -0
  26. package/dist/server/postPurchaseProductDisplay.d.ts +38 -6
  27. package/dist/server/postPurchaseProductEligibility.d.ts +3 -7
  28. package/dist/server/postPurchaseSubscriptionEligibility.d.ts +2 -3
  29. package/dist/server/prepareNormalizedSubscription.d.ts +2 -3
  30. package/dist/server/preparePostPurchaseAdmissionView.d.ts +418 -0
  31. package/dist/server/preparePostPurchaseCollectionGroup.d.ts +458 -0
  32. package/dist/server/preparePostPurchaseCollectionView.d.ts +442 -0
  33. package/dist/server/preparePostPurchaseGroupAdmissionView.d.ts +459 -0
  34. package/dist/server/preparePostPurchaseGroupDeclineDisplay.d.ts +12 -0
  35. package/dist/server/preparePostPurchaseGroupDefault.d.ts +459 -0
  36. package/dist/server/preparePostPurchaseGroupView.d.ts +458 -0
  37. package/dist/server/preparePostPurchaseMemberView.d.ts +1466 -0
  38. package/dist/server/preparePostPurchaseOfferPresentation.d.ts +137 -0
  39. package/dist/server/preparePostPurchaseProduct.d.ts +11 -0
  40. package/dist/server/preparePostPurchaseQuantityAdmissionView.d.ts +440 -0
  41. package/dist/server/preparePostPurchaseQuantityView.d.ts +427 -0
  42. package/dist/server/preparePostPurchaseSubscription.d.ts +37 -5
  43. package/dist/server/preparePostPurchaseView.d.ts +8 -0
  44. package/dist/server/projectPostPurchaseProduct.d.ts +42 -12
  45. package/dist/server/readPostPurchaseGroup.d.ts +101 -0
  46. package/dist/server/readPostPurchaseGroupSelection.d.ts +110 -0
  47. package/dist/server/readPostPurchaseQuantity.d.ts +27 -0
  48. package/dist/server/resolvePostPurchaseMemberDefault.d.ts +8 -0
  49. package/dist/server/selectPostPurchaseChoice.d.ts +2 -3
  50. package/dist/transforms/postPurchase/convertDescriptionRte.d.ts +11 -0
  51. package/package.json +1 -1
@@ -5,8 +5,10 @@
5
5
  * (`fetchUserConfig` → shop publishable key, `fetchDataSourceResults` → engine-evaluated products for the
6
6
  * live cart), gift validation (`validateGifts`), Monetize offers (`fetchMonetizeOffers`), analytics
7
7
  * forwarding (`postAnalyticsEvents`), standalone post-purchase subscription preparation
8
- * (`preparePostPurchaseSubscription`), and the centralized `/cab/*` request schemas rebuy-api validates
9
- * against. Internal composition modules (`adsEngine`, `composeOffer`, `salvageSections`,
8
+ * (`preparePostPurchaseSubscription`), the post-purchase Offer classification, quantity, product-group,
9
+ * order-attribute and Offer-frame helpers, one-time product preparation, the product, member, quantity,
10
+ * group and collection views with their admission views, and the centralized `/cab/*` request schemas
11
+ * rebuy-api validates against. Internal composition modules (`adsEngine`, `composeOffer`, `salvageSections`,
10
12
  * `b2bAvailability`) stay unexported — they're reached through the orchestrators above.
11
13
  */
12
14
  export { buildEngineParams, fetchDataSourceResults, type DataSourceResults } from '../server/dataSourceResults';
@@ -15,6 +17,22 @@ export { fetchUserConfig } from '../server/userConfig';
15
17
  export { validateGifts } from '../server/giftValidation';
16
18
  export { fetchMonetizeOffers, type MonetizeOffers } from '../server/monetizeOffers';
17
19
  export { preparePostPurchaseSubscription } from '../server/preparePostPurchaseSubscription';
20
+ export { preparePostPurchaseProduct } from '../server/preparePostPurchaseProduct';
21
+ export { preparePostPurchaseView } from '../server/preparePostPurchaseView';
22
+ export { preparePostPurchaseAdmissionView } from '../server/preparePostPurchaseAdmissionView';
23
+ export { preparePostPurchaseMemberAdmissionView, preparePostPurchaseMemberView, } from '../server/preparePostPurchaseMemberView';
24
+ export { preparePostPurchaseQuantityView } from '../server/preparePostPurchaseQuantityView';
25
+ export { preparePostPurchaseQuantityAdmissionView } from '../server/preparePostPurchaseQuantityAdmissionView';
26
+ export { preparePostPurchaseGroupView } from '../server/preparePostPurchaseGroupView';
27
+ export { preparePostPurchaseGroupAdmissionView } from '../server/preparePostPurchaseGroupAdmissionView';
28
+ export { preparePostPurchaseGroupDefault } from '../server/preparePostPurchaseGroupDefault';
29
+ export { preparePostPurchaseCollectionView } from '../server/preparePostPurchaseCollectionView';
30
+ export { classifyPostPurchaseOffer } from '../server/classifyPostPurchaseOffer';
31
+ export { createPostPurchaseOrderAttributes } from '../server/createPostPurchaseOrderAttributes';
32
+ export { preparePostPurchaseGroupDeclineDisplay } from '../server/preparePostPurchaseGroupDeclineDisplay';
33
+ export { preparePostPurchaseOfferPresentation } from '../server/preparePostPurchaseOfferPresentation';
34
+ export { readPostPurchaseGroupSelection } from '../server/readPostPurchaseGroupSelection';
35
+ export { PostPurchaseQuantityUnavailable, readPostPurchaseQuantity, type PostPurchaseQuantity, } from '../server/readPostPurchaseQuantity';
18
36
  export { postAnalyticsEvents, translateAnalyticsEvent, type CabAnalyticsEventName } from '../server/analytics';
19
37
  export { AnalyticsEventInputSchema, AnalyticsInputSchema, AnalyticsSegmentsInputSchema, CartInputSchema, CartLineInputSchema, DataSourceInputSchema, GiftAdjustmentSchema, GiftInputSchema, GiftValidationInputSchema, GiftValidationResponseSchema, MonetizeInputSchema, MonetizeTransactionItemSchema, REQUEST_BOUNDS, UserConfigInputSchema, WidgetSettingsInputSchema, } from '../server/requestSchemas';
20
38
  export { NotFoundError, REBUY_ENGINE_HOST, UpstreamError, type AnalyticsEventInput, type AnalyticsInput, type AnalyticsSegmentsInput, type CartInput, type CartLineInput, type DataSourceInput, type GiftAdjustment, type GiftInput, type GiftValidationInput, type GiftValidationResponse, type MonetizeInput, type MonetizeTransactionItem, type ServerContext, type ServerDrift, type UpstreamFetch, type UserConfigInput, type WidgetSettingsInput, } from '../server/shared';