@xyo-network/payment-payload-plugins 2.99.3 → 2.99.5

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 (383) hide show
  1. package/dist/browser/Billing/Address/Address.d.cts +1 -1
  2. package/dist/browser/Billing/Address/Address.d.mts +1 -1
  3. package/dist/browser/Billing/Address/Address.d.ts +1 -1
  4. package/dist/browser/Billing/Address/index.d.cts +2 -2
  5. package/dist/browser/Billing/Address/index.d.mts +2 -2
  6. package/dist/browser/Billing/Address/index.d.ts +2 -2
  7. package/dist/browser/Billing/index.d.cts +2 -2
  8. package/dist/browser/Billing/index.d.mts +2 -2
  9. package/dist/browser/Billing/index.d.ts +2 -2
  10. package/dist/browser/Escrow/Outcome.d.cts +14 -0
  11. package/dist/browser/Escrow/Outcome.d.cts.map +1 -0
  12. package/dist/browser/Escrow/Outcome.d.mts +14 -0
  13. package/dist/browser/Escrow/Outcome.d.mts.map +1 -0
  14. package/dist/browser/Escrow/Outcome.d.ts +14 -0
  15. package/dist/browser/Escrow/Outcome.d.ts.map +1 -0
  16. package/dist/browser/Escrow/createEscrowIntent.d.cts +1 -1
  17. package/dist/browser/Escrow/createEscrowIntent.d.mts +1 -1
  18. package/dist/browser/Escrow/createEscrowIntent.d.ts +1 -1
  19. package/dist/browser/Escrow/index.d.cts +6 -5
  20. package/dist/browser/Escrow/index.d.cts.map +1 -1
  21. package/dist/browser/Escrow/index.d.mts +6 -5
  22. package/dist/browser/Escrow/index.d.mts.map +1 -1
  23. package/dist/browser/Escrow/index.d.ts +6 -5
  24. package/dist/browser/Escrow/index.d.ts.map +1 -1
  25. package/dist/browser/Escrow/validators/common/ModuleInstanceValidators/index.d.cts +1 -1
  26. package/dist/browser/Escrow/validators/common/ModuleInstanceValidators/index.d.mts +1 -1
  27. package/dist/browser/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +1 -1
  28. package/dist/browser/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.cts +1 -1
  29. package/dist/browser/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.mts +1 -1
  30. package/dist/browser/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +1 -1
  31. package/dist/browser/Escrow/validators/common/TemporalValidators/index.d.cts +1 -1
  32. package/dist/browser/Escrow/validators/common/TemporalValidators/index.d.mts +1 -1
  33. package/dist/browser/Escrow/validators/common/TemporalValidators/index.d.ts +1 -1
  34. package/dist/browser/Escrow/validators/common/index.d.cts +2 -2
  35. package/dist/browser/Escrow/validators/common/index.d.mts +2 -2
  36. package/dist/browser/Escrow/validators/common/index.d.ts +2 -2
  37. package/dist/browser/Escrow/validators/escrow/agent.d.cts +1 -1
  38. package/dist/browser/Escrow/validators/escrow/agent.d.mts +1 -1
  39. package/dist/browser/Escrow/validators/escrow/agent.d.ts +1 -1
  40. package/dist/browser/Escrow/validators/escrow/appraisal.d.cts +1 -1
  41. package/dist/browser/Escrow/validators/escrow/appraisal.d.mts +1 -1
  42. package/dist/browser/Escrow/validators/escrow/appraisal.d.ts +1 -1
  43. package/dist/browser/Escrow/validators/escrow/appraisalAuthorities.d.cts +1 -1
  44. package/dist/browser/Escrow/validators/escrow/appraisalAuthorities.d.mts +1 -1
  45. package/dist/browser/Escrow/validators/escrow/appraisalAuthorities.d.ts +1 -1
  46. package/dist/browser/Escrow/validators/escrow/assets.d.cts +1 -1
  47. package/dist/browser/Escrow/validators/escrow/assets.d.mts +1 -1
  48. package/dist/browser/Escrow/validators/escrow/assets.d.ts +1 -1
  49. package/dist/browser/Escrow/validators/escrow/buyer.d.cts +1 -1
  50. package/dist/browser/Escrow/validators/escrow/buyer.d.mts +1 -1
  51. package/dist/browser/Escrow/validators/escrow/buyer.d.ts +1 -1
  52. package/dist/browser/Escrow/validators/escrow/buyerSecret.d.cts +1 -1
  53. package/dist/browser/Escrow/validators/escrow/buyerSecret.d.mts +1 -1
  54. package/dist/browser/Escrow/validators/escrow/buyerSecret.d.ts +1 -1
  55. package/dist/browser/Escrow/validators/escrow/index.d.cts +10 -10
  56. package/dist/browser/Escrow/validators/escrow/index.d.mts +10 -10
  57. package/dist/browser/Escrow/validators/escrow/index.d.ts +10 -10
  58. package/dist/browser/Escrow/validators/escrow/nbfExp.d.cts +1 -1
  59. package/dist/browser/Escrow/validators/escrow/nbfExp.d.mts +1 -1
  60. package/dist/browser/Escrow/validators/escrow/nbfExp.d.ts +1 -1
  61. package/dist/browser/Escrow/validators/escrow/paymentAuthorities.d.cts +1 -1
  62. package/dist/browser/Escrow/validators/escrow/paymentAuthorities.d.mts +1 -1
  63. package/dist/browser/Escrow/validators/escrow/paymentAuthorities.d.ts +1 -1
  64. package/dist/browser/Escrow/validators/escrow/seller.d.cts +1 -1
  65. package/dist/browser/Escrow/validators/escrow/seller.d.mts +1 -1
  66. package/dist/browser/Escrow/validators/escrow/seller.d.ts +1 -1
  67. package/dist/browser/Escrow/validators/escrow/sellerSecret.d.cts +1 -1
  68. package/dist/browser/Escrow/validators/escrow/sellerSecret.d.mts +1 -1
  69. package/dist/browser/Escrow/validators/escrow/sellerSecret.d.ts +1 -1
  70. package/dist/browser/Escrow/validators/index.d.cts +2 -2
  71. package/dist/browser/Escrow/validators/index.d.mts +2 -2
  72. package/dist/browser/Escrow/validators/index.d.ts +2 -2
  73. package/dist/browser/Payment/Instrument/Card/Payload.d.cts +1 -1
  74. package/dist/browser/Payment/Instrument/Card/Payload.d.mts +1 -1
  75. package/dist/browser/Payment/Instrument/Card/Payload.d.ts +1 -1
  76. package/dist/browser/Payment/Instrument/Card/index.d.cts +2 -2
  77. package/dist/browser/Payment/Instrument/Card/index.d.mts +2 -2
  78. package/dist/browser/Payment/Instrument/Card/index.d.ts +2 -2
  79. package/dist/browser/Payment/Instrument/index.d.cts +2 -2
  80. package/dist/browser/Payment/Instrument/index.d.mts +2 -2
  81. package/dist/browser/Payment/Instrument/index.d.ts +2 -2
  82. package/dist/browser/Payment/Payload.d.cts +2 -2
  83. package/dist/browser/Payment/Payload.d.mts +2 -2
  84. package/dist/browser/Payment/Payload.d.ts +2 -2
  85. package/dist/browser/Payment/Status/Payload.d.cts +1 -1
  86. package/dist/browser/Payment/Status/Payload.d.mts +1 -1
  87. package/dist/browser/Payment/Status/Payload.d.ts +1 -1
  88. package/dist/browser/Payment/Status/index.d.cts +2 -2
  89. package/dist/browser/Payment/Status/index.d.mts +2 -2
  90. package/dist/browser/Payment/Status/index.d.ts +2 -2
  91. package/dist/browser/Payment/index.d.cts +4 -4
  92. package/dist/browser/Payment/index.d.mts +4 -4
  93. package/dist/browser/Payment/index.d.ts +4 -4
  94. package/dist/browser/Purchase/Payload.d.cts +1 -1
  95. package/dist/browser/Purchase/Payload.d.mts +1 -1
  96. package/dist/browser/Purchase/Payload.d.ts +1 -1
  97. package/dist/browser/Purchase/index.d.cts +2 -2
  98. package/dist/browser/Purchase/index.d.mts +2 -2
  99. package/dist/browser/Purchase/index.d.ts +2 -2
  100. package/dist/browser/Receipt/Payload.d.cts +2 -2
  101. package/dist/browser/Receipt/Payload.d.mts +2 -2
  102. package/dist/browser/Receipt/Payload.d.ts +2 -2
  103. package/dist/browser/Receipt/index.d.cts +2 -2
  104. package/dist/browser/Receipt/index.d.mts +2 -2
  105. package/dist/browser/Receipt/index.d.ts +2 -2
  106. package/dist/browser/index.cjs +116 -83
  107. package/dist/browser/index.cjs.map +1 -1
  108. package/dist/browser/index.d.cts +6 -6
  109. package/dist/browser/index.d.mts +6 -6
  110. package/dist/browser/index.d.ts +6 -6
  111. package/dist/browser/{index.js → index.mjs} +119 -100
  112. package/dist/browser/index.mjs.map +1 -0
  113. package/dist/neutral/Billing/Address/Address.d.cts +1 -1
  114. package/dist/neutral/Billing/Address/Address.d.mts +1 -1
  115. package/dist/neutral/Billing/Address/Address.d.ts +1 -1
  116. package/dist/neutral/Billing/Address/index.d.cts +2 -2
  117. package/dist/neutral/Billing/Address/index.d.mts +2 -2
  118. package/dist/neutral/Billing/Address/index.d.ts +2 -2
  119. package/dist/neutral/Billing/index.d.cts +2 -2
  120. package/dist/neutral/Billing/index.d.mts +2 -2
  121. package/dist/neutral/Billing/index.d.ts +2 -2
  122. package/dist/neutral/Escrow/Outcome.d.cts +14 -0
  123. package/dist/neutral/Escrow/Outcome.d.cts.map +1 -0
  124. package/dist/neutral/Escrow/Outcome.d.mts +14 -0
  125. package/dist/neutral/Escrow/Outcome.d.mts.map +1 -0
  126. package/dist/neutral/Escrow/Outcome.d.ts +14 -0
  127. package/dist/neutral/Escrow/Outcome.d.ts.map +1 -0
  128. package/dist/neutral/Escrow/createEscrowIntent.d.cts +1 -1
  129. package/dist/neutral/Escrow/createEscrowIntent.d.mts +1 -1
  130. package/dist/neutral/Escrow/createEscrowIntent.d.ts +1 -1
  131. package/dist/neutral/Escrow/index.d.cts +6 -5
  132. package/dist/neutral/Escrow/index.d.cts.map +1 -1
  133. package/dist/neutral/Escrow/index.d.mts +6 -5
  134. package/dist/neutral/Escrow/index.d.mts.map +1 -1
  135. package/dist/neutral/Escrow/index.d.ts +6 -5
  136. package/dist/neutral/Escrow/index.d.ts.map +1 -1
  137. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.cts +1 -1
  138. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.mts +1 -1
  139. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +1 -1
  140. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.cts +1 -1
  141. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.mts +1 -1
  142. package/dist/neutral/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +1 -1
  143. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.cts +1 -1
  144. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.mts +1 -1
  145. package/dist/neutral/Escrow/validators/common/TemporalValidators/index.d.ts +1 -1
  146. package/dist/neutral/Escrow/validators/common/index.d.cts +2 -2
  147. package/dist/neutral/Escrow/validators/common/index.d.mts +2 -2
  148. package/dist/neutral/Escrow/validators/common/index.d.ts +2 -2
  149. package/dist/neutral/Escrow/validators/escrow/agent.d.cts +1 -1
  150. package/dist/neutral/Escrow/validators/escrow/agent.d.mts +1 -1
  151. package/dist/neutral/Escrow/validators/escrow/agent.d.ts +1 -1
  152. package/dist/neutral/Escrow/validators/escrow/appraisal.d.cts +1 -1
  153. package/dist/neutral/Escrow/validators/escrow/appraisal.d.mts +1 -1
  154. package/dist/neutral/Escrow/validators/escrow/appraisal.d.ts +1 -1
  155. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.cts +1 -1
  156. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.mts +1 -1
  157. package/dist/neutral/Escrow/validators/escrow/appraisalAuthorities.d.ts +1 -1
  158. package/dist/neutral/Escrow/validators/escrow/assets.d.cts +1 -1
  159. package/dist/neutral/Escrow/validators/escrow/assets.d.mts +1 -1
  160. package/dist/neutral/Escrow/validators/escrow/assets.d.ts +1 -1
  161. package/dist/neutral/Escrow/validators/escrow/buyer.d.cts +1 -1
  162. package/dist/neutral/Escrow/validators/escrow/buyer.d.mts +1 -1
  163. package/dist/neutral/Escrow/validators/escrow/buyer.d.ts +1 -1
  164. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.cts +1 -1
  165. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.mts +1 -1
  166. package/dist/neutral/Escrow/validators/escrow/buyerSecret.d.ts +1 -1
  167. package/dist/neutral/Escrow/validators/escrow/index.d.cts +10 -10
  168. package/dist/neutral/Escrow/validators/escrow/index.d.mts +10 -10
  169. package/dist/neutral/Escrow/validators/escrow/index.d.ts +10 -10
  170. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.cts +1 -1
  171. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.mts +1 -1
  172. package/dist/neutral/Escrow/validators/escrow/nbfExp.d.ts +1 -1
  173. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.cts +1 -1
  174. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.mts +1 -1
  175. package/dist/neutral/Escrow/validators/escrow/paymentAuthorities.d.ts +1 -1
  176. package/dist/neutral/Escrow/validators/escrow/seller.d.cts +1 -1
  177. package/dist/neutral/Escrow/validators/escrow/seller.d.mts +1 -1
  178. package/dist/neutral/Escrow/validators/escrow/seller.d.ts +1 -1
  179. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.cts +1 -1
  180. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.mts +1 -1
  181. package/dist/neutral/Escrow/validators/escrow/sellerSecret.d.ts +1 -1
  182. package/dist/neutral/Escrow/validators/index.d.cts +2 -2
  183. package/dist/neutral/Escrow/validators/index.d.mts +2 -2
  184. package/dist/neutral/Escrow/validators/index.d.ts +2 -2
  185. package/dist/neutral/Payment/Instrument/Card/Payload.d.cts +1 -1
  186. package/dist/neutral/Payment/Instrument/Card/Payload.d.mts +1 -1
  187. package/dist/neutral/Payment/Instrument/Card/Payload.d.ts +1 -1
  188. package/dist/neutral/Payment/Instrument/Card/index.d.cts +2 -2
  189. package/dist/neutral/Payment/Instrument/Card/index.d.mts +2 -2
  190. package/dist/neutral/Payment/Instrument/Card/index.d.ts +2 -2
  191. package/dist/neutral/Payment/Instrument/index.d.cts +2 -2
  192. package/dist/neutral/Payment/Instrument/index.d.mts +2 -2
  193. package/dist/neutral/Payment/Instrument/index.d.ts +2 -2
  194. package/dist/neutral/Payment/Payload.d.cts +2 -2
  195. package/dist/neutral/Payment/Payload.d.mts +2 -2
  196. package/dist/neutral/Payment/Payload.d.ts +2 -2
  197. package/dist/neutral/Payment/Status/Payload.d.cts +1 -1
  198. package/dist/neutral/Payment/Status/Payload.d.mts +1 -1
  199. package/dist/neutral/Payment/Status/Payload.d.ts +1 -1
  200. package/dist/neutral/Payment/Status/index.d.cts +2 -2
  201. package/dist/neutral/Payment/Status/index.d.mts +2 -2
  202. package/dist/neutral/Payment/Status/index.d.ts +2 -2
  203. package/dist/neutral/Payment/index.d.cts +4 -4
  204. package/dist/neutral/Payment/index.d.mts +4 -4
  205. package/dist/neutral/Payment/index.d.ts +4 -4
  206. package/dist/neutral/Purchase/Payload.d.cts +1 -1
  207. package/dist/neutral/Purchase/Payload.d.mts +1 -1
  208. package/dist/neutral/Purchase/Payload.d.ts +1 -1
  209. package/dist/neutral/Purchase/index.d.cts +2 -2
  210. package/dist/neutral/Purchase/index.d.mts +2 -2
  211. package/dist/neutral/Purchase/index.d.ts +2 -2
  212. package/dist/neutral/Receipt/Payload.d.cts +2 -2
  213. package/dist/neutral/Receipt/Payload.d.mts +2 -2
  214. package/dist/neutral/Receipt/Payload.d.ts +2 -2
  215. package/dist/neutral/Receipt/index.d.cts +2 -2
  216. package/dist/neutral/Receipt/index.d.mts +2 -2
  217. package/dist/neutral/Receipt/index.d.ts +2 -2
  218. package/dist/neutral/index.cjs +116 -83
  219. package/dist/neutral/index.cjs.map +1 -1
  220. package/dist/neutral/index.d.cts +6 -6
  221. package/dist/neutral/index.d.mts +6 -6
  222. package/dist/neutral/index.d.ts +6 -6
  223. package/dist/{node/index.js → neutral/index.mjs} +119 -100
  224. package/dist/neutral/index.mjs.map +1 -0
  225. package/dist/node/Billing/Address/Address.d.cts +1 -1
  226. package/dist/node/Billing/Address/Address.d.mts +1 -1
  227. package/dist/node/Billing/Address/Address.d.ts +1 -1
  228. package/dist/node/Billing/Address/index.d.cts +2 -2
  229. package/dist/node/Billing/Address/index.d.mts +2 -2
  230. package/dist/node/Billing/Address/index.d.ts +2 -2
  231. package/dist/node/Billing/index.d.cts +2 -2
  232. package/dist/node/Billing/index.d.mts +2 -2
  233. package/dist/node/Billing/index.d.ts +2 -2
  234. package/dist/node/Escrow/Outcome.d.cts +14 -0
  235. package/dist/node/Escrow/Outcome.d.cts.map +1 -0
  236. package/dist/node/Escrow/Outcome.d.mts +14 -0
  237. package/dist/node/Escrow/Outcome.d.mts.map +1 -0
  238. package/dist/node/Escrow/Outcome.d.ts +14 -0
  239. package/dist/node/Escrow/Outcome.d.ts.map +1 -0
  240. package/dist/node/Escrow/createEscrowIntent.d.cts +1 -1
  241. package/dist/node/Escrow/createEscrowIntent.d.mts +1 -1
  242. package/dist/node/Escrow/createEscrowIntent.d.ts +1 -1
  243. package/dist/node/Escrow/index.d.cts +6 -5
  244. package/dist/node/Escrow/index.d.cts.map +1 -1
  245. package/dist/node/Escrow/index.d.mts +6 -5
  246. package/dist/node/Escrow/index.d.mts.map +1 -1
  247. package/dist/node/Escrow/index.d.ts +6 -5
  248. package/dist/node/Escrow/index.d.ts.map +1 -1
  249. package/dist/node/Escrow/validators/common/ModuleInstanceValidators/index.d.cts +1 -1
  250. package/dist/node/Escrow/validators/common/ModuleInstanceValidators/index.d.mts +1 -1
  251. package/dist/node/Escrow/validators/common/ModuleInstanceValidators/index.d.ts +1 -1
  252. package/dist/node/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.cts +1 -1
  253. package/dist/node/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.mts +1 -1
  254. package/dist/node/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.d.ts +1 -1
  255. package/dist/node/Escrow/validators/common/TemporalValidators/index.d.cts +1 -1
  256. package/dist/node/Escrow/validators/common/TemporalValidators/index.d.mts +1 -1
  257. package/dist/node/Escrow/validators/common/TemporalValidators/index.d.ts +1 -1
  258. package/dist/node/Escrow/validators/common/index.d.cts +2 -2
  259. package/dist/node/Escrow/validators/common/index.d.mts +2 -2
  260. package/dist/node/Escrow/validators/common/index.d.ts +2 -2
  261. package/dist/node/Escrow/validators/escrow/agent.d.cts +1 -1
  262. package/dist/node/Escrow/validators/escrow/agent.d.mts +1 -1
  263. package/dist/node/Escrow/validators/escrow/agent.d.ts +1 -1
  264. package/dist/node/Escrow/validators/escrow/appraisal.d.cts +1 -1
  265. package/dist/node/Escrow/validators/escrow/appraisal.d.mts +1 -1
  266. package/dist/node/Escrow/validators/escrow/appraisal.d.ts +1 -1
  267. package/dist/node/Escrow/validators/escrow/appraisalAuthorities.d.cts +1 -1
  268. package/dist/node/Escrow/validators/escrow/appraisalAuthorities.d.mts +1 -1
  269. package/dist/node/Escrow/validators/escrow/appraisalAuthorities.d.ts +1 -1
  270. package/dist/node/Escrow/validators/escrow/assets.d.cts +1 -1
  271. package/dist/node/Escrow/validators/escrow/assets.d.mts +1 -1
  272. package/dist/node/Escrow/validators/escrow/assets.d.ts +1 -1
  273. package/dist/node/Escrow/validators/escrow/buyer.d.cts +1 -1
  274. package/dist/node/Escrow/validators/escrow/buyer.d.mts +1 -1
  275. package/dist/node/Escrow/validators/escrow/buyer.d.ts +1 -1
  276. package/dist/node/Escrow/validators/escrow/buyerSecret.d.cts +1 -1
  277. package/dist/node/Escrow/validators/escrow/buyerSecret.d.mts +1 -1
  278. package/dist/node/Escrow/validators/escrow/buyerSecret.d.ts +1 -1
  279. package/dist/node/Escrow/validators/escrow/index.d.cts +10 -10
  280. package/dist/node/Escrow/validators/escrow/index.d.mts +10 -10
  281. package/dist/node/Escrow/validators/escrow/index.d.ts +10 -10
  282. package/dist/node/Escrow/validators/escrow/nbfExp.d.cts +1 -1
  283. package/dist/node/Escrow/validators/escrow/nbfExp.d.mts +1 -1
  284. package/dist/node/Escrow/validators/escrow/nbfExp.d.ts +1 -1
  285. package/dist/node/Escrow/validators/escrow/paymentAuthorities.d.cts +1 -1
  286. package/dist/node/Escrow/validators/escrow/paymentAuthorities.d.mts +1 -1
  287. package/dist/node/Escrow/validators/escrow/paymentAuthorities.d.ts +1 -1
  288. package/dist/node/Escrow/validators/escrow/seller.d.cts +1 -1
  289. package/dist/node/Escrow/validators/escrow/seller.d.mts +1 -1
  290. package/dist/node/Escrow/validators/escrow/seller.d.ts +1 -1
  291. package/dist/node/Escrow/validators/escrow/sellerSecret.d.cts +1 -1
  292. package/dist/node/Escrow/validators/escrow/sellerSecret.d.mts +1 -1
  293. package/dist/node/Escrow/validators/escrow/sellerSecret.d.ts +1 -1
  294. package/dist/node/Escrow/validators/index.d.cts +2 -2
  295. package/dist/node/Escrow/validators/index.d.mts +2 -2
  296. package/dist/node/Escrow/validators/index.d.ts +2 -2
  297. package/dist/node/Payment/Instrument/Card/Payload.d.cts +1 -1
  298. package/dist/node/Payment/Instrument/Card/Payload.d.mts +1 -1
  299. package/dist/node/Payment/Instrument/Card/Payload.d.ts +1 -1
  300. package/dist/node/Payment/Instrument/Card/index.d.cts +2 -2
  301. package/dist/node/Payment/Instrument/Card/index.d.mts +2 -2
  302. package/dist/node/Payment/Instrument/Card/index.d.ts +2 -2
  303. package/dist/node/Payment/Instrument/index.d.cts +2 -2
  304. package/dist/node/Payment/Instrument/index.d.mts +2 -2
  305. package/dist/node/Payment/Instrument/index.d.ts +2 -2
  306. package/dist/node/Payment/Payload.d.cts +2 -2
  307. package/dist/node/Payment/Payload.d.mts +2 -2
  308. package/dist/node/Payment/Payload.d.ts +2 -2
  309. package/dist/node/Payment/Status/Payload.d.cts +1 -1
  310. package/dist/node/Payment/Status/Payload.d.mts +1 -1
  311. package/dist/node/Payment/Status/Payload.d.ts +1 -1
  312. package/dist/node/Payment/Status/index.d.cts +2 -2
  313. package/dist/node/Payment/Status/index.d.mts +2 -2
  314. package/dist/node/Payment/Status/index.d.ts +2 -2
  315. package/dist/node/Payment/index.d.cts +4 -4
  316. package/dist/node/Payment/index.d.mts +4 -4
  317. package/dist/node/Payment/index.d.ts +4 -4
  318. package/dist/node/Purchase/Payload.d.cts +1 -1
  319. package/dist/node/Purchase/Payload.d.mts +1 -1
  320. package/dist/node/Purchase/Payload.d.ts +1 -1
  321. package/dist/node/Purchase/index.d.cts +2 -2
  322. package/dist/node/Purchase/index.d.mts +2 -2
  323. package/dist/node/Purchase/index.d.ts +2 -2
  324. package/dist/node/Receipt/Payload.d.cts +2 -2
  325. package/dist/node/Receipt/Payload.d.mts +2 -2
  326. package/dist/node/Receipt/Payload.d.ts +2 -2
  327. package/dist/node/Receipt/index.d.cts +2 -2
  328. package/dist/node/Receipt/index.d.mts +2 -2
  329. package/dist/node/Receipt/index.d.ts +2 -2
  330. package/dist/node/index.cjs +120 -83
  331. package/dist/node/index.cjs.map +1 -1
  332. package/dist/node/index.d.cts +6 -6
  333. package/dist/node/index.d.mts +6 -6
  334. package/dist/node/index.d.ts +6 -6
  335. package/dist/{neutral/index.js → node/index.mjs} +119 -100
  336. package/dist/node/index.mjs.map +1 -0
  337. package/package.json +18 -18
  338. package/src/Billing/Address/Address.ts +1 -1
  339. package/src/Billing/Address/Schema.ts +1 -1
  340. package/src/Billing/Address/index.ts +2 -2
  341. package/src/Billing/Schema.ts +1 -1
  342. package/src/Billing/index.ts +2 -2
  343. package/src/Escrow/Outcome.ts +42 -0
  344. package/src/Escrow/Terms.ts +1 -1
  345. package/src/Escrow/createEscrowIntent.ts +1 -1
  346. package/src/Escrow/index.ts +6 -5
  347. package/src/Escrow/validators/common/ModuleInstanceValidators/index.ts +1 -1
  348. package/src/Escrow/validators/common/ModuleInstanceValidators/moduleInstanceValidators.ts +3 -3
  349. package/src/Escrow/validators/common/TemporalValidators/index.ts +1 -1
  350. package/src/Escrow/validators/common/index.ts +2 -2
  351. package/src/Escrow/validators/escrow/agent.ts +3 -3
  352. package/src/Escrow/validators/escrow/appraisal.ts +4 -4
  353. package/src/Escrow/validators/escrow/appraisalAuthorities.ts +4 -4
  354. package/src/Escrow/validators/escrow/assets.ts +1 -1
  355. package/src/Escrow/validators/escrow/buyer.ts +2 -2
  356. package/src/Escrow/validators/escrow/buyerSecret.ts +5 -5
  357. package/src/Escrow/validators/escrow/index.ts +10 -10
  358. package/src/Escrow/validators/escrow/nbfExp.ts +1 -1
  359. package/src/Escrow/validators/escrow/paymentAuthorities.ts +3 -3
  360. package/src/Escrow/validators/escrow/seller.ts +2 -2
  361. package/src/Escrow/validators/escrow/sellerSecret.ts +5 -5
  362. package/src/Escrow/validators/index.ts +2 -2
  363. package/src/Payment/Instrument/Card/Payload.ts +1 -1
  364. package/src/Payment/Instrument/Card/Schema.ts +1 -1
  365. package/src/Payment/Instrument/Card/index.ts +2 -2
  366. package/src/Payment/Instrument/Schema.ts +1 -1
  367. package/src/Payment/Instrument/index.ts +2 -2
  368. package/src/Payment/Payload.ts +2 -2
  369. package/src/Payment/Schema.ts +1 -1
  370. package/src/Payment/Status/Payload.ts +1 -1
  371. package/src/Payment/Status/Schema.ts +1 -1
  372. package/src/Payment/Status/index.ts +2 -2
  373. package/src/Payment/index.ts +4 -4
  374. package/src/Purchase/Payload.ts +1 -1
  375. package/src/Purchase/Schema.ts +1 -1
  376. package/src/Purchase/index.ts +2 -2
  377. package/src/Receipt/Payload.ts +2 -2
  378. package/src/Receipt/Schema.ts +1 -1
  379. package/src/Receipt/index.ts +2 -2
  380. package/src/index.ts +6 -6
  381. package/dist/browser/index.js.map +0 -1
  382. package/dist/neutral/index.js.map +0 -1
  383. package/dist/node/index.js.map +0 -1
