@surfside/ads-core 2.0.22 → 2.3.0-0ff9dfa7.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 (208) hide show
  1. package/README.md +15 -15
  2. package/lib/cjs/Api.js +71 -33
  3. package/lib/cjs/Api.js.map +1 -1
  4. package/lib/cjs/BuildInfo.js +6 -2
  5. package/lib/cjs/BuildInfo.js.map +1 -1
  6. package/lib/cjs/Init.js +473 -0
  7. package/lib/cjs/Init.js.map +1 -0
  8. package/lib/cjs/helpers/Functions.js.map +1 -1
  9. package/lib/cjs/helpers/Generator.js.map +1 -1
  10. package/lib/cjs/helpers/Handlebars.js +5 -2
  11. package/lib/cjs/helpers/Handlebars.js.map +1 -1
  12. package/lib/cjs/helpers/NativeRequestBuilder.js.map +1 -1
  13. package/lib/cjs/helpers/RequestBuilder.js +143 -25
  14. package/lib/cjs/helpers/RequestBuilder.js.map +1 -1
  15. package/lib/cjs/helpers/TelemetryCollector.js +72 -0
  16. package/lib/cjs/helpers/TelemetryCollector.js.map +1 -0
  17. package/lib/cjs/helpers/TryGet.js.map +1 -1
  18. package/lib/cjs/helpers/Types.js +3 -0
  19. package/lib/cjs/helpers/Types.js.map +1 -0
  20. package/lib/cjs/helpers/Window.js +52 -11
  21. package/lib/cjs/helpers/Window.js.map +1 -1
  22. package/lib/cjs/helpers/index.js +2 -0
  23. package/lib/cjs/helpers/index.js.map +1 -1
  24. package/lib/cjs/helpers/response/Banner.js +85 -0
  25. package/lib/cjs/helpers/response/Banner.js.map +1 -1
  26. package/lib/cjs/helpers/response/BuiltResponse.js.map +1 -1
  27. package/lib/cjs/helpers/response/Carousel.js +114 -25
  28. package/lib/cjs/helpers/response/Carousel.js.map +1 -1
  29. package/lib/cjs/helpers/response/Clickthrough.js.map +1 -1
  30. package/lib/cjs/helpers/response/Html.js +37 -0
  31. package/lib/cjs/helpers/response/Html.js.map +1 -0
  32. package/lib/cjs/helpers/response/ProductCard.js +10 -128
  33. package/lib/cjs/helpers/response/ProductCard.js.map +1 -1
  34. package/lib/cjs/helpers/response/Products.js +163 -0
  35. package/lib/cjs/helpers/response/Products.js.map +1 -0
  36. package/lib/cjs/helpers/response/Video.js +54 -0
  37. package/lib/cjs/helpers/response/Video.js.map +1 -1
  38. package/lib/cjs/helpers/response/index.js +59 -0
  39. package/lib/cjs/helpers/response/index.js.map +1 -1
  40. package/lib/cjs/index.js +25 -1
  41. package/lib/cjs/index.js.map +1 -1
  42. package/lib/cjs/models/dynamic/DynamicZone.js.map +1 -1
  43. package/lib/cjs/models/dynamic/index.js.map +1 -1
  44. package/lib/cjs/models/index.js.map +1 -1
  45. package/lib/cjs/models/retail/Category.js.map +1 -1
  46. package/lib/cjs/models/retail/Configuration.js +34 -1
  47. package/lib/cjs/models/retail/Configuration.js.map +1 -1
  48. package/lib/cjs/models/retail/Product.js.map +1 -1
  49. package/lib/cjs/models/retail/Recommended.js.map +1 -1
  50. package/lib/cjs/models/retail/index.js +1 -0
  51. package/lib/cjs/models/retail/index.js.map +1 -1
  52. package/lib/cjs/models/rtb/BidRequest.js.map +1 -1
  53. package/lib/cjs/models/rtb/BidResponse.js.map +1 -1
  54. package/lib/cjs/models/rtb/NativeRequest.js.map +1 -1
  55. package/lib/cjs/models/rtb/NativeResponse.js.map +1 -1
  56. package/lib/cjs/models/rtb/index.js.map +1 -1
  57. package/lib/cjs/models/tracking/Geo.js.map +1 -1
  58. package/lib/cjs/models/tracking/index.js.map +1 -1
  59. package/lib/cjs/models/vast/Vast.js.map +1 -1
  60. package/lib/cjs/models/vast/index.js.map +1 -1
  61. package/lib/cjs/services/Bidder.js +186 -9
  62. package/lib/cjs/services/Bidder.js.map +1 -1
  63. package/lib/cjs/services/BotFiltering.js.map +1 -1
  64. package/lib/cjs/services/Category.js +8 -4
  65. package/lib/cjs/services/Category.js.map +1 -1
  66. package/lib/cjs/services/Configuration.js +186 -5
  67. package/lib/cjs/services/Configuration.js.map +1 -1
  68. package/lib/cjs/services/Device.js +1 -1
  69. package/lib/cjs/services/Device.js.map +1 -1
  70. package/lib/cjs/services/Dynamic.js +9 -7
  71. package/lib/cjs/services/Dynamic.js.map +1 -1
  72. package/lib/cjs/services/Geo.js +5 -1
  73. package/lib/cjs/services/Geo.js.map +1 -1
  74. package/lib/cjs/services/Logger.js +82 -14
  75. package/lib/cjs/services/Logger.js.map +1 -1
  76. package/lib/cjs/services/Memo.js +82 -14
  77. package/lib/cjs/services/Memo.js.map +1 -1
  78. package/lib/cjs/services/Memoization.js +3 -0
  79. package/lib/cjs/services/Memoization.js.map +1 -1
  80. package/lib/cjs/services/Product.js +11 -5
  81. package/lib/cjs/services/Product.js.map +1 -1
  82. package/lib/cjs/services/Recommender.js +40 -15
  83. package/lib/cjs/services/Recommender.js.map +1 -1
  84. package/lib/cjs/services/Result.js +3 -1
  85. package/lib/cjs/services/Result.js.map +1 -1
  86. package/lib/cjs/services/Template.js.map +1 -1
  87. package/lib/cjs/services/Tracker.js.map +1 -1
  88. package/lib/cjs/services/index.js.map +1 -1
  89. package/lib/cjs/util/Functional.js.map +1 -1
  90. package/lib/esm/Api.js +70 -35
  91. package/lib/esm/Api.js.map +1 -1
  92. package/lib/esm/BuildInfo.js +5 -1
  93. package/lib/esm/BuildInfo.js.map +1 -1
  94. package/lib/esm/Init.js +454 -0
  95. package/lib/esm/Init.js.map +1 -0
  96. package/lib/esm/helpers/Functions.js.map +1 -1
  97. package/lib/esm/helpers/Generator.js.map +1 -1
  98. package/lib/esm/helpers/Handlebars.js +5 -2
  99. package/lib/esm/helpers/Handlebars.js.map +1 -1
  100. package/lib/esm/helpers/NativeRequestBuilder.js.map +1 -1
  101. package/lib/esm/helpers/RequestBuilder.js +143 -25
  102. package/lib/esm/helpers/RequestBuilder.js.map +1 -1
  103. package/lib/esm/helpers/TelemetryCollector.js +67 -0
  104. package/lib/esm/helpers/TelemetryCollector.js.map +1 -0
  105. package/lib/esm/helpers/TryGet.js.map +1 -1
  106. package/lib/esm/helpers/Types.js +2 -0
  107. package/lib/esm/helpers/Types.js.map +1 -0
  108. package/lib/esm/helpers/Window.js +47 -10
  109. package/lib/esm/helpers/Window.js.map +1 -1
  110. package/lib/esm/helpers/index.js +2 -0
  111. package/lib/esm/helpers/index.js.map +1 -1
  112. package/lib/esm/helpers/response/Banner.js +81 -1
  113. package/lib/esm/helpers/response/Banner.js.map +1 -1
  114. package/lib/esm/helpers/response/BuiltResponse.js.map +1 -1
  115. package/lib/esm/helpers/response/Carousel.js +112 -25
  116. package/lib/esm/helpers/response/Carousel.js.map +1 -1
  117. package/lib/esm/helpers/response/Clickthrough.js.map +1 -1
  118. package/lib/esm/helpers/response/Html.js +33 -0
  119. package/lib/esm/helpers/response/Html.js.map +1 -0
  120. package/lib/esm/helpers/response/ProductCard.js +10 -128
  121. package/lib/esm/helpers/response/ProductCard.js.map +1 -1
  122. package/lib/esm/helpers/response/Products.js +158 -0
  123. package/lib/esm/helpers/response/Products.js.map +1 -0
  124. package/lib/esm/helpers/response/Video.js +51 -1
  125. package/lib/esm/helpers/response/Video.js.map +1 -1
  126. package/lib/esm/helpers/response/index.js +56 -0
  127. package/lib/esm/helpers/response/index.js.map +1 -1
  128. package/lib/esm/index.js +2 -1
  129. package/lib/esm/index.js.map +1 -1
  130. package/lib/esm/models/dynamic/DynamicZone.js.map +1 -1
  131. package/lib/esm/models/dynamic/index.js.map +1 -1
  132. package/lib/esm/models/index.js.map +1 -1
  133. package/lib/esm/models/retail/Category.js.map +1 -1
  134. package/lib/esm/models/retail/Configuration.js +32 -0
  135. package/lib/esm/models/retail/Configuration.js.map +1 -1
  136. package/lib/esm/models/retail/Product.js.map +1 -1
  137. package/lib/esm/models/retail/Recommended.js.map +1 -1
  138. package/lib/esm/models/retail/index.js +1 -0
  139. package/lib/esm/models/retail/index.js.map +1 -1
  140. package/lib/esm/models/rtb/BidRequest.js.map +1 -1
  141. package/lib/esm/models/rtb/BidResponse.js.map +1 -1
  142. package/lib/esm/models/rtb/NativeRequest.js.map +1 -1
  143. package/lib/esm/models/rtb/NativeResponse.js.map +1 -1
  144. package/lib/esm/models/rtb/index.js.map +1 -1
  145. package/lib/esm/models/tracking/Geo.js.map +1 -1
  146. package/lib/esm/models/tracking/index.js.map +1 -1
  147. package/lib/esm/models/vast/Vast.js.map +1 -1
  148. package/lib/esm/models/vast/index.js.map +1 -1
  149. package/lib/esm/services/Bidder.js +182 -9
  150. package/lib/esm/services/Bidder.js.map +1 -1
  151. package/lib/esm/services/BotFiltering.js.map +1 -1
  152. package/lib/esm/services/Category.js +6 -2
  153. package/lib/esm/services/Category.js.map +1 -1
  154. package/lib/esm/services/Configuration.js +176 -5
  155. package/lib/esm/services/Configuration.js.map +1 -1
  156. package/lib/esm/services/Device.js +1 -1
  157. package/lib/esm/services/Device.js.map +1 -1
  158. package/lib/esm/services/Dynamic.js +9 -7
  159. package/lib/esm/services/Dynamic.js.map +1 -1
  160. package/lib/esm/services/Geo.js +5 -1
  161. package/lib/esm/services/Geo.js.map +1 -1
  162. package/lib/esm/services/Logger.js +78 -12
  163. package/lib/esm/services/Logger.js.map +1 -1
  164. package/lib/esm/services/Memo.js +79 -13
  165. package/lib/esm/services/Memo.js.map +1 -1
  166. package/lib/esm/services/Memoization.js +3 -0
  167. package/lib/esm/services/Memoization.js.map +1 -1
  168. package/lib/esm/services/Product.js +11 -5
  169. package/lib/esm/services/Product.js.map +1 -1
  170. package/lib/esm/services/Recommender.js +40 -15
  171. package/lib/esm/services/Recommender.js.map +1 -1
  172. package/lib/esm/services/Result.js +1 -0
  173. package/lib/esm/services/Result.js.map +1 -1
  174. package/lib/esm/services/Template.js.map +1 -1
  175. package/lib/esm/services/Tracker.js.map +1 -1
  176. package/lib/esm/services/index.js.map +1 -1
  177. package/lib/esm/util/Functional.js.map +1 -1
  178. package/lib/types/Api.d.ts +42 -18
  179. package/lib/types/BuildInfo.d.ts +1 -1
  180. package/lib/types/Init.d.ts +147 -0
  181. package/lib/types/helpers/Handlebars.d.ts +1 -0
  182. package/lib/types/helpers/RequestBuilder.d.ts +9 -2
  183. package/lib/types/helpers/TelemetryCollector.d.ts +25 -0
  184. package/lib/types/helpers/Types.d.ts +1 -0
  185. package/lib/types/helpers/Window.d.ts +11 -1
  186. package/lib/types/helpers/index.d.ts +2 -0
  187. package/lib/types/helpers/response/Banner.d.ts +13 -0
  188. package/lib/types/helpers/response/Carousel.d.ts +14 -6
  189. package/lib/types/helpers/response/Html.d.ts +2 -0
  190. package/lib/types/helpers/response/Products.d.ts +8 -0
  191. package/lib/types/helpers/response/Video.d.ts +17 -2
  192. package/lib/types/helpers/response/index.d.ts +12 -0
  193. package/lib/types/index.d.ts +2 -1
  194. package/lib/types/models/retail/Category.d.ts +1 -1
  195. package/lib/types/models/retail/Configuration.d.ts +17 -0
  196. package/lib/types/models/retail/index.d.ts +1 -0
  197. package/lib/types/models/rtb/BidRequest.d.ts +4 -1
  198. package/lib/types/models/rtb/BidResponse.d.ts +1 -0
  199. package/lib/types/services/Bidder.d.ts +19 -3
  200. package/lib/types/services/Category.d.ts +9 -1
  201. package/lib/types/services/Configuration.d.ts +25 -2
  202. package/lib/types/services/Dynamic.d.ts +5 -3
  203. package/lib/types/services/Logger.d.ts +36 -2
  204. package/lib/types/services/Memo.d.ts +28 -2
  205. package/lib/types/services/Memoization.d.ts +3 -0
  206. package/lib/types/services/Recommender.d.ts +2 -2
  207. package/lib/types/services/Result.d.ts +1 -0
  208. package/package.json +48 -47
