@wix/himalaya-cli 0.2046.0 → 0.2048.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 (327) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/index.d.ts +5 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/monitoring.d.ts +81 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +1 -1
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap-contract.d.ts +7 -1
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/checkout-monitoring.d.ts +23 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +1 -1
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -1
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -1
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -1
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +530 -68
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +198 -0
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -1
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -1
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -1
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +532 -70
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -1
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -1
  18. package/dist/browser-plane/assets.json +5 -5
  19. package/dist/browser-plane/preview-deferred/{bfa6093b86d3106ef891a717dc0da1b1c0d9d1a456259753c25398bbafbcef8e.bin → 78e9187a8551e2a63e7bc9f5cda8449c6a39ba3d9bcfa40947713322e68a3e3b.bin} +1 -1
  20. package/dist/browser-plane/sw.js +7 -7
  21. package/dist/cli.mjs +47 -49
  22. package/dist/preview-assets.generated.bin +0 -0
  23. package/guides/sdk-reference.json +121 -2
  24. package/package.json +2 -2
  25. package/templates/beauty-salon/l10n/ar.json +5 -0
  26. package/templates/beauty-salon/l10n/cs.json +5 -0
  27. package/templates/beauty-salon/l10n/da.json +5 -0
  28. package/templates/beauty-salon/l10n/de.json +5 -0
  29. package/templates/beauty-salon/l10n/el.json +5 -0
  30. package/templates/beauty-salon/l10n/es.json +5 -0
  31. package/templates/beauty-salon/l10n/fi.json +5 -0
  32. package/templates/beauty-salon/l10n/fr.json +5 -0
  33. package/templates/beauty-salon/l10n/he.json +4 -0
  34. package/templates/beauty-salon/l10n/hu.json +5 -0
  35. package/templates/beauty-salon/l10n/id.json +5 -0
  36. package/templates/beauty-salon/l10n/it.json +5 -0
  37. package/templates/beauty-salon/l10n/ja.json +5 -0
  38. package/templates/beauty-salon/l10n/ko.json +5 -0
  39. package/templates/beauty-salon/l10n/lt.json +5 -0
  40. package/templates/beauty-salon/l10n/nl.json +5 -0
  41. package/templates/beauty-salon/l10n/no.json +5 -0
  42. package/templates/beauty-salon/l10n/pl.json +5 -0
  43. package/templates/beauty-salon/l10n/pt.json +5 -0
  44. package/templates/beauty-salon/l10n/ru.json +5 -0
  45. package/templates/beauty-salon/l10n/sv.json +5 -0
  46. package/templates/beauty-salon/l10n/th.json +5 -0
  47. package/templates/beauty-salon/l10n/tr.json +5 -0
  48. package/templates/beauty-salon/l10n/uk.json +5 -0
  49. package/templates/beauty-salon/l10n/vi.json +5 -0
  50. package/templates/beauty-salon/l10n/zh.json +5 -0
  51. package/templates/beauty-salon/tier5-src/himi-branded-lite-notifsettings/index.ts +225 -45
  52. package/templates/branded-lite/l10n/ar.json +5 -0
  53. package/templates/branded-lite/l10n/cs.json +5 -0
  54. package/templates/branded-lite/l10n/da.json +5 -0
  55. package/templates/branded-lite/l10n/de.json +5 -0
  56. package/templates/branded-lite/l10n/el.json +5 -0
  57. package/templates/branded-lite/l10n/es.json +5 -0
  58. package/templates/branded-lite/l10n/fi.json +5 -0
  59. package/templates/branded-lite/l10n/fr.json +5 -0
  60. package/templates/branded-lite/l10n/he.json +4 -0
  61. package/templates/branded-lite/l10n/hu.json +5 -0
  62. package/templates/branded-lite/l10n/id.json +5 -0
  63. package/templates/branded-lite/l10n/it.json +5 -0
  64. package/templates/branded-lite/l10n/ja.json +5 -0
  65. package/templates/branded-lite/l10n/ko.json +5 -0
  66. package/templates/branded-lite/l10n/lt.json +5 -0
  67. package/templates/branded-lite/l10n/nl.json +5 -0
  68. package/templates/branded-lite/l10n/no.json +5 -0
  69. package/templates/branded-lite/l10n/pl.json +5 -0
  70. package/templates/branded-lite/l10n/pt.json +5 -0
  71. package/templates/branded-lite/l10n/ru.json +5 -0
  72. package/templates/branded-lite/l10n/sv.json +5 -0
  73. package/templates/branded-lite/l10n/th.json +5 -0
  74. package/templates/branded-lite/l10n/tr.json +5 -0
  75. package/templates/branded-lite/l10n/uk.json +5 -0
  76. package/templates/branded-lite/l10n/vi.json +5 -0
  77. package/templates/branded-lite/l10n/zh.json +5 -0
  78. package/templates/branded-lite/tier5-src/himi-branded-lite-notifsettings/index.ts +225 -45
  79. package/templates/brandy/config.ts +1 -0
  80. package/templates/brandy/dev/member-screens.ts +1619 -411
  81. package/templates/brandy/tier5-src/_shared/empty-flags.ts +33 -0
  82. package/templates/brandy/tier5-src/_shared/push-permission.ts +75 -0
  83. package/templates/brandy/tier5-src/himi-branded-lite-notifsettings/index.ts +455 -0
  84. package/templates/community-club/l10n/ar.json +5 -0
  85. package/templates/community-club/l10n/cs.json +5 -0
  86. package/templates/community-club/l10n/da.json +5 -0
  87. package/templates/community-club/l10n/de.json +5 -0
  88. package/templates/community-club/l10n/el.json +5 -0
  89. package/templates/community-club/l10n/es.json +5 -0
  90. package/templates/community-club/l10n/fi.json +5 -0
  91. package/templates/community-club/l10n/fr.json +5 -0
  92. package/templates/community-club/l10n/he.json +4 -0
  93. package/templates/community-club/l10n/hu.json +5 -0
  94. package/templates/community-club/l10n/id.json +5 -0
  95. package/templates/community-club/l10n/it.json +5 -0
  96. package/templates/community-club/l10n/ja.json +5 -0
  97. package/templates/community-club/l10n/ko.json +5 -0
  98. package/templates/community-club/l10n/lt.json +5 -0
  99. package/templates/community-club/l10n/nl.json +5 -0
  100. package/templates/community-club/l10n/no.json +5 -0
  101. package/templates/community-club/l10n/pl.json +5 -0
  102. package/templates/community-club/l10n/pt.json +5 -0
  103. package/templates/community-club/l10n/ru.json +5 -0
  104. package/templates/community-club/l10n/sv.json +5 -0
  105. package/templates/community-club/l10n/th.json +5 -0
  106. package/templates/community-club/l10n/tr.json +5 -0
  107. package/templates/community-club/l10n/uk.json +5 -0
  108. package/templates/community-club/l10n/vi.json +5 -0
  109. package/templates/community-club/l10n/zh.json +5 -0
  110. package/templates/community-club/tier5-src/himi-branded-lite-notifsettings/index.ts +225 -45
  111. package/templates/events-meetups/l10n/ar.json +5 -0
  112. package/templates/events-meetups/l10n/cs.json +5 -0
  113. package/templates/events-meetups/l10n/da.json +5 -0
  114. package/templates/events-meetups/l10n/de.json +5 -0
  115. package/templates/events-meetups/l10n/el.json +5 -0
  116. package/templates/events-meetups/l10n/es.json +5 -0
  117. package/templates/events-meetups/l10n/fi.json +5 -0
  118. package/templates/events-meetups/l10n/fr.json +5 -0
  119. package/templates/events-meetups/l10n/he.json +4 -0
  120. package/templates/events-meetups/l10n/hu.json +5 -0
  121. package/templates/events-meetups/l10n/id.json +5 -0
  122. package/templates/events-meetups/l10n/it.json +5 -0
  123. package/templates/events-meetups/l10n/ja.json +5 -0
  124. package/templates/events-meetups/l10n/ko.json +5 -0
  125. package/templates/events-meetups/l10n/lt.json +5 -0
  126. package/templates/events-meetups/l10n/nl.json +5 -0
  127. package/templates/events-meetups/l10n/no.json +5 -0
  128. package/templates/events-meetups/l10n/pl.json +5 -0
  129. package/templates/events-meetups/l10n/pt.json +5 -0
  130. package/templates/events-meetups/l10n/ru.json +5 -0
  131. package/templates/events-meetups/l10n/sv.json +5 -0
  132. package/templates/events-meetups/l10n/th.json +5 -0
  133. package/templates/events-meetups/l10n/tr.json +5 -0
  134. package/templates/events-meetups/l10n/uk.json +5 -0
  135. package/templates/events-meetups/l10n/vi.json +5 -0
  136. package/templates/events-meetups/l10n/zh.json +5 -0
  137. package/templates/events-meetups/tier5-src/himi-branded-lite-notifsettings/index.ts +225 -45
  138. package/templates/gym-fitness/l10n/ar.json +5 -0
  139. package/templates/gym-fitness/l10n/cs.json +5 -0
  140. package/templates/gym-fitness/l10n/da.json +5 -0
  141. package/templates/gym-fitness/l10n/de.json +5 -0
  142. package/templates/gym-fitness/l10n/el.json +5 -0
  143. package/templates/gym-fitness/l10n/es.json +5 -0
  144. package/templates/gym-fitness/l10n/fi.json +5 -0
  145. package/templates/gym-fitness/l10n/fr.json +5 -0
  146. package/templates/gym-fitness/l10n/he.json +4 -0
  147. package/templates/gym-fitness/l10n/hu.json +5 -0
  148. package/templates/gym-fitness/l10n/id.json +5 -0
  149. package/templates/gym-fitness/l10n/it.json +5 -0
  150. package/templates/gym-fitness/l10n/ja.json +5 -0
  151. package/templates/gym-fitness/l10n/ko.json +5 -0
  152. package/templates/gym-fitness/l10n/lt.json +5 -0
  153. package/templates/gym-fitness/l10n/nl.json +5 -0
  154. package/templates/gym-fitness/l10n/no.json +5 -0
  155. package/templates/gym-fitness/l10n/pl.json +5 -0
  156. package/templates/gym-fitness/l10n/pt.json +5 -0
  157. package/templates/gym-fitness/l10n/ru.json +5 -0
  158. package/templates/gym-fitness/l10n/sv.json +5 -0
  159. package/templates/gym-fitness/l10n/th.json +5 -0
  160. package/templates/gym-fitness/l10n/tr.json +5 -0
  161. package/templates/gym-fitness/l10n/uk.json +5 -0
  162. package/templates/gym-fitness/l10n/vi.json +5 -0
  163. package/templates/gym-fitness/l10n/zh.json +5 -0
  164. package/templates/gym-fitness/tier5-src/himi-branded-lite-notifsettings/index.ts +225 -45
  165. package/templates/nonprofit-cause/l10n/ar.json +5 -0
  166. package/templates/nonprofit-cause/l10n/cs.json +5 -0
  167. package/templates/nonprofit-cause/l10n/da.json +5 -0
  168. package/templates/nonprofit-cause/l10n/de.json +5 -0
  169. package/templates/nonprofit-cause/l10n/el.json +5 -0
  170. package/templates/nonprofit-cause/l10n/es.json +5 -0
  171. package/templates/nonprofit-cause/l10n/fi.json +5 -0
  172. package/templates/nonprofit-cause/l10n/fr.json +5 -0
  173. package/templates/nonprofit-cause/l10n/he.json +4 -0
  174. package/templates/nonprofit-cause/l10n/hu.json +5 -0
  175. package/templates/nonprofit-cause/l10n/id.json +5 -0
  176. package/templates/nonprofit-cause/l10n/it.json +5 -0
  177. package/templates/nonprofit-cause/l10n/ja.json +5 -0
  178. package/templates/nonprofit-cause/l10n/ko.json +5 -0
  179. package/templates/nonprofit-cause/l10n/lt.json +5 -0
  180. package/templates/nonprofit-cause/l10n/nl.json +5 -0
  181. package/templates/nonprofit-cause/l10n/no.json +5 -0
  182. package/templates/nonprofit-cause/l10n/pl.json +5 -0
  183. package/templates/nonprofit-cause/l10n/pt.json +5 -0
  184. package/templates/nonprofit-cause/l10n/ru.json +5 -0
  185. package/templates/nonprofit-cause/l10n/sv.json +5 -0
  186. package/templates/nonprofit-cause/l10n/th.json +5 -0
  187. package/templates/nonprofit-cause/l10n/tr.json +5 -0
  188. package/templates/nonprofit-cause/l10n/uk.json +5 -0
  189. package/templates/nonprofit-cause/l10n/vi.json +5 -0
  190. package/templates/nonprofit-cause/l10n/zh.json +5 -0
  191. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-notifsettings/index.ts +225 -45
  192. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-notifsettings/index.ts +225 -45
  193. package/templates/podcast-creator/l10n/ar.json +5 -0
  194. package/templates/podcast-creator/l10n/cs.json +5 -0
  195. package/templates/podcast-creator/l10n/da.json +5 -0
  196. package/templates/podcast-creator/l10n/de.json +5 -0
  197. package/templates/podcast-creator/l10n/el.json +5 -0
  198. package/templates/podcast-creator/l10n/es.json +5 -0
  199. package/templates/podcast-creator/l10n/fi.json +5 -0
  200. package/templates/podcast-creator/l10n/fr.json +5 -0
  201. package/templates/podcast-creator/l10n/he.json +4 -0
  202. package/templates/podcast-creator/l10n/hu.json +5 -0
  203. package/templates/podcast-creator/l10n/id.json +5 -0
  204. package/templates/podcast-creator/l10n/it.json +5 -0
  205. package/templates/podcast-creator/l10n/ja.json +5 -0
  206. package/templates/podcast-creator/l10n/ko.json +5 -0
  207. package/templates/podcast-creator/l10n/lt.json +5 -0
  208. package/templates/podcast-creator/l10n/nl.json +5 -0
  209. package/templates/podcast-creator/l10n/no.json +5 -0
  210. package/templates/podcast-creator/l10n/pl.json +5 -0
  211. package/templates/podcast-creator/l10n/pt.json +5 -0
  212. package/templates/podcast-creator/l10n/ru.json +5 -0
  213. package/templates/podcast-creator/l10n/sv.json +5 -0
  214. package/templates/podcast-creator/l10n/th.json +5 -0
  215. package/templates/podcast-creator/l10n/tr.json +5 -0
  216. package/templates/podcast-creator/l10n/uk.json +5 -0
  217. package/templates/podcast-creator/l10n/vi.json +5 -0
  218. package/templates/podcast-creator/l10n/zh.json +5 -0
  219. package/templates/podcast-creator/tier5-src/himi-branded-lite-notifsettings/index.ts +225 -45
  220. package/templates/portfolio-creative/l10n/ar.json +5 -0
  221. package/templates/portfolio-creative/l10n/cs.json +5 -0
  222. package/templates/portfolio-creative/l10n/da.json +5 -0
  223. package/templates/portfolio-creative/l10n/de.json +5 -0
  224. package/templates/portfolio-creative/l10n/el.json +5 -0
  225. package/templates/portfolio-creative/l10n/es.json +5 -0
  226. package/templates/portfolio-creative/l10n/fi.json +5 -0
  227. package/templates/portfolio-creative/l10n/fr.json +5 -0
  228. package/templates/portfolio-creative/l10n/he.json +4 -0
  229. package/templates/portfolio-creative/l10n/hu.json +5 -0
  230. package/templates/portfolio-creative/l10n/id.json +5 -0
  231. package/templates/portfolio-creative/l10n/it.json +5 -0
  232. package/templates/portfolio-creative/l10n/ja.json +5 -0
  233. package/templates/portfolio-creative/l10n/ko.json +5 -0
  234. package/templates/portfolio-creative/l10n/lt.json +5 -0
  235. package/templates/portfolio-creative/l10n/nl.json +5 -0
  236. package/templates/portfolio-creative/l10n/no.json +5 -0
  237. package/templates/portfolio-creative/l10n/pl.json +5 -0
  238. package/templates/portfolio-creative/l10n/pt.json +5 -0
  239. package/templates/portfolio-creative/l10n/ru.json +5 -0
  240. package/templates/portfolio-creative/l10n/sv.json +5 -0
  241. package/templates/portfolio-creative/l10n/th.json +5 -0
  242. package/templates/portfolio-creative/l10n/tr.json +5 -0
  243. package/templates/portfolio-creative/l10n/uk.json +5 -0
  244. package/templates/portfolio-creative/l10n/vi.json +5 -0
  245. package/templates/portfolio-creative/l10n/zh.json +5 -0
  246. package/templates/portfolio-creative/tier5-src/himi-branded-lite-notifsettings/index.ts +225 -45
  247. package/templates/restaurant/l10n/ar.json +5 -0
  248. package/templates/restaurant/l10n/cs.json +5 -0
  249. package/templates/restaurant/l10n/da.json +5 -0
  250. package/templates/restaurant/l10n/de.json +5 -0
  251. package/templates/restaurant/l10n/el.json +5 -0
  252. package/templates/restaurant/l10n/es.json +5 -0
  253. package/templates/restaurant/l10n/fi.json +5 -0
  254. package/templates/restaurant/l10n/fr.json +5 -0
  255. package/templates/restaurant/l10n/he.json +4 -0
  256. package/templates/restaurant/l10n/hu.json +5 -0
  257. package/templates/restaurant/l10n/id.json +5 -0
  258. package/templates/restaurant/l10n/it.json +5 -0
  259. package/templates/restaurant/l10n/ja.json +5 -0
  260. package/templates/restaurant/l10n/ko.json +5 -0
  261. package/templates/restaurant/l10n/lt.json +5 -0
  262. package/templates/restaurant/l10n/nl.json +5 -0
  263. package/templates/restaurant/l10n/no.json +5 -0
  264. package/templates/restaurant/l10n/pl.json +5 -0
  265. package/templates/restaurant/l10n/pt.json +5 -0
  266. package/templates/restaurant/l10n/ru.json +5 -0
  267. package/templates/restaurant/l10n/sv.json +5 -0
  268. package/templates/restaurant/l10n/th.json +5 -0
  269. package/templates/restaurant/l10n/tr.json +5 -0
  270. package/templates/restaurant/l10n/uk.json +5 -0
  271. package/templates/restaurant/l10n/vi.json +5 -0
  272. package/templates/restaurant/l10n/zh.json +5 -0
  273. package/templates/restaurant/tier5-src/himi-branded-lite-notifsettings/index.ts +225 -45
  274. package/templates/retail-store/l10n/ar.json +5 -0
  275. package/templates/retail-store/l10n/cs.json +5 -0
  276. package/templates/retail-store/l10n/da.json +5 -0
  277. package/templates/retail-store/l10n/de.json +5 -0
  278. package/templates/retail-store/l10n/el.json +5 -0
  279. package/templates/retail-store/l10n/es.json +5 -0
  280. package/templates/retail-store/l10n/fi.json +5 -0
  281. package/templates/retail-store/l10n/fr.json +5 -0
  282. package/templates/retail-store/l10n/he.json +4 -0
  283. package/templates/retail-store/l10n/hu.json +5 -0
  284. package/templates/retail-store/l10n/id.json +5 -0
  285. package/templates/retail-store/l10n/it.json +5 -0
  286. package/templates/retail-store/l10n/ja.json +5 -0
  287. package/templates/retail-store/l10n/ko.json +5 -0
  288. package/templates/retail-store/l10n/lt.json +5 -0
  289. package/templates/retail-store/l10n/nl.json +5 -0
  290. package/templates/retail-store/l10n/no.json +5 -0
  291. package/templates/retail-store/l10n/pl.json +5 -0
  292. package/templates/retail-store/l10n/pt.json +5 -0
  293. package/templates/retail-store/l10n/ru.json +5 -0
  294. package/templates/retail-store/l10n/sv.json +5 -0
  295. package/templates/retail-store/l10n/th.json +5 -0
  296. package/templates/retail-store/l10n/tr.json +5 -0
  297. package/templates/retail-store/l10n/uk.json +5 -0
  298. package/templates/retail-store/l10n/vi.json +5 -0
  299. package/templates/retail-store/l10n/zh.json +5 -0
  300. package/templates/retail-store/tier5-src/himi-branded-lite-notifsettings/index.ts +225 -45
  301. package/templates/yoga-studio/l10n/ar.json +5 -0
  302. package/templates/yoga-studio/l10n/cs.json +5 -0
  303. package/templates/yoga-studio/l10n/da.json +5 -0
  304. package/templates/yoga-studio/l10n/de.json +5 -0
  305. package/templates/yoga-studio/l10n/el.json +5 -0
  306. package/templates/yoga-studio/l10n/es.json +5 -0
  307. package/templates/yoga-studio/l10n/fi.json +5 -0
  308. package/templates/yoga-studio/l10n/fr.json +5 -0
  309. package/templates/yoga-studio/l10n/he.json +4 -0
  310. package/templates/yoga-studio/l10n/hu.json +5 -0
  311. package/templates/yoga-studio/l10n/id.json +5 -0
  312. package/templates/yoga-studio/l10n/it.json +5 -0
  313. package/templates/yoga-studio/l10n/ja.json +5 -0
  314. package/templates/yoga-studio/l10n/ko.json +5 -0
  315. package/templates/yoga-studio/l10n/lt.json +5 -0
  316. package/templates/yoga-studio/l10n/nl.json +5 -0
  317. package/templates/yoga-studio/l10n/no.json +5 -0
  318. package/templates/yoga-studio/l10n/pl.json +5 -0
  319. package/templates/yoga-studio/l10n/pt.json +5 -0
  320. package/templates/yoga-studio/l10n/ru.json +5 -0
  321. package/templates/yoga-studio/l10n/sv.json +5 -0
  322. package/templates/yoga-studio/l10n/th.json +5 -0
  323. package/templates/yoga-studio/l10n/tr.json +5 -0
  324. package/templates/yoga-studio/l10n/uk.json +5 -0
  325. package/templates/yoga-studio/l10n/vi.json +5 -0
  326. package/templates/yoga-studio/l10n/zh.json +5 -0
  327. package/templates/yoga-studio/tier5-src/himi-branded-lite-notifsettings/index.ts +225 -45