package/package.json CHANGED
@@ -10,22 +10,22 @@
10
10
  "url": "https://github.com/XYOracleNetwork/plugins/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/assert": "^3.6.1",
14
- "@xylabs/crypto": "^3.6.1",
15
- "@xylabs/hex": "^3.6.1",
16
- "@xyo-network/account-model": "^2.110.6",
17
- "@xyo-network/boundwitness-builder": "^2.110.6",
18
- "@xyo-network/boundwitness-model": "^2.110.6",
19
- "@xyo-network/boundwitness-validator": "^2.110.6",
20
- "@xyo-network/diviner-hash-lease": "^2.110.6",
21
- "@xyo-network/id-payload-plugin": "^2.110.6",
22
- "@xyo-network/module-model": "^2.110.6",
23
- "@xyo-network/payload-model": "^2.110.6"
13
+ "@xylabs/assert": "^3.6.8",
14
+ "@xylabs/crypto": "^3.6.8",
15
+ "@xylabs/hex": "^3.6.8",
16
+ "@xyo-network/account-model": "^2.111.2",
17
+ "@xyo-network/boundwitness-builder": "^2.111.2",
18
+ "@xyo-network/boundwitness-model": "^2.111.2",
19
+ "@xyo-network/boundwitness-validator": "^2.111.2",
20
+ "@xyo-network/diviner-hash-lease": "^2.111.2",
21
+ "@xyo-network/id-payload-plugin": "^2.111.2",
22
+ "@xyo-network/module-model": "^2.111.2",
23
+ "@xyo-network/payload-model": "^2.111.2"
24
24
  },