@@ -1 +1 @@
1
- {"version":3,"file":"Result.js","sourceRoot":"src/","sources":["services/Result.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,EAAE,GAAG,CAAI,CAAI,EAAe,EAAE,CAAC,CAAC;IACzC,EAAE,EAAE,IAAI;IACR,KAAK,EAAE,CAAC;CACX,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,GAAG,GAAG,CAAY,CAAI,EAAgB,EAAE,CAAC,CAAC;IACnD,EAAE,EAAE,KAAK;IACT,KAAK,EAAE,CAAC;CACX,C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M,QAAQ,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC;YAChC,GAAG,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;YAErB,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC;QACrB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,GAAG,EAAE,KAAK,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC;QACjD,CAAC;IACL,CAAC,CAAC;IACV,OAAO;QACH,WAAW,EAAE;YACT,eAAe,EAAE,WAAW,CAAC,SAAS,EAAE,OAAO,CAAC;YAChD,oBAAoB,EAAE,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC;YACnD,mBAAmB,EAAE,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC;SACrD;KACJ,CAAC;AACN,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["services/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["services/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Functional.js","sourceRoot":"src/","sources":["util/Functional.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"Functional.js","sourceRoot":"/","sources":["util/Functional.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC"}
@@ -1,18 +1,20 @@
1
1
  import type { INativeTemplateDelegateWindow, ICompiledPublisherConfiguration, IDevice, IGeoContext } from './models';
2
2
  import { type AsyncResult, type INavigator, type IScreen, type RequestBidsFn, type ILogger, type PersonalRecommenderFn, type NonPersonalRecommenderFn, type GetConfigurationFn, type GetGeoFn, type GetDeviceFn, type GetRecommendedProductFromProductIdFn, type GetAllSponsoredProductFromNativeIdFn } from './services';
3
- import { type BuildAllSponsoredProductCardResponsesFn, type GenerateSponsoredProductCardResponseFn, type NativeRequestBuilderFn, type RequestBuilderFn } from './helpers';
3
+ import { type BuildAllBannersCoreFn, type BuildAllResponsesCoreFn, type BuildAllSponsoredProductCardResponsesFn, type BuildAllVideosCoreFn, type BuildBannerResponseCoreFn, type BuildVideoResponseCoreFn, type GenerateSponsoredProductCardResponseFn, type NativeRequestBuilderFn, type RequestBuilderFn } from './helpers';
4
4
  import Handlebars from 'handlebars/runtime';
5
- import { type BuildHybridCarouselFn, type BuildHybridCarouselFromInitialBidFn, type BuildRecommendedCarouselFn, type BuildSponsoredCarouselFn, type BuildSponsoredCarouselFromInitialBidFn } from './helpers/response/Carousel';
5
+ import { type BuildAllSimpleCarouselsFn, type BuildHybridCarouselFn, type BuildHybridCarouselFromInitialBidFn, type BuildRecommendedCarouselFn, type BuildSimpleCarouselFn, type BuildSponsoredCarouselFn, type BuildSponsoredCarouselFromInitialBidFn } from './helpers/response/Carousel';
6
6
  import { type EvaluateClickthroughTemplateFn, type EvaluateProductCardTemplateFn } from './services/Template';
7
7
  import { type BuildDynamicZoneRequestFn, type GetDynamicZoneFn } from './services/Dynamic';
8
- import { type GenerateCategoriesFn } from './services/Category';
8
+ import { type MapCategoriesFn } from './services/Category';
9
9
  import { type InitTrackerServiceFn, type IProductTrackerService } from './services/Tracker';
10
10
  export declare const PROD_BIDDER = "//bid.surfside.io/rtb/bids/surfside";
11
11
  export declare const PROD_CONFIGURATION_SERVICE = "//r.surfside.io";
12
+ export declare const PROD_CATEGORY_CONFIGURATION_SERVICE = "//r.surfside.io";
12
13
  export declare const PROD_SPONSORED_PRODUCT_FEED = "//creative.surfside.io";
13
14
  export declare const PROD_RECOMMENDED_PRODUCT_FEED = "//creative.surfside.io";
14
15
  export declare const PROD_RECOMMENDER_SERVICE = "//t.surfside.io";
15
16
  export declare const PROD_DYNAMIC_ZONE_SERVICE = "//r.surfside.io/";
17
+ export declare const PROD_TELEMETRY_SERVICE = "//telemetry.surfside.io/v1/ingest";
16
18
  /**
17
19
  * A collection of services for querying the surfside API and building responses
18
20
  */
@@ -46,9 +48,14 @@ export interface ISurfsideApi {
46
48
  */
47
49
  getConfiguration: GetConfigurationFn;
48
50
  /**
49
- * Generates categories for the site
51
+ * @deprecated Use mapCategories instead
52
+ * Maps publisher categories to Surfside canonical categories
50
53
  */
51
- generateCategories: GenerateCategoriesFn;
54
+ generateCategories: MapCategoriesFn;
55
+ /**
56
+ * Maps publisher categories to Surfside canonical categories
57
+ */
58
+ mapCategories: MapCategoriesFn;
52
59
  /**
53
60
  * Creates a set of trackers from a product input. Builds a URL with all relevant info from the trackers
54
61
  * and returns functions to call when the relevant events fire
@@ -127,18 +134,19 @@ export interface ISurfsideApi {
127
134
  evaluateClickthroughTemplate: EvaluateClickthroughTemplateFn;
128
135
  getDynamicZone: GetDynamicZoneFn;
129
136
  buildDynamicZoneRequest: BuildDynamicZoneRequestFn;
137
+ buildBannerResponseCore: BuildBannerResponseCoreFn;
138
+ buildAllResponsesCore: BuildAllResponsesCoreFn;
139
+ buildVideoResponseCore: BuildVideoResponseCoreFn;
140
+ buildSimpleCarousel: BuildSimpleCarouselFn;
141
+ buildAllBannersCore: BuildAllBannersCoreFn;
142
+ buildAllVideosCore: BuildAllVideosCoreFn;
143
+ buildAllSimpleCarousels: BuildAllSimpleCarouselsFn;
130
144
  }
131
- /**
132
- * Initializes the API with the services explicitly passed to it. This function is used by the framework for overloading
133
- * mock services. It should not be used in an application
134
- * @param internalApiDto The list of services and helpers to inject
135
- * @returns An initialized Surfside API
136
- */
137
- export declare function InitSurfAdsCoreInternal(internalApiDto: {
145
+ export type SurfAdsCoreInitDto = {
138
146
  logger: ILogger | undefined;
139
147
  requestBids: RequestBidsFn;
140
148
  getConfiguration: GetConfigurationFn;
141
- generateCategories: GenerateCategoriesFn;
149
+ generateCategories: MapCategoriesFn;
142
150
  getGeo: GetGeoFn;
143
151
  getDevice: GetDeviceFn;
144
152
  getAllSponsoredProducts: GetAllSponsoredProductFromNativeIdFn;
@@ -164,13 +172,29 @@ export declare function InitSurfAdsCoreInternal(internalApiDto: {
164
172
  channelId: string;
165
173
  locationId: string;
166
174
  userId: string | undefined;
167
- }): AsyncResult<ISurfsideApi>;
168
- export declare const InitSurfAdsCoreServices: (logger: ILogger | undefined, bidderServiceUrl: string, configurationServiceUrl: string, productFeedUrl: string, recommendedProductFeedUrl: string, recommenderServiceUrl: string, dynamicZoneServiceUrl: string, windowInfo: INativeTemplateDelegateWindow, screenInfo: IScreen, navigator: INavigator, mobile: boolean, ip: string | undefined, geoProviderToken: string | undefined, accountId: string, siteId: string, channelId: string, locationId: string, userId: string | undefined, initTrackerService?: InitTrackerServiceFn) => AsyncResult<ISurfsideApi>;
175
+ };
176
+ /**
177
+ * Initializes the API with the services explicitly passed to it. This function is used by the framework for overloading
178
+ * mock services. It should not be used in an application
179
+ * @param internalApiDto The list of services and helpers to inject
180
+ * @returns An initialized Surfside API
181
+ */
182
+ export declare function InitSurfAdsCoreInternal(internalApiDto: SurfAdsCoreInitDto): AsyncResult<ISurfsideApi>;
183
+ export declare const InitSurfAdsCoreServices: (logger: ILogger | undefined, bidderServiceUrl: string, configurationServiceUrl: string, productFeedUrl: string, recommendedProductFeedUrl: string, recommenderServiceUrl: string, dynamicZoneServiceUrl: string, windowInfo: INativeTemplateDelegateWindow, screenInfo: IScreen, navigator: INavigator, mobile: boolean, ip: string | undefined, geoProviderToken: string | undefined, accountId: string, siteId: string, channelId: string, locationId: string, userId: string | undefined, initTrackerService?: InitTrackerServiceFn, overrides?: Partial<SurfAdsCoreInitDto>) => AsyncResult<ISurfsideApi>;
169
184
  export declare const InitSurfAdsCoreSSR: (windowInfo: INativeTemplateDelegateWindow, screen: IScreen, navigator: INavigator, mobile: boolean, ip: string, geoProviderToken: string, accountId: string, siteId: string, channelId: string, locationId: string, userId: string | undefined, logger?: ILogger) => AsyncResult<ISurfsideApi>;
170
185
  export declare const InitSurfAdsCore: (channelId: string, accountId: string, siteId: string, locationId: string, userId: string | undefined, logger?: ILogger) => AsyncResult<ISurfsideApi>;
171
- export declare class MissingConfigurationError extends Error {
172
- constructor(accountId: string, siteId: string);
173
- }
174
186
  export declare class NotABrowserError extends Error {
175
187
  constructor();
176
188
  }
189
+ export declare class SurfsideAdsDisabledError extends Error {
190
+ constructor();
191
+ }
192
+ export declare class LocationExcludedError extends Error {
193
+ constructor(locationId: string);
194
+ }
195
+ export declare class ZoneExcludedError extends Error {
196
+ constructor(zoneId: string);
197
+ }
198
+ export declare class MissingConfigurationError extends Error {
199
+ constructor(accountId: string, siteId: string);
200
+ }
@@ -1,4 +1,4 @@
1
- export declare const SurfsideAdsCoreVersionInfo: {
1
+ export declare const VersionInfo: {
2
2
  buildBranch: string;
3
3
  buildHash: string;
4
4
  buildVer: string;
@@ -0,0 +1,147 @@
1
+ import { type ISurfsideApi } from './Api';
2
+ import Handlebars from 'handlebars/runtime';
3
+ import { type BuildAllSponsoredProductCardResponsesFn, type GenerateSponsoredProductCardResponseFn, type HandlebarsHelpers, type RequestBuilderFn } from './helpers';
4
+ import { type IDevice, type ICompiledPublisherConfiguration, type IGeoContext, type INativeTemplateDelegateWindow } from './models';
5
+ import { type RequestBidsFn, type GetAllSponsoredProductFromNativeIdFn, type GetRecommendedProductFromProductIdFn, type NonPersonalRecommenderFn, type PersonalRecommenderFn, type GetDynamicZoneFn, type EvaluateProductCardTemplateFn, type EvaluateClickthroughTemplateFn, type IProductTrackerService, type ILogger, type ITelemetryCollector, type IScreen, type INavigator, type Result, type AsyncResult, type LoadConfigurationFileFn, type LoadGlobalCategoryConfigurationFn } from './services';
6
+ import { type MapCategoriesFn } from './services/Category';
7
+ export type OverrideFactory<T, U = ISurfAdsCoreConfiguration> = (config: U, original: T) => Result<T>;
8
+ export type AsyncOverrideFactory<T, U = ISurfAdsCoreConfiguration> = (config: U, original: T) => AsyncResult<T>;
9
+ export declare const MemoizeOverride: <TArgs extends unknown[], TReturn, U = ISurfAdsCoreConfiguration>(time?: Partial<{
10
+ minutes: number;
11
+ hours: number;
12
+ seconds: number;
13
+ milliseconds: number;
14
+ }>) => OverrideFactory<(...args: TArgs) => TReturn, U>;
15
+ export declare const MemoizeOverrideAsync: <TArgs extends unknown[], TReturn, U = ISurfAdsCoreConfiguration>(time?: Partial<{
16
+ minutes: number;
17
+ hours: number;
18
+ seconds: number;
19
+ milliseconds: number;
20
+ }>) => AsyncOverrideFactory<(...args: TArgs) => Promise<TReturn>, U>;
21
+ export declare const CacheOverride: <TArgs extends unknown[], TReturn, U = ISurfAdsCoreConfiguration>(timeout?: Partial<{
22
+ minutes: number;
23
+ hours: number;
24
+ seconds: number;
25
+ milliseconds: number;
26
+ }>) => OverrideFactory<(...args: TArgs) => TReturn, U>;
27
+ export declare const AsyncCacheOverride: <TArgs extends unknown[], TReturn, U = ISurfAdsCoreConfiguration>(timeout?: Partial<{
28
+ minutes: number;
29
+ hours: number;
30
+ seconds: number;
31
+ milliseconds: number;
32
+ }>) => OverrideFactory<(...args: TArgs) => Promise<TReturn>, U>;
33
+ export interface ISurfAdsCoreConfigurationOverrides {
34
+ mapCategories: OverrideFactory<(categories: string[]) => string[]>;
35
+ generateCategories: OverrideFactory<MapCategoriesFn>;
36
+ requestBids: OverrideFactory<RequestBidsFn>;
37
+ getAllSponsoredProducts: OverrideFactory<GetAllSponsoredProductFromNativeIdFn>;
38
+ getAllSponsoredBrandProducts: OverrideFactory<GetAllSponsoredProductFromNativeIdFn>;
39
+ getRecommendedProduct: OverrideFactory<GetRecommendedProductFromProductIdFn>;
40
+ generateTopProducts: OverrideFactory<NonPersonalRecommenderFn>;
41
+ generateForYou: OverrideFactory<PersonalRecommenderFn>;
42
+ generatePreviousPurchases: OverrideFactory<PersonalRecommenderFn>;
43
+ getDynamicZone: OverrideFactory<GetDynamicZoneFn>;
44
+ buildAllSponsoredProductCardResponses: OverrideFactory<BuildAllSponsoredProductCardResponsesFn>;
45
+ generateSponsoredProductCardResponse: OverrideFactory<GenerateSponsoredProductCardResponseFn>;
46
+ evaluateProductCardTemplate: OverrideFactory<EvaluateProductCardTemplateFn>;
47
+ evaluateClickthroughTemplate: OverrideFactory<EvaluateClickthroughTemplateFn>;
48
+ startRequest: (config: ISurfAdsCoreConfiguration, startRequest: RequestBuilderFn) => Result<RequestBuilderFn>;
49
+ trackerService: OverrideFactory<IProductTrackerService>;
50
+ createTelemetryCollector: OverrideFactory<ITelemetryCollector | undefined, Omit<ISurfAdsCoreConfiguration, 'geo' | 'handlebars' | 'configuration' | 'logger'>>;
51
+ loadConfigurationFile: OverrideFactory<LoadConfigurationFileFn, ILoadSurfAdsCoreConfigurationDependenciesConfig>;
52
+ loadGlobalCategoryConfiguration: OverrideFactory<LoadGlobalCategoryConfigurationFn, ILoadSurfAdsCoreConfigurationDependenciesConfig>;
53
+ }
54
+ export interface ISurfAdsCoreConfiguration extends ISurfAdsCoreDependencies {
55
+ windowInfo: INativeTemplateDelegateWindow;
56
+ screen: IScreen;
57
+ navigator: INavigator;
58
+ mobile: boolean;
59
+ ip: string | undefined;
60
+ accountId: string;
61
+ siteId: string;
62
+ channelId: string;
63
+ locationId: string;
64
+ userId: string | undefined;
65
+ overrides?: {
66
+ services?: Partial<ISurfAdsCoreConfigurationOverrides>;
67
+ };
68
+ }
69
+ export declare function CreateSurfAdsCore(config: ISurfAdsCoreConfiguration): Result<ISurfsideApi>;
70
+ export interface ILoadSurfAdsCoreConfiguration {
71
+ logger?: ILogger;
72
+ windowInfo: INativeTemplateDelegateWindow;
73
+ screen: IScreen;
74
+ navigator: INavigator;
75
+ mobile: boolean;
76
+ ip: string | undefined;
77
+ accountId: string;
78
+ siteId: string;
79
+ channelId: string;
80
+ locationId: string;
81
+ userId: string | undefined;
82
+ telemetry?: boolean;
83
+ overrides?: {
84
+ services?: Partial<ISurfAdsCoreConfigurationOverrides>;
85
+ dependencies?: Partial<ISurfAdsCoreDependencies>;
86
+ };
87
+ }
88
+ export interface ISurfAdsCoreDependencies {
89
+ handlebars: typeof Handlebars;
90
+ configuration: ICompiledPublisherConfiguration;
91
+ geo: IGeoContext | undefined;
92
+ device: IDevice | undefined;
93
+ logger: ILogger | undefined;
94
+ }
95
+ export declare const LoadSurfAdsCoreHandlebarsDependencies: (logger: ILogger | undefined, windowInfo: INativeTemplateDelegateWindow) => [typeof Handlebars, HandlebarsHelpers];
96
+ export interface ILoadSurfAdsCoreConfigurationDependenciesConfig {
97
+ logger: ILogger | undefined;
98
+ accountId: string;
99
+ siteId: string;
100
+ handlebars: typeof Handlebars;
101
+ handlebarsHelpers: HandlebarsHelpers;
102
+ overrides?: {
103
+ services?: Partial<{
104
+ loadConfigurationFile: OverrideFactory<LoadConfigurationFileFn, ILoadSurfAdsCoreConfigurationDependenciesConfig>;
105
+ loadGlobalCategoryConfiguration: OverrideFactory<LoadGlobalCategoryConfigurationFn, ILoadSurfAdsCoreConfigurationDependenciesConfig>;
106
+ }>;
107
+ dependencies?: Partial<ISurfAdsCoreDependencies>;
108
+ };
109
+ }
110
+ export declare const LoadSurfAdsCoreConfigurationDependencies: (config: ILoadSurfAdsCoreConfigurationDependenciesConfig) => AsyncResult<ICompiledPublisherConfiguration>;
111
+ export interface ILoadSurfAdsCoreGeoDependenciesConfig {
112
+ logger: ILogger | undefined;
113
+ overrides?: {
114
+ dependencies?: Partial<ISurfAdsCoreDependencies>;
115
+ };
116
+ }
117
+ export declare const LoadSurfAdsCoreGeoDependencies: (config: ILoadSurfAdsCoreGeoDependenciesConfig) => AsyncResult<IGeoContext>;
118
+ export interface ILoadSurfAdsCoreDeviceDependenciesConfig {
119
+ logger: ILogger | undefined;
120
+ screen: IScreen;
121
+ navigator: INavigator;
122
+ mobile: boolean;
123
+ overrides?: {
124
+ dependencies?: Partial<ISurfAdsCoreDependencies>;
125
+ };
126
+ }
127
+ export declare const LoadSurfAdsCoreDeviceDependencies: (config: ILoadSurfAdsCoreDeviceDependenciesConfig) => IDevice | undefined;
128
+ export declare const LoadSurfAdsCoreDependencies: (config: ILoadSurfAdsCoreConfiguration) => AsyncResult<ISurfAdsCoreDependencies>;
129
+ export declare const LoadSurfAdsCore: (config: ILoadSurfAdsCoreConfiguration) => AsyncResult<ISurfsideApi>;
130
+ export declare const LoadAdsCoreBrowser: (accountId: string, channelId: string, siteId: string, locationId: string, userId?: string, logger?: ILogger) => AsyncResult<ISurfsideApi>;
131
+ export type LoadsSurfAdsCoreHeadlessConfig = {
132
+ accountId: string;
133
+ siteId: string;
134
+ channelId: string;
135
+ locationId: string;
136
+ userId?: string;
137
+ ip: string;
138
+ telemetry?: boolean;
139
+ logging?: boolean;
140
+ userAgent: string;
141
+ url: string;
142
+ overrides?: {
143
+ services?: Partial<ISurfAdsCoreConfigurationOverrides>;
144
+ dependencies?: Partial<ISurfAdsCoreDependencies>;
145
+ };
146
+ };
147
+ export declare const LoadSurfAdsCoreHeadless: (config: LoadsSurfAdsCoreHeadlessConfig) => AsyncResult<ISurfsideApi>;
@@ -28,6 +28,7 @@ export declare function slug(name: string, options: {
28
28
  dropBefore: string | undefined;
29
29
  length: number | undefined;
30
30
  separator: string | undefined;
31
+ asciify: boolean | undefined;
31
32
  };
32
33
  }): string;
33
34
  /**
@@ -1,7 +1,7 @@
1
1
  import { type IApp, type IBanner, type IBidRequest, type IDevice, type IGeoContext, type IImp, type INative, type INativeRequest, type IRegs, type ISite, type IUser, type IVideo } from '../models';
2
2
  import { type ILogger } from '../services';
3
3
  import { type NativeRequestBuilder } from './NativeRequestBuilder';
4
- import { type GenerateCategoriesFn } from '../services/Category';
4
+ import { type MapCategoriesFn } from '../services/Category';
5
5
  export type RequestBuilderFn = (zoneId: string, id?: string) => RequestBuilder;
6
6
  export type RequestWith<T> = (t: T) => RequestBuilder;
7
7
  export type RequestBuilder = {
@@ -17,6 +17,13 @@ export type RequestBuilder = {
17
17
  withNatives: (requests: (string | INativeRequest)[], options?: Partial<INative>, impOptions?: Partial<IImp>) => RequestBuilder;
18
18
  withNativeCopies: (request: string | INativeRequest, n: number, options?: Partial<INative>, impOptions?: Partial<IImp>) => RequestBuilder;
19
19
  withProductCards: (nativeBuilder: NativeRequestBuilder, options?: Partial<INative>, impOptions?: Partial<IImp>) => RequestBuilder;
20
+ withImp: (zoneId: string, imp?: Partial<IImp>) => ImpressionRequestBuilder;
20
21
  build: () => IBidRequest;
21
22
  };
22
- export declare function StartRequest(logger: ILogger | undefined, accountId: string, siteId: string, channelId: string, locationId: string, device: IDevice | undefined, geo: IGeoContext | undefined, userId: string | undefined, generateCategories: GenerateCategoriesFn, zoneId: string, id?: string): RequestBuilder;
23
+ export type ImpressionRequestBuilder = RequestBuilder & {
24
+ andBanner: (w: number, h: number, options?: Partial<IBanner>) => ImpressionRequestBuilder;
25
+ andVideo: (w: number, h: number, minduration: number | undefined, maxduration: number, mimes?: string[], options?: Partial<IVideo>) => ImpressionRequestBuilder;
26
+ andNative: (request: string | INativeRequest, options?: Partial<INative>) => ImpressionRequestBuilder;
27
+ andProductCards: (nativeBuilder: NativeRequestBuilder, options?: Partial<INative>) => ImpressionRequestBuilder;
28
+ };
29
+ export declare function StartRequest(logger: ILogger | undefined, accountId: string, siteId: string, channelId: string, locationId: string, device: IDevice | undefined, geo: IGeoContext | undefined, userId: string | undefined, generateCategories: MapCategoriesFn, strictCategoryFiltering: boolean | undefined, zoneId: string, id?: string): RequestBuilder;
@@ -0,0 +1,25 @@
1
+ import { type IDevice } from '../models';
2
+ import { ITelemetryCollector, type ITelemetryDevice, type ITelemetryEntry } from '../services/Logger';
3
+ export interface ISSRTelemetryCollectorOptions {
4
+ accountId: string;
5
+ siteId: string;
6
+ channelId: string;
7
+ locationId: string;
8
+ endpoint: string;
9
+ tags?: Record<string, string>;
10
+ batchIntervalMs?: number;
11
+ url: string;
12
+ device?: ITelemetryDevice;
13
+ }
14
+ export declare const DeviceToTelemetryDevice: (device: IDevice | undefined) => ITelemetryDevice | undefined;
15
+ export declare class SSRTelemetryCollector extends ITelemetryCollector {
16
+ private readonly _endpoint;
17
+ private readonly _tags;
18
+ private readonly _batchIntervalMs;
19
+ private readonly _pageUrl;
20
+ private queue;
21
+ private flushTimer;
22
+ constructor(options: ISSRTelemetryCollectorOptions);
23
+ record(entry: ITelemetryEntry): void;
24
+ flush(): void;
25
+ }
@@ -0,0 +1 @@
1
+ export type Debouncer = ReturnType<typeof globalThis.setTimeout>;
@@ -1,7 +1,17 @@
1
+ import { NotABrowserError } from '../Api';
1
2
  import { type INativeTemplateDelegateWindow } from '../models';
2
- import { type Result } from '../services';
3
+ import { type INavigator, type IScreen, type Result } from '../services';
3
4
  export declare const WindowFromUrl: (urlStr: string) => Result<INativeTemplateDelegateWindow>;
4
5
  export declare const GetWindowInfo: () => Result<INativeTemplateDelegateWindow>;
6
+ export declare const GetNavigator: () => Result<INavigator>;
7
+ export declare const GetScreenInfo: () => Result<IScreen>;
8
+ export declare const GetBrowserInfo: () => Result<{
9
+ windowInfo: INativeTemplateDelegateWindow;
10
+ navigator: INavigator;
11
+ isMobile: boolean;
12
+ screen: IScreen;
13
+ }>;
14
+ export declare const IsMobile: () => import("../services").ErrResult<NotABrowserError> | import("../services").OkResult<boolean>;
5
15
  export declare class NotAUrlError extends Error {
6
16
  url: string;
7
17
  constructor(url: string);
@@ -2,7 +2,9 @@ export * from './NativeRequestBuilder';
2
2
  export * from './RequestBuilder';
3
3
  export * from './response';
4
4
  export * from './Handlebars';
5
+ export * from './TelemetryCollector';
5
6
  export * from './TryGet';
6
7
  export * from './Window';
7
8
  export * from './Generator';
8
9
  export * from './Functions';
10
+ export * from './Types';
@@ -1,3 +1,5 @@
1
+ import { type IBidResponse, type IBid, type ICompiledPublisherConfiguration, type INativeTemplateDelegateWindow } from '../../models';
2
+ import { type ILogger, type Result } from '../../services';
1
3
  import { type IBuiltResponse } from './BuiltResponse';
2
4
  /**
3
5
  * A built banner response - includes the `adm` field for the banner as well as the rendered commerce media
@@ -19,4 +21,15 @@ export interface IBuiltBannerResponse extends IBuiltResponse {
19
21
  * the clickthrough URL template). For regular static banners that click out to 3rd party sites, this is `undefined`
20
22
  */
21
23
  clickthrough?: string;
24
+ /** The Win URL of the creative. Call this immediately, before rendering has begun. */
25
+ win: string;
26
+ /** The viewable pixel for the banner. Call when the banner is 50% in view for 1s */
27
+ viewable?: string;
28
+ }
29
+ export type BuildBannerResponseCoreFn = (bid: IBid) => Result<IBuiltBannerResponse>;
30
+ export declare const BuildBannerResponseCore: (logger: ILogger | undefined, windowInfo: INativeTemplateDelegateWindow, config: ICompiledPublisherConfiguration, bid: IBid) => Result<IBuiltBannerResponse>;
31
+ export type BuildAllBannersCoreFn = (bidResponse: IBidResponse) => Result<IBuiltBannerResponse[]>;
32
+ export declare const BuildAllBannersCore: (logger: ILogger | undefined, windowInfo: INativeTemplateDelegateWindow, config: ICompiledPublisherConfiguration, bidResponse: IBidResponse) => Result<IBuiltBannerResponse[]>;
33
+ export declare class MissingCoreProductInfoError extends Error {
34
+ constructor();
22
35
  }
@@ -1,11 +1,11 @@
1
- import { type IBid, type IBidRequest } from '../../models';
2
- import { type ILogger, type NonPersonalRecommenderFn, type PersonalRecommenderFn, type RequestBidsFn, type Result } from '../../services';
1
+ import { type IBid, type IBidRequest, type ICompiledPublisherConfiguration, type INativeTemplateDelegateWindow, type IBidResponse } from '../../models';
2
+ import { type AsyncResult, type GetAllSponsoredProductFromNativeIdFn, type ILogger, type NonPersonalRecommenderFn, type PersonalRecommenderFn, type RequestBidsFn, type Result } from '../../services';
3
3
  import { type EvaluateClickthroughTemplateFn } from '../../services/Template';
4
4
  import { type IProductTrackerService } from '../../services/Tracker';
5
5
  import type { GenerateSponsoredProductCardResponseFn, IBuiltProductCardResponse } from './ProductCard';
6
6
  export type BuildSponsoredCarouselFn = (request: IBidRequest) => Result<IBuiltCarousel>;
7
7
  export type BuildSponsoredCarouselFromInitialBidFn = (request: IBidRequest, initialBid: IBid) => Result<IBuiltCarousel>;
8
- export type BuildRecommendedCarouselFn = (RecommenderType: PublicRecommenderType) => Result<IBuiltCarousel>;
8
+ export type BuildRecommendedCarouselFn = (RecommenderType: PublicRecommenderType, category?: string) => Result<IBuiltCarousel>;
9
9
  export type BuildHybridCarouselFn = (recommenderType: PublicRecommenderType, request: IBidRequest) => Result<IBuiltCarousel>;
10
10
  export type BuildHybridCarouselFromInitialBidFn = (RecommenderType: PublicRecommenderType, request: IBidRequest, initialBid: IBid) => Result<IBuiltCarousel>;
11
11
  export type CarouselNextProductFn = () => AsyncGenerator<IBuiltProductCardResponse>;
@@ -13,6 +13,10 @@ export interface IBuiltCarousel {
13
13
  type: 'carousel';
14
14
  getProduct: CarouselNextProductFn;
15
15
  }
16
+ export interface ISimpleBuiltCarousel {
17
+ type: 'simpleCarousel';
18
+ products: IBuiltProductCardResponse[];
19
+ }
16
20
  export type RecommenderType = 'top-products' | 'for-you' | 'past-purchases';
17
21
  export interface IPublicTopProductsRecommenderType {
18
22
  type: 'top-products';
@@ -43,9 +47,13 @@ export interface IPastPurchasesProductRecommender {
43
47
  export type ProductRecommender = ITopProductRecommender | IForYouProductRecommender | IPastPurchasesProductRecommender;
44
48
  export declare const BuildSponsoredCarousel: (logger: ILogger | undefined, requestBids: RequestBidsFn, generateProductCardResponse: GenerateSponsoredProductCardResponseFn, request: IBidRequest) => Result<IBuiltCarousel>;
45
49
  export declare const BuildSponsoredCarouselFromInitialBid: (logger: ILogger | undefined, requestBids: RequestBidsFn, generateProductCardResponse: GenerateSponsoredProductCardResponseFn, request: IBidRequest, initialBid: IBid) => Result<IBuiltCarousel>;
46
- export declare const BuildRecommendedCarousel: (logger: ILogger | undefined, evaluateClickthroughTemplate: EvaluateClickthroughTemplateFn, topProductGenerator: NonPersonalRecommenderFn, forYouProductGenerator: PersonalRecommenderFn, pastPurchasesProductGenerator: PersonalRecommenderFn, userId: string | undefined, trackers: IProductTrackerService, recommenderType: PublicRecommenderType) => Result<IBuiltCarousel>;
47
- export declare const BuildHybridCarousel: (logger: ILogger | undefined, evaluateClickthroughTemplate: EvaluateClickthroughTemplateFn, requestBids: RequestBidsFn, generateProductCardResponse: GenerateSponsoredProductCardResponseFn, topProductGenerator: NonPersonalRecommenderFn, forYouProductGenerator: PersonalRecommenderFn, pastPurchasesProductGenerator: PersonalRecommenderFn, userId: string | undefined, trackers: IProductTrackerService, recommenderType: PublicRecommenderType, request: IBidRequest) => Result<IBuiltCarousel>;
48
- export declare const BuildHybridCarouselFromInitialBid: (logger: ILogger | undefined, evaluateClickthroughTemplate: EvaluateClickthroughTemplateFn, requestBids: RequestBidsFn, generateProductCardResponse: GenerateSponsoredProductCardResponseFn, topProductGenerator: NonPersonalRecommenderFn, forYouProductGenerator: PersonalRecommenderFn, pastPurchasesProductGenerator: PersonalRecommenderFn, userId: string | undefined, trackers: IProductTrackerService, recommenderType: PublicRecommenderType, request: IBidRequest, initialBid: IBid) => Result<IBuiltCarousel>;
50
+ export declare const BuildRecommendedCarousel: (logger: ILogger | undefined, evaluateClickthroughTemplate: EvaluateClickthroughTemplateFn, topProductGenerator: NonPersonalRecommenderFn, forYouProductGenerator: PersonalRecommenderFn, pastPurchasesProductGenerator: PersonalRecommenderFn, userId: string | undefined, trackers: IProductTrackerService, recommenderType: PublicRecommenderType, category?: string) => Result<IBuiltCarousel>;
51
+ export declare const BuildHybridCarousel: (logger: ILogger | undefined, evaluateClickthroughTemplate: EvaluateClickthroughTemplateFn, requestBids: RequestBidsFn, generateProductCardResponse: GenerateSponsoredProductCardResponseFn, topProductGenerator: NonPersonalRecommenderFn, forYouProductGenerator: PersonalRecommenderFn, pastPurchasesProductGenerator: PersonalRecommenderFn, userId: string | undefined, trackers: IProductTrackerService, excludedZones: string[] | undefined, recommenderType: PublicRecommenderType, request: IBidRequest) => Result<IBuiltCarousel>;
52
+ export declare const BuildHybridCarouselFromInitialBid: (logger: ILogger | undefined, evaluateClickthroughTemplate: EvaluateClickthroughTemplateFn, requestBids: RequestBidsFn, generateProductCardResponse: GenerateSponsoredProductCardResponseFn, topProductGenerator: NonPersonalRecommenderFn, forYouProductGenerator: PersonalRecommenderFn, pastPurchasesProductGenerator: PersonalRecommenderFn, userId: string | undefined, trackers: IProductTrackerService, excludedZones: string[] | undefined, recommenderType: PublicRecommenderType, request: IBidRequest, initialBid: IBid) => Result<IBuiltCarousel>;
53
+ export type BuildSimpleCarouselFn = (bid: IBid) => AsyncResult<ISimpleBuiltCarousel>;
54
+ export declare const BuildSimpleCarousel: (logger: ILogger | undefined, windowInfo: INativeTemplateDelegateWindow, getAllSponsoredBrandProducts: GetAllSponsoredProductFromNativeIdFn, config: ICompiledPublisherConfiguration, bid: IBid) => AsyncResult<ISimpleBuiltCarousel>;
55
+ export type BuildAllSimpleCarouselsFn = (bidResponse: IBidResponse) => AsyncResult<ISimpleBuiltCarousel[]>;
56
+ export declare const BuildAllSimpleCarousels: (logger: ILogger | undefined, windowInfo: INativeTemplateDelegateWindow, getAllSponsoredBrandProducts: GetAllSponsoredProductFromNativeIdFn, config: ICompiledPublisherConfiguration, bidResponse: IBidResponse) => AsyncResult<ISimpleBuiltCarousel[]>;
49
57
  export declare class InvalidRecommenderTypeError extends Error {
50
58
  type: string;
51
59
  constructor(type: string);
@@ -0,0 +1,2 @@
1
+ import { type IProductInformation } from '../../models';
2
+ export declare const getDataFromHtmlString: (html: string) => Partial<IProductInformation>;
@@ -0,0 +1,8 @@
1
+ import { type IBid, type ICompiledPublisherConfiguration, type INativeResponse, type IProductInformation } from '../../models';
2
+ import { type AsyncResult, type GetAllSponsoredProductFromNativeIdFn, type ILogger, type Result } from '../../services';
3
+ import { type ITrackerObject } from './ProductCard';
4
+ export declare const fetchProductsFromBid: (logger: ILogger | undefined, getAllSponsoredProducts: GetAllSponsoredProductFromNativeIdFn, getAllSponsoredBrandProducts: GetAllSponsoredProductFromNativeIdFn, config: ICompiledPublisherConfiguration, bid: IBid) => AsyncResult<{
5
+ products: IProductInformation[];
6
+ native: INativeResponse;
7
+ }>;
8
+ export declare const getTrackers: (logger: ILogger | undefined, bid: IBid, native: INativeResponse, productIds?: string[]) => Result<ITrackerObject>;
@@ -1,5 +1,6 @@
1
- import type { IVast } from '../../models';
2
- import type { IBuiltResponse } from './BuiltResponse';
1
+ import type { IBid, IBidResponse, ICompiledPublisherConfiguration, INativeTemplateDelegateWindow, IVast } from '../../models';
2
+ import { type ILogger, type Result } from '../../services';
3
+ import { type IBuiltResponse } from './BuiltResponse';
3
4
  /**
4
5
  * A built video response. The raw Vast XML response from the bidder has been parsed out into a structure object here.
5
6
  * @expandType IBuiltResponse
@@ -14,4 +15,18 @@ export interface IBuiltVideo extends IBuiltResponse {
14
15
  * The clickthrough URL for the video
15
16
  */
16
17
  clickthrough: string;
18
+ /** The viewable pixel for the video. Call when the video is 50% in view for 2s */
19
+ viewable?: string;
17
20
  }
21
+ export interface IBuiltVideoCore extends IBuiltResponse {
22
+ type: 'video';
23
+ video: string;
24
+ clickthrough: string;
25
+ win: string;
26
+ /** The viewable pixel for the video. Call when the video is 50% in view for 2s */
27
+ viewable?: string;
28
+ }
29
+ export type BuildVideoResponseCoreFn = (bid: IBid) => Result<IBuiltVideoCore>;
30
+ export declare const BuildVideoResponseCore: (logger: ILogger | undefined, windowInfo: INativeTemplateDelegateWindow, configuration: ICompiledPublisherConfiguration, bid: IBid) => Result<IBuiltVideoCore>;
31
+ export type BuildAllVideosCoreFn = (bidResponse: IBidResponse) => Result<IBuiltVideoCore[]>;
32
+ export declare const BuildAllVideosCore: (logger: ILogger | undefined, windowInfo: INativeTemplateDelegateWindow, configuration: ICompiledPublisherConfiguration, bidResponse: IBidResponse) => Result<IBuiltVideoCore[]>;
@@ -1,6 +1,18 @@
1
+ import type { IBid, IBidResponse, ICompiledPublisherConfiguration, INativeTemplateDelegateWindow } from '../../models';
2
+ import { type AsyncResult, type GetAllSponsoredProductFromNativeIdFn, type ILogger } from '../../services';
3
+ import { type IBuiltBannerResponse } from './Banner';
4
+ import { type ISimpleBuiltCarousel } from './Carousel';
5
+ import { type IBuiltVideoCore } from './Video';
1
6
  export * from './BuiltResponse';
2
7
  export * from './Banner';
3
8
  export * from './Clickthrough';
4
9
  export * from './ProductCard';
5
10
  export * from './Video';
6
11
  export * from './Carousel';
12
+ type CreativeResponsesCore = IBuiltBannerResponse | IBuiltVideoCore | ISimpleBuiltCarousel;
13
+ export type BuildAllResponsesCoreFn = (bidResponse: IBidResponse) => AsyncResult<CreativeResponsesCore[]>;
14
+ export declare const BuildAllResponsesCore: (logger: ILogger | undefined, windowInfo: INativeTemplateDelegateWindow, config: ICompiledPublisherConfiguration, getAllSponsoredBrandProducts: GetAllSponsoredProductFromNativeIdFn, bidResponse: IBidResponse) => AsyncResult<CreativeResponsesCore[]>;
15
+ export declare class InvalidCreativeTypeError extends Error {
16
+ readonly bid: IBid;
17
+ constructor(bid: IBid);
18
+ }
@@ -2,4 +2,5 @@ export * from './helpers';
2
2
  export * from './models';
3
3
  export * from './services';
4
4
  export * from './Api';
5
- export * from './BuildInfo';
5
+ export * as SurfsideAdsCoreVersionInfo from './BuildInfo';
6
+ export * from './Init';
@@ -4,7 +4,7 @@ export interface ICompiledCategoryGlobalConfigDTO {
4
4
  globalPatterns: string[];
5
5
  }
6
6
  export interface ICompiledCategoryPublisherConfigurationDTO {
7
- 'strategy': CategoryStrategy;
7
+ strategy: CategoryStrategy;
8
8
  customCanonicalMap: Record<string, string>;
9
9
  customPatterns: string[];
10
10
  }