@@ -1,5 +1,6 @@
1
1
  import type { TransactionStore } from "./delivery-contract.js";
2
2
  import type { AppBindingSource } from "./wix-payments-contract.js";
3
+ import type { IapEventSink } from "./monitoring.js";
3
4
  export * from "./delivery-contract.js";
4
5
  export * from "./delivery.js";
5
6
  export * from "./pricing-contract.js";
@@ -13,6 +14,7 @@ export * from "./wix-payments-contract.js";
13
14
  export * from "./wix-payments.js";
14
15
  export * from "./host-session.js";
15
16
  export * from "./attendance-classifier.js";
17
+ export * from "./monitoring.js";
16
18
  /** The three store product categories. */
17
19
  export type ProductType = "subscription" | "nonConsumable" | "consumable";
18
20
  export interface Product {
@@ -83,6 +85,9 @@ export declare function getPaywallConfig(): Promise<PaywallConfig>;
83
85
  * (Android, the web) or cannot say; the server then falls back to the member's address.
84
86
  */
85
87
  export declare function storefrontCountryCode(): Promise<string | null>;
88
+ /** The binary's telemetry hub for IAP monitoring: every event of `createIapMonitor`. A binary
89
+ * without `capability.iap.logEvent` refuses the call, and the event is dropped. */
90
+ export declare const nativeIapEventSink: IapEventSink;
86
91
  /**
87
92
  * Look up store metadata (localized title/price/etc.) for the given product ids.
88
93
  * Ids must be pre-registered in App Store Connect / Play Console — they cannot be
@@ -0,0 +1,81 @@
1
+ export type IapLogLevel = "info" | "warn" | "error";
2
+ /** Where the purchase started: a cart, one in-app item from a cart of its own, a checkout a page
3
+ * or screen opened, or a recovery of an earlier one. */
4
+ export type IapEntry = "cart" | "cartAlone" | "page" | "recovery";
5
+ /** `recover`: completing earlier purchases before this one opens Apple's sheet. */
6
+ export type IapStep = "recover" | "charge" | "start" | "storekit" | "complete" | "finish";
7
+ export type IapBug = "himi-iap-unexpected" | "himi-iap-charged-not-completed" | "himi-iap-paid-unit-stuck" | "himi-iap-recovery-crash";
8
+ export interface IapIds {
9
+ paymentGatewayOrderId?: string;
10
+ orderId?: string;
11
+ productIds?: string;
12
+ wixTransactionId?: string;
13
+ paymentId?: string;
14
+ storeProductId?: string;
15
+ transactionId?: string;
16
+ }
17
+ /** The fields every event carries, read when the event is sent. */
18
+ export interface IapMonitoringContext {
19
+ msid?: string;
20
+ bundleId?: string;
21
+ isLoggedIn: boolean;
22
+ }
23
+ export interface IapMonitorEvent {
24
+ type: string;
25
+ level: IapLogLevel;
26
+ data: Record<string, unknown>;
27
+ }
28
+ export type IapEventSink = (event: IapMonitorEvent) => void;
29
+ type Data = Record<string, unknown>;
30
+ /** Field names never sent, compared without case, `_` or `-`. A member id with order and
31
+ * transaction ids would make identity-linked purchase records; wix-iap's Payment names its member. */
32
+ export declare const FORBIDDEN_IAP_FIELDS: readonly string[];
33
+ /** What may be sent of `data`: undefined fields, forbidden names and JWS or email values are left
34
+ * out at every depth, arrays included. Anything deeper than MAX_DEPTH is dropped, not sent unread. */
35
+ export declare function scrubIapData(data: Data): Data;
36
+ /** A failure's HTTP status, Wix code, server request id and message, read by shape (a wix-iap
37
+ * failure, an HTTP error); never throws, since it runs inside the flow's own error handling. */
38
+ export declare function describeIapError(error: unknown): Data;
39
+ /** An outcome's level: ERROR when Apple charged and it failed, WARN for any other failure. */
40
+ export declare function outcomeLevel(outcome: Data): IapLogLevel;
41
+ export interface IapMonitorOptions {
42
+ /** Where events go; the binary's telemetry is `nativeIapEventSink` (index.ts). */
43
+ sink: IapEventSink;
44
+ context?: () => IapMonitoringContext;
45
+ now?: () => number;
46
+ newId?: () => string;
47
+ }
48
+ export interface IapMonitor {
49
+ log(type: string, data?: Data, level?: IapLogLevel): void;
50
+ bug(fingerprint: IapBug, error: unknown, data?: Data): void;
51
+ flow(entry: IapEntry, ids?: IapIds): IapFlow;
52
+ gate(gate: {
53
+ storeKit: boolean;
54
+ experiment: boolean;
55
+ enabled: boolean;
56
+ }): void;
57
+ }
58
+ /** Builds the IAP monitor: every event gets the shared fields and `eventAt`, loses the never-logged fields,
59
+ * and goes to `options.sink`. A sink that throws is ignored, so monitoring never breaks a purchase. */
60
+ export declare function createIapMonitor(options: IapMonitorOptions): IapMonitor;
61
+ /** One purchase from Continue to its outcome: its ids, each step's time and the last step reached. */
62
+ export interface IapFlow {
63
+ readonly flowId: string;
64
+ readonly entry: IapEntry;
65
+ /** The ids known so far, for an event logged outside the flow. */
66
+ readonly knownIds: IapIds;
67
+ /** The step the purchase is now in; the time of the one before is kept. */
68
+ at(step: IapStep): void;
69
+ add(ids: IapIds): void;
70
+ /** Fields for the outcome only. */
71
+ note(data: Data): void;
72
+ /** `iap.purchase.started`, and the IapPurchase transaction starts: a start with no outcome is a
73
+ * purchase the app never finished (killed, crashed). */
74
+ started(extra?: Data): void;
75
+ /** `iap.<step>.failed`: an error when Apple charged, unless it is retried later. */
76
+ failed(step: IapStep, error: unknown, extra?: Data, level?: IapLogLevel): void;
77
+ /** `iap.purchase.outcome`: what the shopper was shown, how far it got and how long each step
78
+ * took. The IapPurchase transaction finishes only when bought. */
79
+ outcome(outcome: Data, messageKey: string | undefined, extra?: Data): void;
80
+ }
81
+ export {};
@@ -18,7 +18,7 @@ export declare const CAPABILITY_REGISTRY: {
18
18
  readonly haptic: readonly ["play", "sequence", "vibrate"];
19
19
  readonly health: readonly ["availability", "getPermissionStatus", "query", "requestPermission", "saveWorkout"];
20
20
  readonly himi_apps: readonly ["canOpen", "current", "hostInfo", "open"];
21
- readonly iap: readonly ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore", "storefront"];
21
+ readonly iap: readonly ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "logEvent", "purchase", "purchaseForVerification", "restore", "storefront"];
22
22
  readonly image_labeling: readonly ["availability", "label"];
23
23
  readonly keyboard: readonly ["dismiss"];
24
24
  readonly legacy_import: readonly ["ack", "read"];
@@ -1,10 +1,13 @@
1
- import type { AppBindingSource, CatalogReference, Clock, DeliveryState, EcomCatalogReference, HostCallExpectation, IapCatalogPricing, MemberIdentitySource, SessionProvider, TransactionStore, WixIapClient } from "@wix/himalaya/iap";
1
+ import type { AppBindingSource, CatalogReference, Clock, DeliveryState, EcomCatalogReference, HostCallExpectation, IapCatalogPricing, IapEventSink, MemberIdentitySource, SessionProvider, TransactionStore, WixIapClient } from "@wix/himalaya/iap";
2
2
  /** The host's Wix REST bridge (`himalaya.wixApi`). Resolves a 2xx body; rejects with
3
3
  * `HTTP <status> [<code>]: <message>` otherwise. Credentials are attached natively.
4
4
  * Same positional shape as the runtime's `wixApiCall`: `expectation` is bridge metadata for a
5
5
  * protected call, after `headers`, and never an HTTP header. */
6
6
  export interface WixBridge {
7
7
  call(method: "GET" | "POST", path: string, body?: unknown, headers?: Record<string, string>, expectation?: HostCallExpectation): Promise<unknown>;
8
+ /** The bridge this one wraps to watch its calls. The host's bridge stays the host's: its
9
+ * identity checks still apply to a wrapper of it. */
10
+ readonly observes?: WixBridge;
8
11
  }
9
12
  /** Why a bridge call gave no body. `sessionChanged`: the captured session is no longer current,
10
13
  * before the send or after the answer; nothing from it may be used or stored. */
@@ -284,6 +287,9 @@ export interface AppleIapCheckoutDependencies {
284
287
  bridge?: WixBridge;
285
288
  jitter?: (baseDelayMs: number) => number;
286
289
  onState?: (state: AppleIapCheckoutState) => void;
290
+ /** Where the purchase's monitoring goes (docs/iap-monitoring.md); defaults to the binary's
291
+ * telemetry hub through `capability.iap.logEvent`. */
292
+ monitorSink?: IapEventSink;
287
293
  }
288
294
  export interface AppleIapCheckout {
289
295
  /** Recovers held purchases and resumes tracking payments already handed over. */
@@ -0,0 +1,23 @@
1
+ import type { AppBindingSource, IapEventSink, SessionProvider, TransactionStore, WixIapClient } from "@wix/himalaya/iap";
2
+ import type { AppleIapCheckoutState, OrderFailureCode, OrderRef, WixBridge } from "./apple-iap-contract.js";
3
+ /** What an attempt that settled on its own was doing when monitoring saw it. */
4
+ export type RecoveryTrigger = "launch" | "reconcile" | "retry" | "tick" | "beforePurchase";
5
+ export interface CheckoutMonitoring {
6
+ wixIap(client: WixIapClient): WixIapClient;
7
+ store(store: TransactionStore): TransactionStore;
8
+ bridge(bridge: WixBridge): WixBridge;
9
+ binding(source: AppBindingSource): AppBindingSource;
10
+ /** One `buy`: the flow, its outcome from the state the purchase ended in, and an exception as a bug. */
11
+ purchase(run: (begin: () => void) => Promise<AppleIapCheckoutState>): Promise<AppleIapCheckoutState>;
12
+ /** A public call that completes earlier purchases; a crash in it is a bug. */
13
+ recovery<T>(trigger: RecoveryTrigger, run: () => Promise<T>): Promise<T>;
14
+ notRun(reason: string): void;
15
+ loginFailed(from: string): void;
16
+ orderFailed(failure: OrderFailureCode | undefined): void;
17
+ paidUnitStuck(ref: OrderRef): void;
18
+ gate(storeKit: boolean): void;
19
+ }
20
+ export declare function createCheckoutMonitoring(deps: {
21
+ sink?: IapEventSink;
22
+ session: SessionProvider;
23
+ }): CheckoutMonitoring;
@@ -33,7 +33,7 @@ var CAPABILITY_REGISTRY = {
33
33
  "haptic": ["play", "sequence", "vibrate"],
34
34
  "health": ["availability", "getPermissionStatus", "query", "requestPermission", "saveWorkout"],
35
35
  "himi_apps": ["canOpen", "current", "hostInfo", "open"],
36
- "iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore", "storefront"],
36
+ "iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "logEvent", "purchase", "purchaseForVerification", "restore", "storefront"],
37
37
  "image_labeling": ["availability", "label"],
38
38
  "keyboard": ["dismiss"],
39
39
  "legacy_import": ["ack", "read"],
@@ -33,7 +33,7 @@ var CAPABILITY_REGISTRY = {
33
33
  "haptic": ["play", "sequence", "vibrate"],
34
34
  "health": ["availability", "getPermissionStatus", "query", "requestPermission", "saveWorkout"],
35
35
  "himi_apps": ["canOpen", "current", "hostInfo", "open"],
36
- "iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore", "storefront"],
36
+ "iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "logEvent", "purchase", "purchaseForVerification", "restore", "storefront"],
37
37
  "image_labeling": ["availability", "label"],
38
38
  "keyboard": ["dismiss"],
39
39
  "legacy_import": ["ack", "read"],
@@ -33,7 +33,7 @@ var CAPABILITY_REGISTRY = {
33
33
  "haptic": ["play", "sequence", "vibrate"],
34
34
  "health": ["availability", "getPermissionStatus", "query", "requestPermission", "saveWorkout"],
35
35
  "himi_apps": ["canOpen", "current", "hostInfo", "open"],
36
- "iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore", "storefront"],
36
+ "iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "logEvent", "purchase", "purchaseForVerification", "restore", "storefront"],
37
37
  "image_labeling": ["availability", "label"],
38
38
  "keyboard": ["dismiss"],
39
39
  "legacy_import": ["ack", "read"],
@@ -33,7 +33,7 @@ var CAPABILITY_REGISTRY = {
33
33
  "haptic": ["play", "sequence", "vibrate"],
34
34
  "health": ["availability", "getPermissionStatus", "query", "requestPermission", "saveWorkout"],
35
35
  "himi_apps": ["canOpen", "current", "hostInfo", "open"],
36
- "iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore", "storefront"],
36
+ "iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "logEvent", "purchase", "purchaseForVerification", "restore", "storefront"],
37
37
  "image_labeling": ["availability", "label"],
38
38
  "keyboard": ["dismiss"],
39
39
  "legacy_import": ["ack", "read"],