25
25
  "devDependencies": {
26
- "@xylabs/ts-scripts-yarn3": "^3.12.2",
27
- "@xylabs/tsconfig": "^3.12.2",
28
- "typescript": "^5.5.3"
26
+ "@xylabs/ts-scripts-yarn3": "^3.15.13",
27
+ "@xylabs/tsconfig": "^3.15.13",
28
+ "typescript": "^5.5.4"
29
29
  },
30
30
  "description": "Typescript/Javascript Plugins for XYO Platform",
31
31
  "exports": {
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "import": {
39
39
  "types": "./dist/browser/index.d.mts",
40
- "default": "./dist/browser/index.js"
40
+ "default": "./dist/browser/index.mjs"
41
41
  }
42
42
  },
43
43
  "node": {
@@ -47,14 +47,14 @@
47
47
  },
48
48
  "import": {
49
49
  "types": "./dist/node/index.d.mts",
50
- "default": "./dist/node/index.js"
50
+ "default": "./dist/node/index.mjs"
51
51
  }
52
52
  }
53
53
  },
54
54
  "./package.json": "./package.json"
55
55
  },
56
56
  "main": "dist/node/index.cjs",
57
- "module": "dist/node/index.js",
57
+ "module": "dist/node/index.mjs",
58
58
  "types": "dist/node/index.d.ts",
59
59
  "homepage": "https://xyo.network",
60
60
  "license": "LGPL-3.0-only",
@@ -66,6 +66,6 @@
66
66
  "url": "https://github.com/XYOracleNetwork/plugins.git"
67
67
  },
68
68
  "sideEffects": false,
69
- "version": "2.99.3",
69
+ "version": "2.99.5",
70
70
  "type": "module"
71
71
  }
@@ -1,6 +1,6 @@
1
1
  import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources, Payload } from '@xyo-network/payload-model'
2
2
 
3
- import { BillingAddressSchema } from './Schema.js'
3
+ import { BillingAddressSchema } from './Schema.ts'
4
4
 
5
5
  /**
6
6
  * The fields describing a billing address.
@@ -1,4 +1,4 @@
1
- import { BillingSchema } from '../Schema.js'
1
+ import { BillingSchema } from '../Schema.ts'
2
2
 
3
3
  export const BillingAddressSchema = `${BillingSchema}.address`
4
4
  export type BillingAddressSchema = typeof BillingAddressSchema
@@ -1,2 +1,2 @@
1
- export * from './Address.js'
2
- export * from './Schema.js'
1
+ export * from './Address.ts'
2
+ export * from './Schema.ts'
@@ -1,4 +1,4 @@
1
- import { PaymentsSchema } from '../Schema.js'
1
+ import { PaymentsSchema } from '../Schema.ts'
2
2
 
3
3
  export const BillingSchema = `${PaymentsSchema}.billing`
4
4
  export type BillingSchema = typeof BillingSchema
@@ -1,2 +1,2 @@
1
- export * from './Address/index.js'
2
- export * from './Schema.js'
1
+ export * from './Address/index.ts'
2
+ export * from './Schema.ts'
@@ -0,0 +1,42 @@
1
+ import { Hash } from '@xylabs/hex'
2
+ import {
3
+ isPayloadOfSchemaType,
4
+ isPayloadOfSchemaTypeWithMeta,
5
+ isPayloadOfSchemaTypeWithSources,
6
+ PayloadWithSources,
7
+ } from '@xyo-network/payload-model'
8
+
9
+ import { EscrowSchema } from './Schema.ts'
10
+
11
+ export const EscrowOutcomeSchema = `${EscrowSchema}.outcome` as const
12
+ export type EscrowOutcomeSchema = typeof EscrowOutcomeSchema
13
+
14
+ /**
15
+ * The possible outcomes for an escrow
16
+ */
17
+ export type EscrowOutcomes = 'fulfilled' | 'expired' // TODO: More outcomes
18
+
19
+ export interface EscrowOutcomeFields {
20
+ outcome: EscrowOutcomes
21
+ terms: Hash
22
+ }
23
+
24
+ /**
25
+ * The terms of an escrow
26
+ */
27
+ export type EscrowOutcome = PayloadWithSources<EscrowOutcomeFields, EscrowOutcomeSchema>
28
+
29
+ /**
30
+ * Identity function for determining if an object is an EscrowOutcome
31
+ */
32
+ export const isEscrowOutcome = isPayloadOfSchemaType<EscrowOutcome>(EscrowOutcomeSchema)
33
+
34
+ /**
35
+ * Identity function for determining if an object is an EscrowOutcome with sources
36
+ */
37
+ export const isEscrowOutcomeWithSources = isPayloadOfSchemaTypeWithSources<EscrowOutcome>(EscrowOutcomeSchema)
38
+
39
+ /**
40
+ * Identity function for determining if an object is an EscrowOutcome with meta
41
+ */
42
+ export const isEscrowOutcomeWithMeta = isPayloadOfSchemaTypeWithMeta<EscrowOutcome>(EscrowOutcomeSchema)
@@ -1,7 +1,7 @@
1
1
  import { Address, Hash } from '@xylabs/hex'
2
2
  import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources, Payload } from '@xyo-network/payload-model'
3
3
 
4
- import { EscrowSchema } from './Schema.js'
4
+ import { EscrowSchema } from './Schema.ts'
5
5
 
6
6
  export const EscrowTermsSchema = `${EscrowSchema}.terms` as const
7
7
  export type EscrowTermsSchema = typeof EscrowTermsSchema
@@ -2,7 +2,7 @@ import { AccountInstance } from '@xyo-network/account-model'
2
2
  import { BoundWitnessBuilder } from '@xyo-network/boundwitness-builder'
3
3
  import { IdPayload } from '@xyo-network/id-payload-plugin'
4
4
 
5
- import { EscrowTerms } from './Terms.js'
5
+ import { EscrowTerms } from './Terms.ts'
6
6
 
7
7
  /**
8
8
  * Creates an escrow intent
@@ -1,5 +1,6 @@
1
- export * from './createEscrowIntent.js'
2
- export * from './getEscrowSecret.js'
3
- export * from './Schema.js'
4
- export * from './Terms.js'
5
- export * from './validators/index.js'
1
+ export * from './createEscrowIntent.ts'
2
+ export * from './getEscrowSecret.ts'
3
+ export * from './Outcome.ts'
4
+ export * from './Schema.ts'
5
+ export * from './Terms.ts'
6
+ export * from './validators/index.ts'
@@ -1 +1 @@
1
- export * from './moduleInstanceValidators.js'
1
+ export * from './moduleInstanceValidators.ts'
@@ -1,7 +1,7 @@
1
1
  import { ModuleIdentifier } from '@xyo-network/module-model'
2
2
  import { PayloadValueExpression } from '@xyo-network/payload-model'
3
3
 
4
- import { EscrowTerms } from '../../../Terms.js'
4
+ import { EscrowTerms } from '../../../Terms.ts'
5
5
 
6
6
  /**
7
7
  * Checks if property value of the escrow terms contains one of the valid moduleIdentifiers
@@ -21,7 +21,7 @@ export const moduleIdentifiersContainsOneOf = (
21
21
  if (termsValue === undefined) {
22
22
  return required ? false : true
23
23
  } else {
24
- return Array.isArray(termsValue) ? termsValue.some((address) => moduleIdentifiers.includes(address)) : moduleIdentifiers.includes(termsValue)
24
+ return Array.isArray(termsValue) ? termsValue.some(address => moduleIdentifiers.includes(address)) : moduleIdentifiers.includes(termsValue)
25
25
  }
26
26
  }
27
27
 
@@ -43,6 +43,6 @@ export const moduleIdentifiersContainsAllOf = (
43
43
  if (termsValue === undefined) {
44
44
  return required ? false : true
45
45
  } else {
46
- return Array.isArray(termsValue) ? termsValue.every((address) => moduleIdentifiers.includes(address)) : moduleIdentifiers.includes(termsValue)
46
+ return Array.isArray(termsValue) ? termsValue.every(address => moduleIdentifiers.includes(address)) : moduleIdentifiers.includes(termsValue)
47
47
  }
48
48
  }
@@ -1 +1 @@
1
- export * from './validateWithinWindow.js'
1
+ export * from './validateWithinWindow.ts'
@@ -1,2 +1,2 @@
1
- export * from './ModuleInstanceValidators/index.js'
2
- export * from './TemporalValidators/index.js'
1
+ export * from './ModuleInstanceValidators/index.ts'
2
+ export * from './TemporalValidators/index.ts'
@@ -1,14 +1,14 @@
1
1
  import { ModuleIdentifier } from '@xyo-network/module-model'
2
2
  import { PayloadValidationFunction } from '@xyo-network/payload-model'
3
3
 
4
- import { EscrowTerms } from '../../Terms.js'
5
- import { moduleIdentifiersContainsOneOf } from '../common/index.js'
4
+ import { EscrowTerms } from '../../Terms.ts'
5
+ import { moduleIdentifiersContainsOneOf } from '../common/index.ts'
6
6
 
7
7
  const name = 'EscrowTerms.escrowAgent'
8
8
 
9
9
  export const getEscrowAgentAllowedValidator = (allowedEscrowAgent: ModuleIdentifier): PayloadValidationFunction<EscrowTerms> => {
10
10
  return (terms: EscrowTerms) => {
11
- const result = moduleIdentifiersContainsOneOf(terms, (t) => t.escrowAgent, [allowedEscrowAgent], true)
11
+ const result = moduleIdentifiersContainsOneOf(terms, t => t.escrowAgent, [allowedEscrowAgent], true)
12
12
  if (!result) {
13
13
  console.log(`${name}: Escrow agent not allowed: ${terms.escrowAgent}`)
14
14
  }
@@ -4,8 +4,8 @@ import { BoundWitness, isBoundWitnessWithMeta } from '@xyo-network/boundwitness-
4
4
  import { HashLeaseEstimate, isHashLeaseEstimateWithSources } from '@xyo-network/diviner-hash-lease'
5
5
  import { Payload, PayloadValidationFunction, WithMeta, WithSources } from '@xyo-network/payload-model'
6
6
 
7
- import { EscrowTerms } from '../../Terms.js'
8
- import { validateWithinWindow } from '../common/index.js'
7
+ import { EscrowTerms } from '../../Terms.ts'
8
+ import { validateWithinWindow } from '../common/index.ts'
9
9
 
10
10
  const name = 'EscrowTerms.appraisal'
11
11
 
@@ -37,11 +37,11 @@ export const getAppraisalsFromValidAuthoritiesValidator = (dictionary: Record<Ha
37
37
  // - We have a bw for each of the appraisal
38
38
  // - The bw is signed by an approved appraisal authority
39
39
  const appraisalBWsValid: Record<Hash, WithMeta<BoundWitness>[]> = Object.fromEntries(
40
- appraisals.map<[Hash, WithMeta<BoundWitness>[]]>((hash) => [hash, []]),
40
+ appraisals.map<[Hash, WithMeta<BoundWitness>[]]>(hash => [hash, []]),
41
41
  )
42
42
  for (const bw of Object.values(dictionary).filter(isBoundWitnessWithMeta)) {
43
43
  for (const appraisal of appraisals) {
44
- if (bw.payload_hashes.includes(appraisal) && bw.addresses.some((address) => appraisalAuthorities.includes(address))) {
44
+ if (bw.payload_hashes.includes(appraisal) && bw.addresses.some(address => appraisalAuthorities.includes(address))) {
45
45
  appraisalBWsValid[appraisal].push(bw)
46
46
  }
47
47
  }
@@ -2,8 +2,8 @@ import { asAddress } from '@xylabs/hex'
2
2
  import { ModuleIdentifier } from '@xyo-network/module-model'
3
3
  import { PayloadValidationFunction } from '@xyo-network/payload-model'
4
4
 
5
- import { EscrowTerms } from '../../Terms.js'
6
- import { moduleIdentifiersContainsAllOf } from '../common/index.js'
5
+ import { EscrowTerms } from '../../Terms.ts'
6
+ import { moduleIdentifiersContainsAllOf } from '../common/index.ts'
7
7
 
8
8
  const name = 'EscrowTerms.appraisalAuthorities'
9
9
 
@@ -19,7 +19,7 @@ export const appraisalAuthoritiesExistValidator: PayloadValidationFunction<Escro
19
19
  return false
20
20
  }
21
21
  // Validate the authorities are addresses
22
- if (appraisalAuthorities.map((x) => asAddress(x)).length !== appraisalAuthorities.length) {
22
+ if (appraisalAuthorities.map(x => asAddress(x)).length !== appraisalAuthorities.length) {
23
23
  console.log(`${name}: Invalid address: ${terms.appraisalAuthorities}`)
24
24
  return false
25
25
  }
@@ -28,7 +28,7 @@ export const appraisalAuthoritiesExistValidator: PayloadValidationFunction<Escro
28
28
 
29
29
  export const getAppraisalAuthoritiesAllowedValidator = (allowed: ModuleIdentifier[]): PayloadValidationFunction<EscrowTerms> => {
30
30
  return (terms: EscrowTerms) => {
31
- const result = moduleIdentifiersContainsAllOf(terms, (t) => t.appraisalAuthorities, allowed, true)
31
+ const result = moduleIdentifiersContainsAllOf(terms, t => t.appraisalAuthorities, allowed, true)
32
32
  if (!result) {
33
33
  console.log(`${name}: Appraisal authority not allowed: ${terms.appraisalAuthorities}`)
34
34
  }
@@ -1,6 +1,6 @@
1
1
  import { PayloadValidationFunction } from '@xyo-network/payload-model'
2
2
 
3
- import { EscrowTerms } from '../../Terms.js'
3
+ import { EscrowTerms } from '../../Terms.ts'
4
4
 
5
5
  const name = 'EscrowTerms.assets'
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { asAddress } from '@xylabs/hex'
2
2
  import { PayloadValidationFunction } from '@xyo-network/payload-model'
3
3
 
4
- import { EscrowTerms } from '../../Terms.js'
4
+ import { EscrowTerms } from '../../Terms.ts'
5
5
 
6
6
  const name = 'EscrowTerms.buyer'
7
7
 
@@ -17,7 +17,7 @@ export const buyerExistsValidator: PayloadValidationFunction<EscrowTerms> = (ter
17
17
  return false
18
18
  }
19
19
  // Validate the authorities are addresses
20
- if (buyer.map((x) => asAddress(x)).length !== buyer.length) {
20
+ if (buyer.map(x => asAddress(x)).length !== buyer.length) {
21
21
  console.log(`${name}: Invalid address: ${terms.buyer}`)
22
22
  return false
23
23
  }
@@ -4,7 +4,7 @@ import { isBoundWitnessWithMeta } from '@xyo-network/boundwitness-model'
4
4
  import { BoundWitnessValidator } from '@xyo-network/boundwitness-validator'
5
5
  import { Payload, PayloadValidationFunction, WithMeta } from '@xyo-network/payload-model'
6
6
 
7
- import { EscrowTerms } from '../../Terms.js'
7
+ import { EscrowTerms } from '../../Terms.ts'
8
8
 
9
9
  const name = 'EscrowTerms.buyerSecret'
10
10
 
@@ -52,9 +52,9 @@ export const getBuyerSecretSignedValidator = (dictionary: Record<Hash, WithMeta<
52
52
  // Find all BoundWitnesses
53
53
  .filter(isBoundWitnessWithMeta)
54
54
  // That contain the buyer secret
55
- .filter((bw) => bw.payload_hashes.includes(buyerSecret))
55
+ .filter(bw => bw.payload_hashes.includes(buyerSecret))
56
56
  // That are signed by all the buyers
57
- .filter((bw) => buyer.every((buyerAddress) => bw.addresses.includes(buyerAddress)))
57
+ .filter(bw => buyer.every(buyerAddress => bw.addresses.includes(buyerAddress)))
58
58
 
59
59
  // If there are no buyerSecret BWs, return false
60
60
  if (buyerSecretBWs.length === 0) {
@@ -63,8 +63,8 @@ export const getBuyerSecretSignedValidator = (dictionary: Record<Hash, WithMeta<
63
63
  }
64
64
 
65
65
  // Ensure each BW supplied for the buyerSecret is valid
66
- const errors = await Promise.all(buyerSecretBWs.map((bw) => new BoundWitnessValidator(bw).validate()))
67
- const validBoundWitnesses = errors.every((errors) => errors.length === 0)
66
+ const errors = await Promise.all(buyerSecretBWs.map(bw => new BoundWitnessValidator(bw).validate()))
67
+ const validBoundWitnesses = errors.every(errors => errors.length === 0)
68
68
  if (!validBoundWitnesses) {
69
69
  console.log(`${name}: Invalid BoundWitnesses supplied for buyerSecret: ${buyerSecret}`)
70
70
  return false
@@ -1,10 +1,10 @@
1
- export * from './agent.js'
2
- export * from './appraisal.js'
3
- export * from './appraisalAuthorities.js'
4
- export * from './assets.js'
5
- export * from './buyer.js'
6
- export * from './buyerSecret.js'
7
- export * from './nbfExp.js'
8
- export * from './paymentAuthorities.js'
9
- export * from './seller.js'
10
- export * from './sellerSecret.js'
1
+ export * from './agent.ts'
2
+ export * from './appraisal.ts'
3
+ export * from './appraisalAuthorities.ts'
4
+ export * from './assets.ts'
5
+ export * from './buyer.ts'
6
+ export * from './buyerSecret.ts'
7
+ export * from './nbfExp.ts'
8
+ export * from './paymentAuthorities.ts'
9
+ export * from './seller.ts'
10
+ export * from './sellerSecret.ts'
@@ -1,6 +1,6 @@
1
1
  import { PayloadValidationFunction } from '@xyo-network/payload-model'
2
2
 
3
- import { EscrowTerms } from '../../Terms.js'
3
+ import { EscrowTerms } from '../../Terms.ts'
4
4
 
5
5
  export const getNbfExpValidator = (now: number, minRequiredDuration: number): PayloadValidationFunction<EscrowTerms> => {
6
6
  const minExp = now + minRequiredDuration
@@ -1,14 +1,14 @@
1
1
  import { ModuleIdentifier } from '@xyo-network/module-model'
2
2
  import { PayloadValidationFunction } from '@xyo-network/payload-model'
3
3
 
4
- import { EscrowTerms } from '../../Terms.js'
5
- import { moduleIdentifiersContainsAllOf } from '../common/index.js'
4
+ import { EscrowTerms } from '../../Terms.ts'
5
+ import { moduleIdentifiersContainsAllOf } from '../common/index.ts'
6
6
 
7
7
  const name = 'EscrowTerms.paymentAuthorities'
8
8
 
9
9
  export const getPaymentAuthoritiesAllowedValidator = (allowed: ModuleIdentifier[]): PayloadValidationFunction<EscrowTerms> => {
10
10
  return (terms: EscrowTerms) => {
11
- const result = moduleIdentifiersContainsAllOf(terms, (t) => t.paymentAuthorities, allowed, true)
11
+ const result = moduleIdentifiersContainsAllOf(terms, t => t.paymentAuthorities, allowed, true)
12
12
  if (!result) {
13
13
  console.log(`${name}: Payment authority not allowed: ${terms.paymentAuthorities}`)
14
14
  }
@@ -1,7 +1,7 @@
1
1
  import { asAddress } from '@xylabs/hex'
2
2
  import { PayloadValidationFunction } from '@xyo-network/payload-model'
3
3
 
4
- import { EscrowTerms } from '../../Terms.js'
4
+ import { EscrowTerms } from '../../Terms.ts'
5
5
 
6
6
  const name = 'EscrowTerms.seller'
7
7
 
@@ -17,7 +17,7 @@ export const sellerExistsValidator: PayloadValidationFunction<EscrowTerms> = (te
17
17
  return false
18
18
  }
19
19
  // Validate the authorities are addresses
20
- if (seller.map((x) => asAddress(x)).length !== seller.length) {
20
+ if (seller.map(x => asAddress(x)).length !== seller.length) {
21
21
  console.log(`${name}: Invalid address: ${terms.seller}`)
22
22
  return false
23
23
  }
@@ -4,7 +4,7 @@ import { isBoundWitnessWithMeta } from '@xyo-network/boundwitness-model'
4
4
  import { BoundWitnessValidator } from '@xyo-network/boundwitness-validator'
5
5
  import { Payload, PayloadValidationFunction, WithMeta } from '@xyo-network/payload-model'
6
6
 
7
- import { EscrowTerms } from '../../Terms.js'
7
+ import { EscrowTerms } from '../../Terms.ts'
8
8
 
9
9
  const name = 'EscrowTerms.sellerSecret'
10
10
 
@@ -52,9 +52,9 @@ export const getSellerSecretSignedValidator = (dictionary: Record<Hash, WithMeta
52
52
  // Find all BoundWitnesses
53
53
  .filter(isBoundWitnessWithMeta)
54
54
  // That contain the seller secret
55
- .filter((bw) => bw.payload_hashes.includes(sellerSecret))
55
+ .filter(bw => bw.payload_hashes.includes(sellerSecret))
56
56
  // That are signed by all the sellers
57
- .filter((bw) => seller.every((sellerAddress) => bw.addresses.includes(sellerAddress)))
57
+ .filter(bw => seller.every(sellerAddress => bw.addresses.includes(sellerAddress)))
58
58
 
59
59
  // If there are no sellerSecret BWs, return false
60
60
  if (sellerSecretBWs.length === 0) {
@@ -63,8 +63,8 @@ export const getSellerSecretSignedValidator = (dictionary: Record<Hash, WithMeta
63
63
  }
64
64
 
65
65
  // Ensure each BW supplied for the sellerSecret is valid
66
- const errors = await Promise.all(sellerSecretBWs.map((bw) => new BoundWitnessValidator(bw).validate()))
67
- const validBoundWitnesses = errors.every((errors) => errors.length === 0)
66
+ const errors = await Promise.all(sellerSecretBWs.map(bw => new BoundWitnessValidator(bw).validate()))
67
+ const validBoundWitnesses = errors.every(errors => errors.length === 0)
68
68
  if (!validBoundWitnesses) {
69
69
  console.log(`${name}: Invalid BoundWitnesses supplied for sellerSecret: ${sellerSecret}`)
70
70
  return false
@@ -1,2 +1,2 @@
1
- export * from './common/index.js'
2
- export * from './escrow/index.js'
1
+ export * from './common/index.ts'
2
+ export * from './escrow/index.ts'
@@ -1,6 +1,6 @@
1
1
  import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources, Payload } from '@xyo-network/payload-model'
2
2
 
3
- import { PaymentCardSchema } from './Schema.js'
3
+ import { PaymentCardSchema } from './Schema.ts'
4
4
 
5
5
  /**
6
6
  * The fields describing a payment card.
@@ -1,4 +1,4 @@
1
- import { PaymentInstrumentSchema } from '../Schema.js'
1
+ import { PaymentInstrumentSchema } from '../Schema.ts'
2
2
 
3
3
  export const PaymentCardSchema = `${PaymentInstrumentSchema}.card`
4
4
  export type PaymentCardSchema = typeof PaymentCardSchema
@@ -1,2 +1,2 @@
1
- export * from './Payload.js'
2
- export * from './Schema.js'
1
+ export * from './Payload.ts'
2
+ export * from './Schema.ts'
@@ -1,4 +1,4 @@
1
- import { PaymentSchema } from '../Schema.js'
1
+ import { PaymentSchema } from '../Schema.ts'
2
2
 
3
3
  export const PaymentInstrumentSchema = `${PaymentSchema}.instrument`
4
4
  export type PaymentInstrumentSchema = typeof PaymentInstrumentSchema
@@ -1,2 +1,2 @@
1
- export * from './Card/index.js'
2
- export * from './Schema.js'
1
+ export * from './Card/index.ts'
2
+ export * from './Schema.ts'
@@ -5,8 +5,8 @@ import {
5
5
  PayloadWithSources,
6
6
  } from '@xyo-network/payload-model'
7
7
 
8
- import { SupportedCurrency } from '../Currency.js'
9
- import { PaymentSchema } from './Schema.js'
8
+ import { SupportedCurrency } from '../Currency.ts'
9
+ import { PaymentSchema } from './Schema.ts'
10
10
 
11
11
  export interface PaymentFields {
12
12
  /**
@@ -1,4 +1,4 @@
1
- import { PaymentsSchema } from '../Schema.js'
1
+ import { PaymentsSchema } from '../Schema.ts'
2
2
 
3
3
  export const PaymentSchema = `${PaymentsSchema}.payment`
4
4
  export type PaymentSchema = typeof PaymentSchema
@@ -5,7 +5,7 @@ import {
5
5
  PayloadWithSources,
6
6
  } from '@xyo-network/payload-model'
7
7
 
8
- import { PaymentStatusSchema } from './Schema.js'
8
+ import { PaymentStatusSchema } from './Schema.ts'
9
9
 
10
10
  export interface PaymentStatusFields {
11
11
  /**
@@ -1,4 +1,4 @@
1
- import { PaymentSchema } from '../Schema.js'
1
+ import { PaymentSchema } from '../Schema.ts'
2
2
 
3
3
  export const PaymentStatusSchema = `${PaymentSchema}.status`
4
4
  export type PaymentStatusSchema = typeof PaymentStatusSchema
@@ -1,2 +1,2 @@
1
- export * from './Payload.js'
2
- export * from './Schema.js'
1
+ export * from './Payload.ts'
2
+ export * from './Schema.ts'
@@ -1,4 +1,4 @@
1
- export * from './Instrument/index.js'
2
- export * from './Payload.js'
3
- export * from './Schema.js'
4
- export * from './Status/index.js'
1
+ export * from './Instrument/index.ts'
2
+ export * from './Payload.ts'
3
+ export * from './Schema.ts'
4
+ export * from './Status/index.ts'
@@ -6,7 +6,7 @@ import {
6
6
  PayloadWithSources,
7
7
  } from '@xyo-network/payload-model'
8
8
 
9
- import { PurchaseSchema } from './Schema.js'
9
+ import { PurchaseSchema } from './Schema.ts'
10
10
 
11
11
  export interface PurchaseFields {
12
12
  /**
@@ -1,4 +1,4 @@
1
- import { PaymentsSchema } from '../Schema.js'
1
+ import { PaymentsSchema } from '../Schema.ts'
2
2
 
3
3
  export const PurchaseSchema = `${PaymentsSchema}.purchase`
4
4
  export type PurchaseSchema = typeof PurchaseSchema
@@ -1,2 +1,2 @@
1
- export * from './Payload.js'
2
- export * from './Schema.js'
1
+ export * from './Payload.ts'
2
+ export * from './Schema.ts'
@@ -5,8 +5,8 @@ import {
5
5
  PayloadWithSources,
6
6
  } from '@xyo-network/payload-model'
7
7
 
8
- import { SupportedCurrency } from '../Currency.js'
9
- import { ReceiptSchema } from './Schema.js'
8
+ import { SupportedCurrency } from '../Currency.ts'
9
+ import { ReceiptSchema } from './Schema.ts'
10
10
 
11
11
  export interface ReceiptFields {
12
12
  /**
@@ -1,4 +1,4 @@
1
- import { PaymentsSchema } from '../Schema.js'
1
+ import { PaymentsSchema } from '../Schema.ts'
2
2
 
3
3
  export const ReceiptSchema = `${PaymentsSchema}.receipt`
4
4
  export type ReceiptSchema = typeof ReceiptSchema
@@ -1,2 +1,2 @@
1
- export * from './Payload.js'
2
- export * from './Schema.js'
1
+ export * from './Payload.ts'
2
+ export * from './Schema.ts'
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from './Billing/index.js'
2
- export * from './Currency.js'
3
- export * from './Escrow/index.js'
4
- export * from './Payment/index.js'
5
- export * from './Purchase/index.js'
6
- export * from './Receipt/index.js'
1
+ export * from './Billing/index.ts'
2
+ export * from './Currency.ts'
3
+ export * from './Escrow/index.ts'
4
+ export * from './Payment/index.ts'
5
+ export * from './Purchase/index.ts'
6
+ export * from './Receipt/index.ts'