@bsv/wallet-toolbox 1.3.20 → 1.3.22

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 (517) hide show
  1. package/.github/workflows/push.yaml +5 -0
  2. package/mobile/out/src/CWIStyleWalletManager.d.ts +437 -0
  3. package/mobile/out/src/CWIStyleWalletManager.d.ts.map +1 -0
  4. package/mobile/out/src/CWIStyleWalletManager.js +1255 -0
  5. package/mobile/out/src/CWIStyleWalletManager.js.map +1 -0
  6. package/mobile/out/src/SetupClient.d.ts +126 -0
  7. package/mobile/out/src/SetupClient.d.ts.map +1 -0
  8. package/mobile/out/src/SetupClient.js +220 -0
  9. package/mobile/out/src/SetupClient.js.map +1 -0
  10. package/mobile/out/src/SetupWallet.d.ts +100 -0
  11. package/mobile/out/src/SetupWallet.d.ts.map +1 -0
  12. package/mobile/out/src/SetupWallet.js +3 -0
  13. package/mobile/out/src/SetupWallet.js.map +1 -0
  14. package/mobile/out/src/SimpleWalletManager.d.ts +169 -0
  15. package/mobile/out/src/SimpleWalletManager.d.ts.map +1 -0
  16. package/mobile/out/src/SimpleWalletManager.js +315 -0
  17. package/mobile/out/src/SimpleWalletManager.js.map +1 -0
  18. package/mobile/out/src/Wallet.d.ts +177 -0
  19. package/mobile/out/src/Wallet.d.ts.map +1 -0
  20. package/mobile/out/src/Wallet.js +742 -0
  21. package/mobile/out/src/Wallet.js.map +1 -0
  22. package/mobile/out/src/WalletAuthenticationManager.d.ts +33 -0
  23. package/mobile/out/src/WalletAuthenticationManager.d.ts.map +1 -0
  24. package/mobile/out/src/WalletAuthenticationManager.js +113 -0
  25. package/mobile/out/src/WalletAuthenticationManager.js.map +1 -0
  26. package/mobile/out/src/WalletPermissionsManager.d.ts +598 -0
  27. package/mobile/out/src/WalletPermissionsManager.d.ts.map +1 -0
  28. package/mobile/out/src/WalletPermissionsManager.js +1868 -0
  29. package/mobile/out/src/WalletPermissionsManager.js.map +1 -0
  30. package/mobile/out/src/WalletSettingsManager.d.ts +52 -0
  31. package/mobile/out/src/WalletSettingsManager.d.ts.map +1 -0
  32. package/mobile/out/src/WalletSettingsManager.js +82 -0
  33. package/mobile/out/src/WalletSettingsManager.js.map +1 -0
  34. package/mobile/out/src/index.client.d.ts +19 -0
  35. package/mobile/out/src/index.client.d.ts.map +1 -0
  36. package/mobile/out/src/index.client.js +58 -0
  37. package/mobile/out/src/index.client.js.map +1 -0
  38. package/mobile/out/src/index.mobile.d.ts +19 -0
  39. package/mobile/out/src/index.mobile.d.ts.map +1 -0
  40. package/mobile/out/src/index.mobile.js +58 -0
  41. package/mobile/out/src/index.mobile.js.map +1 -0
  42. package/mobile/out/src/monitor/Monitor.d.ts +91 -0
  43. package/mobile/out/src/monitor/Monitor.d.ts.map +1 -0
  44. package/mobile/out/src/monitor/Monitor.js +298 -0
  45. package/mobile/out/src/monitor/Monitor.js.map +1 -0
  46. package/mobile/out/src/monitor/tasks/TaskCheckForProofs.d.ts +53 -0
  47. package/mobile/out/src/monitor/tasks/TaskCheckForProofs.d.ts.map +1 -0
  48. package/mobile/out/src/monitor/tasks/TaskCheckForProofs.js +194 -0
  49. package/mobile/out/src/monitor/tasks/TaskCheckForProofs.js.map +1 -0
  50. package/mobile/out/src/monitor/tasks/TaskCheckNoSends.d.ts +33 -0
  51. package/mobile/out/src/monitor/tasks/TaskCheckNoSends.d.ts.map +1 -0
  52. package/mobile/out/src/monitor/tasks/TaskCheckNoSends.js +65 -0
  53. package/mobile/out/src/monitor/tasks/TaskCheckNoSends.js.map +1 -0
  54. package/mobile/out/src/monitor/tasks/TaskClock.d.ts +14 -0
  55. package/mobile/out/src/monitor/tasks/TaskClock.d.ts.map +1 -0
  56. package/mobile/out/src/monitor/tasks/TaskClock.js +27 -0
  57. package/mobile/out/src/monitor/tasks/TaskClock.js.map +1 -0
  58. package/mobile/out/src/monitor/tasks/TaskFailAbandoned.d.ts +20 -0
  59. package/mobile/out/src/monitor/tasks/TaskFailAbandoned.d.ts.map +1 -0
  60. package/mobile/out/src/monitor/tasks/TaskFailAbandoned.js +52 -0
  61. package/mobile/out/src/monitor/tasks/TaskFailAbandoned.js.map +1 -0
  62. package/mobile/out/src/monitor/tasks/TaskNewHeader.d.ts +15 -0
  63. package/mobile/out/src/monitor/tasks/TaskNewHeader.d.ts.map +1 -0
  64. package/mobile/out/src/monitor/tasks/TaskNewHeader.js +43 -0
  65. package/mobile/out/src/monitor/tasks/TaskNewHeader.js.map +1 -0
  66. package/mobile/out/src/monitor/tasks/TaskPurge.d.ts +45 -0
  67. package/mobile/out/src/monitor/tasks/TaskPurge.d.ts.map +1 -0
  68. package/mobile/out/src/monitor/tasks/TaskPurge.js +34 -0
  69. package/mobile/out/src/monitor/tasks/TaskPurge.js.map +1 -0
  70. package/mobile/out/src/monitor/tasks/TaskReviewStatus.d.ts +26 -0
  71. package/mobile/out/src/monitor/tasks/TaskReviewStatus.d.ts.map +1 -0
  72. package/mobile/out/src/monitor/tasks/TaskReviewStatus.js +43 -0
  73. package/mobile/out/src/monitor/tasks/TaskReviewStatus.js.map +1 -0
  74. package/mobile/out/src/monitor/tasks/TaskSendWaiting.d.ts +35 -0
  75. package/mobile/out/src/monitor/tasks/TaskSendWaiting.d.ts.map +1 -0
  76. package/mobile/out/src/monitor/tasks/TaskSendWaiting.js +107 -0
  77. package/mobile/out/src/monitor/tasks/TaskSendWaiting.js.map +1 -0
  78. package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.d.ts +12 -0
  79. package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.d.ts.map +1 -0
  80. package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.js +22 -0
  81. package/mobile/out/src/monitor/tasks/TaskSyncWhenIdle.js.map +1 -0
  82. package/mobile/out/src/monitor/tasks/TaskUnFail.d.ts +41 -0
  83. package/mobile/out/src/monitor/tasks/TaskUnFail.d.ts.map +1 -0
  84. package/mobile/out/src/monitor/tasks/TaskUnFail.js +144 -0
  85. package/mobile/out/src/monitor/tasks/TaskUnFail.js.map +1 -0
  86. package/mobile/out/src/monitor/tasks/WalletMonitorTask.d.ts +40 -0
  87. package/mobile/out/src/monitor/tasks/WalletMonitorTask.d.ts.map +1 -0
  88. package/mobile/out/src/monitor/tasks/WalletMonitorTask.js +37 -0
  89. package/mobile/out/src/monitor/tasks/WalletMonitorTask.js.map +1 -0
  90. package/mobile/out/src/sdk/CertOpsWallet.d.ts +7 -0
  91. package/mobile/out/src/sdk/CertOpsWallet.d.ts.map +1 -0
  92. package/mobile/out/src/sdk/CertOpsWallet.js +3 -0
  93. package/mobile/out/src/sdk/CertOpsWallet.js.map +1 -0
  94. package/mobile/out/src/sdk/PrivilegedKeyManager.d.ts +125 -0
  95. package/mobile/out/src/sdk/PrivilegedKeyManager.d.ts.map +1 -0
  96. package/mobile/out/src/sdk/PrivilegedKeyManager.js +293 -0
  97. package/mobile/out/src/sdk/PrivilegedKeyManager.js.map +1 -0
  98. package/mobile/out/src/sdk/WERR_errors.d.ts +115 -0
  99. package/mobile/out/src/sdk/WERR_errors.d.ts.map +1 -0
  100. package/mobile/out/src/sdk/WERR_errors.js +158 -0
  101. package/mobile/out/src/sdk/WERR_errors.js.map +1 -0
  102. package/mobile/out/src/sdk/WalletError.d.ts +44 -0
  103. package/mobile/out/src/sdk/WalletError.d.ts.map +1 -0
  104. package/mobile/out/src/sdk/WalletError.js +118 -0
  105. package/mobile/out/src/sdk/WalletError.js.map +1 -0
  106. package/mobile/out/src/sdk/WalletServices.interfaces.d.ts +430 -0
  107. package/mobile/out/src/sdk/WalletServices.interfaces.d.ts.map +1 -0
  108. package/mobile/out/src/sdk/WalletServices.interfaces.js +3 -0
  109. package/mobile/out/src/sdk/WalletServices.interfaces.js.map +1 -0
  110. package/mobile/out/src/sdk/WalletSigner.interfaces.d.ts +10 -0
  111. package/mobile/out/src/sdk/WalletSigner.interfaces.d.ts.map +1 -0
  112. package/mobile/out/src/sdk/WalletSigner.interfaces.js +3 -0
  113. package/mobile/out/src/sdk/WalletSigner.interfaces.js.map +1 -0
  114. package/mobile/out/src/sdk/WalletStorage.interfaces.d.ts +452 -0
  115. package/mobile/out/src/sdk/WalletStorage.interfaces.d.ts.map +1 -0
  116. package/mobile/out/src/sdk/WalletStorage.interfaces.js +3 -0
  117. package/mobile/out/src/sdk/WalletStorage.interfaces.js.map +1 -0
  118. package/mobile/out/src/sdk/index.d.ts +10 -0
  119. package/mobile/out/src/sdk/index.d.ts.map +1 -0
  120. package/mobile/out/src/sdk/index.js +26 -0
  121. package/mobile/out/src/sdk/index.js.map +1 -0
  122. package/mobile/out/src/sdk/types.d.ts +158 -0
  123. package/mobile/out/src/sdk/types.d.ts.map +1 -0
  124. package/mobile/out/src/sdk/types.js +90 -0
  125. package/mobile/out/src/sdk/types.js.map +1 -0
  126. package/mobile/out/src/sdk/validationHelpers.d.ts +301 -0
  127. package/mobile/out/src/sdk/validationHelpers.d.ts.map +1 -0
  128. package/mobile/out/src/sdk/validationHelpers.js +629 -0
  129. package/mobile/out/src/sdk/validationHelpers.js.map +1 -0
  130. package/mobile/out/src/services/ServiceCollection.d.ts +25 -0
  131. package/mobile/out/src/services/ServiceCollection.d.ts.map +1 -0
  132. package/mobile/out/src/services/ServiceCollection.js +43 -0
  133. package/mobile/out/src/services/ServiceCollection.js.map +1 -0
  134. package/mobile/out/src/services/Services.d.ts +67 -0
  135. package/mobile/out/src/services/Services.d.ts.map +1 -0
  136. package/mobile/out/src/services/Services.js +391 -0
  137. package/mobile/out/src/services/Services.js.map +1 -0
  138. package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.d.ts +15 -0
  139. package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.d.ts.map +1 -0
  140. package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.js +51 -0
  141. package/mobile/out/src/services/chaintracker/ChaintracksChainTracker.js.map +1 -0
  142. package/mobile/out/src/services/chaintracker/chaintracks/BlockHeaderApi.d.ts +98 -0
  143. package/mobile/out/src/services/chaintracker/chaintracks/BlockHeaderApi.d.ts.map +1 -0
  144. package/mobile/out/src/services/chaintracker/chaintracks/BlockHeaderApi.js +38 -0
  145. package/mobile/out/src/services/chaintracker/chaintracks/BlockHeaderApi.js.map +1 -0
  146. package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.d.ts +36 -0
  147. package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.d.ts.map +1 -0
  148. package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.js +128 -0
  149. package/mobile/out/src/services/chaintracker/chaintracks/ChaintracksServiceClient.js.map +1 -0
  150. package/mobile/out/src/services/chaintracker/chaintracks/index.d.ts +3 -0
  151. package/mobile/out/src/services/chaintracker/chaintracks/index.d.ts.map +1 -0
  152. package/mobile/out/src/services/chaintracker/chaintracks/index.js +19 -0
  153. package/mobile/out/src/services/chaintracker/chaintracks/index.js.map +1 -0
  154. package/mobile/out/src/services/chaintracker/index.d.ts +3 -0
  155. package/mobile/out/src/services/chaintracker/index.d.ts.map +1 -0
  156. package/mobile/out/src/services/chaintracker/index.js +19 -0
  157. package/mobile/out/src/services/chaintracker/index.js.map +1 -0
  158. package/mobile/out/src/services/createDefaultWalletServicesOptions.d.ts +4 -0
  159. package/mobile/out/src/services/createDefaultWalletServicesOptions.d.ts.map +1 -0
  160. package/mobile/out/src/services/createDefaultWalletServicesOptions.js +46 -0
  161. package/mobile/out/src/services/createDefaultWalletServicesOptions.js.map +1 -0
  162. package/mobile/out/src/services/index.d.ts +2 -0
  163. package/mobile/out/src/services/index.d.ts.map +1 -0
  164. package/mobile/out/src/services/index.js +18 -0
  165. package/mobile/out/src/services/index.js.map +1 -0
  166. package/mobile/out/src/services/providers/ARC.d.ts +91 -0
  167. package/mobile/out/src/services/providers/ARC.d.ts.map +1 -0
  168. package/mobile/out/src/services/providers/ARC.js +267 -0
  169. package/mobile/out/src/services/providers/ARC.js.map +1 -0
  170. package/mobile/out/src/services/providers/Bitails.d.ts +49 -0
  171. package/mobile/out/src/services/providers/Bitails.d.ts.map +1 -0
  172. package/mobile/out/src/services/providers/Bitails.js +222 -0
  173. package/mobile/out/src/services/providers/Bitails.js.map +1 -0
  174. package/mobile/out/src/services/providers/SdkWhatsOnChain.d.ts +21 -0
  175. package/mobile/out/src/services/providers/SdkWhatsOnChain.d.ts.map +1 -0
  176. package/mobile/out/src/services/providers/SdkWhatsOnChain.js +67 -0
  177. package/mobile/out/src/services/providers/SdkWhatsOnChain.js.map +1 -0
  178. package/mobile/out/src/services/providers/WhatsOnChain.d.ts +71 -0
  179. package/mobile/out/src/services/providers/WhatsOnChain.d.ts.map +1 -0
  180. package/mobile/out/src/services/providers/WhatsOnChain.js +582 -0
  181. package/mobile/out/src/services/providers/WhatsOnChain.js.map +1 -0
  182. package/mobile/out/src/services/providers/echangeRates.d.ts +12 -0
  183. package/mobile/out/src/services/providers/echangeRates.d.ts.map +1 -0
  184. package/mobile/out/src/services/providers/echangeRates.js +237 -0
  185. package/mobile/out/src/services/providers/echangeRates.js.map +1 -0
  186. package/mobile/out/src/services/providers/getBeefForTxid.d.ts +4 -0
  187. package/mobile/out/src/services/providers/getBeefForTxid.d.ts.map +1 -0
  188. package/mobile/out/src/services/providers/getBeefForTxid.js +286 -0
  189. package/mobile/out/src/services/providers/getBeefForTxid.js.map +1 -0
  190. package/mobile/out/src/signer/WalletSigner.d.ts +11 -0
  191. package/mobile/out/src/signer/WalletSigner.d.ts.map +1 -0
  192. package/mobile/out/src/signer/WalletSigner.js +13 -0
  193. package/mobile/out/src/signer/WalletSigner.js.map +1 -0
  194. package/mobile/out/src/signer/methods/acquireDirectCertificate.d.ts +4 -0
  195. package/mobile/out/src/signer/methods/acquireDirectCertificate.d.ts.map +1 -0
  196. package/mobile/out/src/signer/methods/acquireDirectCertificate.js +45 -0
  197. package/mobile/out/src/signer/methods/acquireDirectCertificate.js.map +1 -0
  198. package/mobile/out/src/signer/methods/buildSignableTransaction.d.ts +10 -0
  199. package/mobile/out/src/signer/methods/buildSignableTransaction.d.ts.map +1 -0
  200. package/mobile/out/src/signer/methods/buildSignableTransaction.js +126 -0
  201. package/mobile/out/src/signer/methods/buildSignableTransaction.js.map +1 -0
  202. package/mobile/out/src/signer/methods/createAction.d.ts +20 -0
  203. package/mobile/out/src/signer/methods/createAction.d.ts.map +1 -0
  204. package/mobile/out/src/signer/methods/createAction.js +160 -0
  205. package/mobile/out/src/signer/methods/createAction.js.map +1 -0
  206. package/mobile/out/src/signer/methods/internalizeAction.d.ts +31 -0
  207. package/mobile/out/src/signer/methods/internalizeAction.d.ts.map +1 -0
  208. package/mobile/out/src/signer/methods/internalizeAction.js +95 -0
  209. package/mobile/out/src/signer/methods/internalizeAction.js.map +1 -0
  210. package/mobile/out/src/signer/methods/proveCertificate.d.ts +4 -0
  211. package/mobile/out/src/signer/methods/proveCertificate.d.ts.map +1 -0
  212. package/mobile/out/src/signer/methods/proveCertificate.js +29 -0
  213. package/mobile/out/src/signer/methods/proveCertificate.js.map +1 -0
  214. package/mobile/out/src/signer/methods/signAction.d.ts +13 -0
  215. package/mobile/out/src/signer/methods/signAction.d.ts.map +1 -0
  216. package/mobile/out/src/signer/methods/signAction.js +89 -0
  217. package/mobile/out/src/signer/methods/signAction.js.map +1 -0
  218. package/mobile/out/src/storage/StorageIdb.d.ts +208 -0
  219. package/mobile/out/src/storage/StorageIdb.d.ts.map +1 -0
  220. package/mobile/out/src/storage/StorageIdb.js +2296 -0
  221. package/mobile/out/src/storage/StorageIdb.js.map +1 -0
  222. package/mobile/out/src/storage/StorageProvider.d.ts +209 -0
  223. package/mobile/out/src/storage/StorageProvider.d.ts.map +1 -0
  224. package/mobile/out/src/storage/StorageProvider.js +550 -0
  225. package/mobile/out/src/storage/StorageProvider.js.map +1 -0
  226. package/mobile/out/src/storage/StorageReader.d.ts +76 -0
  227. package/mobile/out/src/storage/StorageReader.d.ts.map +1 -0
  228. package/mobile/out/src/storage/StorageReader.js +129 -0
  229. package/mobile/out/src/storage/StorageReader.js.map +1 -0
  230. package/mobile/out/src/storage/StorageReaderWriter.d.ts +87 -0
  231. package/mobile/out/src/storage/StorageReaderWriter.d.ts.map +1 -0
  232. package/mobile/out/src/storage/StorageReaderWriter.js +338 -0
  233. package/mobile/out/src/storage/StorageReaderWriter.js.map +1 -0
  234. package/mobile/out/src/storage/StorageSyncReader.d.ts +17 -0
  235. package/mobile/out/src/storage/StorageSyncReader.d.ts.map +1 -0
  236. package/mobile/out/src/storage/StorageSyncReader.js +38 -0
  237. package/mobile/out/src/storage/StorageSyncReader.js.map +1 -0
  238. package/mobile/out/src/storage/WalletStorageManager.d.ts +184 -0
  239. package/mobile/out/src/storage/WalletStorageManager.d.ts.map +1 -0
  240. package/mobile/out/src/storage/WalletStorageManager.js +665 -0
  241. package/mobile/out/src/storage/WalletStorageManager.js.map +1 -0
  242. package/mobile/out/src/storage/index.client.d.ts +8 -0
  243. package/mobile/out/src/storage/index.client.d.ts.map +1 -0
  244. package/mobile/out/src/storage/index.client.js +24 -0
  245. package/mobile/out/src/storage/index.client.js.map +1 -0
  246. package/mobile/out/src/storage/index.mobile.d.ts +7 -0
  247. package/mobile/out/src/storage/index.mobile.d.ts.map +1 -0
  248. package/mobile/out/src/storage/index.mobile.js +23 -0
  249. package/mobile/out/src/storage/index.mobile.js.map +1 -0
  250. package/mobile/out/src/storage/methods/ListActionsSpecOp.d.ts +16 -0
  251. package/mobile/out/src/storage/methods/ListActionsSpecOp.d.ts.map +1 -0
  252. package/mobile/out/src/storage/methods/ListActionsSpecOp.js +40 -0
  253. package/mobile/out/src/storage/methods/ListActionsSpecOp.js.map +1 -0
  254. package/mobile/out/src/storage/methods/ListOutputsSpecOp.d.ts +26 -0
  255. package/mobile/out/src/storage/methods/ListOutputsSpecOp.d.ts.map +1 -0
  256. package/mobile/out/src/storage/methods/ListOutputsSpecOp.js +71 -0
  257. package/mobile/out/src/storage/methods/ListOutputsSpecOp.js.map +1 -0
  258. package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts +41 -0
  259. package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts.map +1 -0
  260. package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.js +320 -0
  261. package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.js.map +1 -0
  262. package/mobile/out/src/storage/methods/createAction.d.ts +24 -0
  263. package/mobile/out/src/storage/methods/createAction.d.ts.map +1 -0
  264. package/mobile/out/src/storage/methods/createAction.js +705 -0
  265. package/mobile/out/src/storage/methods/createAction.js.map +1 -0
  266. package/mobile/out/src/storage/methods/generateChange.d.ts +119 -0
  267. package/mobile/out/src/storage/methods/generateChange.d.ts.map +1 -0
  268. package/mobile/out/src/storage/methods/generateChange.js +448 -0
  269. package/mobile/out/src/storage/methods/generateChange.js.map +1 -0
  270. package/mobile/out/src/storage/methods/getBeefForTransaction.d.ts +22 -0
  271. package/mobile/out/src/storage/methods/getBeefForTransaction.d.ts.map +1 -0
  272. package/mobile/out/src/storage/methods/getBeefForTransaction.js +92 -0
  273. package/mobile/out/src/storage/methods/getBeefForTransaction.js.map +1 -0
  274. package/mobile/out/src/storage/methods/getSyncChunk.d.ts +10 -0
  275. package/mobile/out/src/storage/methods/getSyncChunk.d.ts.map +1 -0
  276. package/mobile/out/src/storage/methods/getSyncChunk.js +271 -0
  277. package/mobile/out/src/storage/methods/getSyncChunk.js.map +1 -0
  278. package/mobile/out/src/storage/methods/internalizeAction.d.ts +38 -0
  279. package/mobile/out/src/storage/methods/internalizeAction.d.ts.map +1 -0
  280. package/mobile/out/src/storage/methods/internalizeAction.js +371 -0
  281. package/mobile/out/src/storage/methods/internalizeAction.js.map +1 -0
  282. package/mobile/out/src/storage/methods/listActionsIdb.d.ts +5 -0
  283. package/mobile/out/src/storage/methods/listActionsIdb.d.ts.map +1 -0
  284. package/mobile/out/src/storage/methods/listActionsIdb.js +155 -0
  285. package/mobile/out/src/storage/methods/listActionsIdb.js.map +1 -0
  286. package/mobile/out/src/storage/methods/listCertificates.d.ts +5 -0
  287. package/mobile/out/src/storage/methods/listCertificates.d.ts.map +1 -0
  288. package/mobile/out/src/storage/methods/listCertificates.js +68 -0
  289. package/mobile/out/src/storage/methods/listCertificates.js.map +1 -0
  290. package/mobile/out/src/storage/methods/listOutputsIdb.d.ts +5 -0
  291. package/mobile/out/src/storage/methods/listOutputsIdb.d.ts.map +1 -0
  292. package/mobile/out/src/storage/methods/listOutputsIdb.js +181 -0
  293. package/mobile/out/src/storage/methods/listOutputsIdb.js.map +1 -0
  294. package/mobile/out/src/storage/methods/processAction.d.ts +35 -0
  295. package/mobile/out/src/storage/methods/processAction.d.ts.map +1 -0
  296. package/mobile/out/src/storage/methods/processAction.js +311 -0
  297. package/mobile/out/src/storage/methods/processAction.js.map +1 -0
  298. package/mobile/out/src/storage/methods/purgeDataIdb.d.ts +4 -0
  299. package/mobile/out/src/storage/methods/purgeDataIdb.d.ts.map +1 -0
  300. package/mobile/out/src/storage/methods/purgeDataIdb.js +9 -0
  301. package/mobile/out/src/storage/methods/purgeDataIdb.js.map +1 -0
  302. package/mobile/out/src/storage/methods/reviewStatusIdb.d.ts +20 -0
  303. package/mobile/out/src/storage/methods/reviewStatusIdb.d.ts.map +1 -0
  304. package/mobile/out/src/storage/methods/reviewStatusIdb.js +35 -0
  305. package/mobile/out/src/storage/methods/reviewStatusIdb.js.map +1 -0
  306. package/mobile/out/src/storage/remoting/StorageClient.d.ts +283 -0
  307. package/mobile/out/src/storage/remoting/StorageClient.d.ts.map +1 -0
  308. package/mobile/out/src/storage/remoting/StorageClient.js +477 -0
  309. package/mobile/out/src/storage/remoting/StorageClient.js.map +1 -0
  310. package/mobile/out/src/storage/schema/StorageIdbSchema.d.ts +133 -0
  311. package/mobile/out/src/storage/schema/StorageIdbSchema.d.ts.map +1 -0
  312. package/mobile/out/src/storage/schema/StorageIdbSchema.js +3 -0
  313. package/mobile/out/src/storage/schema/StorageIdbSchema.js.map +1 -0
  314. package/mobile/out/src/storage/schema/entities/EntityBase.d.ts +105 -0
  315. package/mobile/out/src/storage/schema/entities/EntityBase.d.ts.map +1 -0
  316. package/mobile/out/src/storage/schema/entities/EntityBase.js +100 -0
  317. package/mobile/out/src/storage/schema/entities/EntityBase.js.map +1 -0
  318. package/mobile/out/src/storage/schema/entities/EntityCertificate.d.ts +43 -0
  319. package/mobile/out/src/storage/schema/entities/EntityCertificate.d.ts.map +1 -0
  320. package/mobile/out/src/storage/schema/entities/EntityCertificate.js +162 -0
  321. package/mobile/out/src/storage/schema/entities/EntityCertificate.js.map +1 -0
  322. package/mobile/out/src/storage/schema/entities/EntityCertificateField.d.ts +32 -0
  323. package/mobile/out/src/storage/schema/entities/EntityCertificateField.d.ts.map +1 -0
  324. package/mobile/out/src/storage/schema/entities/EntityCertificateField.js +111 -0
  325. package/mobile/out/src/storage/schema/entities/EntityCertificateField.js.map +1 -0
  326. package/mobile/out/src/storage/schema/entities/EntityCommission.d.ts +37 -0
  327. package/mobile/out/src/storage/schema/entities/EntityCommission.d.ts.map +1 -0
  328. package/mobile/out/src/storage/schema/entities/EntityCommission.js +127 -0
  329. package/mobile/out/src/storage/schema/entities/EntityCommission.js.map +1 -0
  330. package/mobile/out/src/storage/schema/entities/EntityOutput.d.ts +67 -0
  331. package/mobile/out/src/storage/schema/entities/EntityOutput.d.ts.map +1 -0
  332. package/mobile/out/src/storage/schema/entities/EntityOutput.js +264 -0
  333. package/mobile/out/src/storage/schema/entities/EntityOutput.js.map +1 -0
  334. package/mobile/out/src/storage/schema/entities/EntityOutputBasket.d.ts +35 -0
  335. package/mobile/out/src/storage/schema/entities/EntityOutputBasket.d.ts.map +1 -0
  336. package/mobile/out/src/storage/schema/entities/EntityOutputBasket.js +133 -0
  337. package/mobile/out/src/storage/schema/entities/EntityOutputBasket.js.map +1 -0
  338. package/mobile/out/src/storage/schema/entities/EntityOutputTag.d.ts +31 -0
  339. package/mobile/out/src/storage/schema/entities/EntityOutputTag.d.ts.map +1 -0
  340. package/mobile/out/src/storage/schema/entities/EntityOutputTag.js +104 -0
  341. package/mobile/out/src/storage/schema/entities/EntityOutputTag.js.map +1 -0
  342. package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.d.ts +28 -0
  343. package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.d.ts.map +1 -0
  344. package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.js +97 -0
  345. package/mobile/out/src/storage/schema/entities/EntityOutputTagMap.js.map +1 -0
  346. package/mobile/out/src/storage/schema/entities/EntityProvenTx.d.ts +84 -0
  347. package/mobile/out/src/storage/schema/entities/EntityProvenTx.d.ts.map +1 -0
  348. package/mobile/out/src/storage/schema/entities/EntityProvenTx.js +276 -0
  349. package/mobile/out/src/storage/schema/entities/EntityProvenTx.js.map +1 -0
  350. package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.d.ts +135 -0
  351. package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.d.ts.map +1 -0
  352. package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.js +522 -0
  353. package/mobile/out/src/storage/schema/entities/EntityProvenTxReq.js.map +1 -0
  354. package/mobile/out/src/storage/schema/entities/EntitySyncState.d.ts +67 -0
  355. package/mobile/out/src/storage/schema/entities/EntitySyncState.d.ts.map +1 -0
  356. package/mobile/out/src/storage/schema/entities/EntitySyncState.js +319 -0
  357. package/mobile/out/src/storage/schema/entities/EntitySyncState.js.map +1 -0
  358. package/mobile/out/src/storage/schema/entities/EntityTransaction.d.ts +67 -0
  359. package/mobile/out/src/storage/schema/entities/EntityTransaction.d.ts.map +1 -0
  360. package/mobile/out/src/storage/schema/entities/EntityTransaction.js +255 -0
  361. package/mobile/out/src/storage/schema/entities/EntityTransaction.js.map +1 -0
  362. package/mobile/out/src/storage/schema/entities/EntityTxLabel.d.ts +31 -0
  363. package/mobile/out/src/storage/schema/entities/EntityTxLabel.d.ts.map +1 -0
  364. package/mobile/out/src/storage/schema/entities/EntityTxLabel.js +104 -0
  365. package/mobile/out/src/storage/schema/entities/EntityTxLabel.js.map +1 -0
  366. package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.d.ts +28 -0
  367. package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.d.ts.map +1 -0
  368. package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.js +97 -0
  369. package/mobile/out/src/storage/schema/entities/EntityTxLabelMap.js.map +1 -0
  370. package/mobile/out/src/storage/schema/entities/EntityUser.d.ts +29 -0
  371. package/mobile/out/src/storage/schema/entities/EntityUser.d.ts.map +1 -0
  372. package/mobile/out/src/storage/schema/entities/EntityUser.js +98 -0
  373. package/mobile/out/src/storage/schema/entities/EntityUser.js.map +1 -0
  374. package/mobile/out/src/storage/schema/entities/MergeEntity.d.ts +33 -0
  375. package/mobile/out/src/storage/schema/entities/MergeEntity.d.ts.map +1 -0
  376. package/mobile/out/src/storage/schema/entities/MergeEntity.js +62 -0
  377. package/mobile/out/src/storage/schema/entities/MergeEntity.js.map +1 -0
  378. package/mobile/out/src/storage/schema/entities/index.d.ts +17 -0
  379. package/mobile/out/src/storage/schema/entities/index.d.ts.map +1 -0
  380. package/mobile/out/src/storage/schema/entities/index.js +33 -0
  381. package/mobile/out/src/storage/schema/entities/index.js.map +1 -0
  382. package/mobile/out/src/storage/schema/tables/TableCertificate.d.ts +20 -0
  383. package/mobile/out/src/storage/schema/tables/TableCertificate.d.ts.map +1 -0
  384. package/mobile/out/src/storage/schema/tables/TableCertificate.js +3 -0
  385. package/mobile/out/src/storage/schema/tables/TableCertificate.js.map +1 -0
  386. package/mobile/out/src/storage/schema/tables/TableCertificateField.d.ts +12 -0
  387. package/mobile/out/src/storage/schema/tables/TableCertificateField.d.ts.map +1 -0
  388. package/mobile/out/src/storage/schema/tables/TableCertificateField.js +3 -0
  389. package/mobile/out/src/storage/schema/tables/TableCertificateField.js.map +1 -0
  390. package/mobile/out/src/storage/schema/tables/TableCommission.d.ts +13 -0
  391. package/mobile/out/src/storage/schema/tables/TableCommission.d.ts.map +1 -0
  392. package/mobile/out/src/storage/schema/tables/TableCommission.js +3 -0
  393. package/mobile/out/src/storage/schema/tables/TableCommission.js.map +1 -0
  394. package/mobile/out/src/storage/schema/tables/TableMonitorEvent.d.ts +9 -0
  395. package/mobile/out/src/storage/schema/tables/TableMonitorEvent.d.ts.map +1 -0
  396. package/mobile/out/src/storage/schema/tables/TableMonitorEvent.js +3 -0
  397. package/mobile/out/src/storage/schema/tables/TableMonitorEvent.js.map +1 -0
  398. package/mobile/out/src/storage/schema/tables/TableOutput.d.ts +36 -0
  399. package/mobile/out/src/storage/schema/tables/TableOutput.d.ts.map +1 -0
  400. package/mobile/out/src/storage/schema/tables/TableOutput.js +31 -0
  401. package/mobile/out/src/storage/schema/tables/TableOutput.js.map +1 -0
  402. package/mobile/out/src/storage/schema/tables/TableOutputBasket.d.ts +12 -0
  403. package/mobile/out/src/storage/schema/tables/TableOutputBasket.d.ts.map +1 -0
  404. package/mobile/out/src/storage/schema/tables/TableOutputBasket.js +3 -0
  405. package/mobile/out/src/storage/schema/tables/TableOutputBasket.js.map +1 -0
  406. package/mobile/out/src/storage/schema/tables/TableOutputTag.d.ts +10 -0
  407. package/mobile/out/src/storage/schema/tables/TableOutputTag.d.ts.map +1 -0
  408. package/mobile/out/src/storage/schema/tables/TableOutputTag.js +3 -0
  409. package/mobile/out/src/storage/schema/tables/TableOutputTag.js.map +1 -0
  410. package/mobile/out/src/storage/schema/tables/TableOutputTagMap.d.ts +9 -0
  411. package/mobile/out/src/storage/schema/tables/TableOutputTagMap.d.ts.map +1 -0
  412. package/mobile/out/src/storage/schema/tables/TableOutputTagMap.js +3 -0
  413. package/mobile/out/src/storage/schema/tables/TableOutputTagMap.js.map +1 -0
  414. package/mobile/out/src/storage/schema/tables/TableProvenTx.d.ts +14 -0
  415. package/mobile/out/src/storage/schema/tables/TableProvenTx.d.ts.map +1 -0
  416. package/mobile/out/src/storage/schema/tables/TableProvenTx.js +3 -0
  417. package/mobile/out/src/storage/schema/tables/TableProvenTx.js.map +1 -0
  418. package/mobile/out/src/storage/schema/tables/TableProvenTxReq.d.ts +64 -0
  419. package/mobile/out/src/storage/schema/tables/TableProvenTxReq.d.ts.map +1 -0
  420. package/mobile/out/src/storage/schema/tables/TableProvenTxReq.js +3 -0
  421. package/mobile/out/src/storage/schema/tables/TableProvenTxReq.js.map +1 -0
  422. package/mobile/out/src/storage/schema/tables/TableSettings.d.ts +17 -0
  423. package/mobile/out/src/storage/schema/tables/TableSettings.d.ts.map +1 -0
  424. package/mobile/out/src/storage/schema/tables/TableSettings.js +3 -0
  425. package/mobile/out/src/storage/schema/tables/TableSettings.js.map +1 -0
  426. package/mobile/out/src/storage/schema/tables/TableSyncState.d.ts +18 -0
  427. package/mobile/out/src/storage/schema/tables/TableSyncState.d.ts.map +1 -0
  428. package/mobile/out/src/storage/schema/tables/TableSyncState.js +3 -0
  429. package/mobile/out/src/storage/schema/tables/TableSyncState.js.map +1 -0
  430. package/mobile/out/src/storage/schema/tables/TableTransaction.d.ts +37 -0
  431. package/mobile/out/src/storage/schema/tables/TableTransaction.d.ts.map +1 -0
  432. package/mobile/out/src/storage/schema/tables/TableTransaction.js +21 -0
  433. package/mobile/out/src/storage/schema/tables/TableTransaction.js.map +1 -0
  434. package/mobile/out/src/storage/schema/tables/TableTxLabel.d.ts +10 -0
  435. package/mobile/out/src/storage/schema/tables/TableTxLabel.d.ts.map +1 -0
  436. package/mobile/out/src/storage/schema/tables/TableTxLabel.js +3 -0
  437. package/mobile/out/src/storage/schema/tables/TableTxLabel.js.map +1 -0
  438. package/mobile/out/src/storage/schema/tables/TableTxLabelMap.d.ts +9 -0
  439. package/mobile/out/src/storage/schema/tables/TableTxLabelMap.d.ts.map +1 -0
  440. package/mobile/out/src/storage/schema/tables/TableTxLabelMap.js +3 -0
  441. package/mobile/out/src/storage/schema/tables/TableTxLabelMap.js.map +1 -0
  442. package/mobile/out/src/storage/schema/tables/TableUser.d.ts +16 -0
  443. package/mobile/out/src/storage/schema/tables/TableUser.d.ts.map +1 -0
  444. package/mobile/out/src/storage/schema/tables/TableUser.js +3 -0
  445. package/mobile/out/src/storage/schema/tables/TableUser.js.map +1 -0
  446. package/mobile/out/src/storage/schema/tables/index.d.ts +17 -0
  447. package/mobile/out/src/storage/schema/tables/index.d.ts.map +1 -0
  448. package/mobile/out/src/storage/schema/tables/index.js +33 -0
  449. package/mobile/out/src/storage/schema/tables/index.js.map +1 -0
  450. package/mobile/out/src/utility/ScriptTemplateBRC29.d.ts +25 -0
  451. package/mobile/out/src/utility/ScriptTemplateBRC29.d.ts.map +1 -0
  452. package/mobile/out/src/utility/ScriptTemplateBRC29.js +48 -0
  453. package/mobile/out/src/utility/ScriptTemplateBRC29.js.map +1 -0
  454. package/mobile/out/src/utility/identityUtils.d.ts +31 -0
  455. package/mobile/out/src/utility/identityUtils.d.ts.map +1 -0
  456. package/mobile/out/src/utility/identityUtils.js +116 -0
  457. package/mobile/out/src/utility/identityUtils.js.map +1 -0
  458. package/mobile/out/src/utility/index.client.d.ts +7 -0
  459. package/mobile/out/src/utility/index.client.d.ts.map +1 -0
  460. package/mobile/out/src/utility/index.client.js +23 -0
  461. package/mobile/out/src/utility/index.client.js.map +1 -0
  462. package/mobile/out/src/utility/parseTxScriptOffsets.d.ts +14 -0
  463. package/mobile/out/src/utility/parseTxScriptOffsets.d.ts.map +1 -0
  464. package/mobile/out/src/utility/parseTxScriptOffsets.js +26 -0
  465. package/mobile/out/src/utility/parseTxScriptOffsets.js.map +1 -0
  466. package/mobile/out/src/utility/stampLog.d.ts +18 -0
  467. package/mobile/out/src/utility/stampLog.d.ts.map +1 -0
  468. package/mobile/out/src/utility/stampLog.js +72 -0
  469. package/mobile/out/src/utility/stampLog.js.map +1 -0
  470. package/mobile/out/src/utility/tscProofToMerklePath.d.ts +8 -0
  471. package/mobile/out/src/utility/tscProofToMerklePath.d.ts.map +1 -0
  472. package/mobile/out/src/utility/tscProofToMerklePath.js +41 -0
  473. package/mobile/out/src/utility/tscProofToMerklePath.js.map +1 -0
  474. package/mobile/out/src/utility/utilityHelpers.d.ts +129 -0
  475. package/mobile/out/src/utility/utilityHelpers.d.ts.map +1 -0
  476. package/mobile/out/src/utility/utilityHelpers.js +266 -0
  477. package/mobile/out/src/utility/utilityHelpers.js.map +1 -0
  478. package/mobile/out/src/utility/utilityHelpers.noBuffer.d.ts +9 -0
  479. package/mobile/out/src/utility/utilityHelpers.noBuffer.d.ts.map +1 -0
  480. package/mobile/out/src/utility/utilityHelpers.noBuffer.js +23 -0
  481. package/mobile/out/src/utility/utilityHelpers.noBuffer.js.map +1 -0
  482. package/mobile/out/src/wab-client/WABClient.d.ts +49 -0
  483. package/mobile/out/src/wab-client/WABClient.d.ts.map +1 -0
  484. package/mobile/out/src/wab-client/WABClient.js +80 -0
  485. package/mobile/out/src/wab-client/WABClient.js.map +1 -0
  486. package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts +34 -0
  487. package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts.map +1 -0
  488. package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.js +16 -0
  489. package/mobile/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.js.map +1 -0
  490. package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.d.ts +7 -0
  491. package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.d.ts.map +1 -0
  492. package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.js +36 -0
  493. package/mobile/out/src/wab-client/auth-method-interactors/PersonaIDInteractor.js.map +1 -0
  494. package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.d.ts +28 -0
  495. package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.d.ts.map +1 -0
  496. package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.js +69 -0
  497. package/mobile/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.js.map +1 -0
  498. package/mobile/out/tsconfig.mobile.tsbuildinfo +1 -0
  499. package/mobile/package-lock.json +22 -0
  500. package/mobile/package.json +25 -0
  501. package/out/src/index.mobile.d.ts +19 -0
  502. package/out/src/index.mobile.d.ts.map +1 -0
  503. package/out/src/index.mobile.js +58 -0
  504. package/out/src/index.mobile.js.map +1 -0
  505. package/out/src/storage/index.mobile.d.ts +7 -0
  506. package/out/src/storage/index.mobile.d.ts.map +1 -0
  507. package/out/src/storage/index.mobile.js +23 -0
  508. package/out/src/storage/index.mobile.js.map +1 -0
  509. package/out/src/wab-client/WABClient.js +2 -5
  510. package/out/src/wab-client/WABClient.js.map +1 -1
  511. package/out/tsconfig.all.tsbuildinfo +1 -1
  512. package/package.json +1 -1
  513. package/src/index.mobile.ts +18 -0
  514. package/src/storage/index.mobile.ts +6 -0
  515. package/src/wab-client/WABClient.ts +2 -2
  516. package/tsconfig.json +3 -0
  517. package/tsconfig.mobile.json +22 -0
@@ -0,0 +1,105 @@
1
+ import { sdk, StorageProvider } from '../../../index.client';
2
+ export type EntityStorage = StorageProvider;
3
+ export declare abstract class EntityBase<T> {
4
+ api: T;
5
+ constructor(api: T);
6
+ /**
7
+ * Standard property for entity database Id
8
+ */
9
+ abstract get id(): number;
10
+ /**
11
+ * Name of derived entity class
12
+ */
13
+ abstract get entityName(): string;
14
+ /**
15
+ * Schema table name of entity
16
+ */
17
+ abstract get entityTable(): string;
18
+ /**
19
+ * On construction, an entity may decode properties of the `api` object,
20
+ * such as JSON stringified objects.
21
+ *
22
+ * The `updateApi` method must re-encode the current state of those decoded properties
23
+ * into the `api` object.
24
+ *
25
+ * Used by the `toApi` method to return an updated `api` object.
26
+ */
27
+ abstract updateApi(): void;
28
+ /**
29
+ * Tests for equality or 'merge' / 'convergent' equality if syncMap is provided.
30
+ *
31
+ * 'convergent' equality must satisfy (A sync B) equals (B sync A)
32
+ *
33
+ * @param ei
34
+ * @param syncMap
35
+ */
36
+ abstract equals(ei: T, syncMap?: SyncMap): boolean;
37
+ /**
38
+ * Perform a 'merge' / 'convergent' equality migration of state
39
+ * to this new local entity which was constructed
40
+ * as a copy of the external object.
41
+ *
42
+ * @param userId local userId
43
+ * @param syncMap
44
+ */
45
+ abstract mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: sdk.TrxToken): Promise<void>;
46
+ /**
47
+ * Perform a 'merge' / 'convergent' equality migration of state
48
+ * from external `ei` to this existing local EntityUser
49
+ *
50
+ * @param ei
51
+ * @param syncMap
52
+ * @returns true iff entity state changed and was updated to storage
53
+ */
54
+ abstract mergeExisting(storage: EntityStorage, since: Date | undefined, ei: T, syncMap: SyncMap, trx?: sdk.TrxToken): Promise<boolean>;
55
+ /**
56
+ * An entity may decode properties of the underlying Api object on construction.
57
+ *
58
+ * The `toApi` method forces an `updateApi` before returning the underlying,
59
+ * now updated, Api object.
60
+ *
61
+ * @returns The underlying Api object with any entity decoded properties updated.
62
+ */
63
+ toApi(): T;
64
+ }
65
+ export interface EntitySyncMap {
66
+ entityName: string;
67
+ /**
68
+ * Maps foreign ids to local ids
69
+ * Some entities don't have idMaps (CertificateField, TxLabelMap and OutputTagMap)
70
+ */
71
+ idMap: Record<number, number>;
72
+ /**
73
+ * the maximum updated_at value seen for this entity over chunks received
74
+ * during this udpate cycle.
75
+ */
76
+ maxUpdated_at?: Date;
77
+ /**
78
+ * The cummulative count of items of this entity type received over all the `SyncChunk`s
79
+ * since the `since` was last updated.
80
+ *
81
+ * This is the `offset` value to use for the next SyncChunk request.
82
+ */
83
+ count: number;
84
+ }
85
+ export interface SyncMap {
86
+ provenTx: EntitySyncMap;
87
+ outputBasket: EntitySyncMap;
88
+ transaction: EntitySyncMap;
89
+ provenTxReq: EntitySyncMap;
90
+ txLabel: EntitySyncMap;
91
+ txLabelMap: EntitySyncMap;
92
+ output: EntitySyncMap;
93
+ outputTag: EntitySyncMap;
94
+ outputTagMap: EntitySyncMap;
95
+ certificate: EntitySyncMap;
96
+ certificateField: EntitySyncMap;
97
+ commission: EntitySyncMap;
98
+ }
99
+ export declare function createSyncMap(): SyncMap;
100
+ export interface SyncError {
101
+ code: string;
102
+ description: string;
103
+ stack?: string;
104
+ }
105
+ //# sourceMappingURL=EntityBase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntityBase.d.ts","sourceRoot":"","sources":["../../../../../../src/storage/schema/entities/EntityBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,MAAM,MAAM,aAAa,GAAG,eAAe,CAAA;AAE3C,8BAAsB,UAAU,CAAC,CAAC;IAChC,GAAG,EAAE,CAAC,CAAA;gBAEM,GAAG,EAAE,CAAC;IAIlB;;OAEG;IACH,QAAQ,KAAK,EAAE,IAAI,MAAM,CAAA;IAEzB;;OAEG;IACH,QAAQ,KAAK,UAAU,IAAI,MAAM,CAAA;IAEjC;;OAEG;IACH,QAAQ,KAAK,WAAW,IAAI,MAAM,CAAA;IAElC;;;;;;;;OAQG;IACH,QAAQ,CAAC,SAAS,IAAI,IAAI;IAE1B;;;;;;;OAOG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO;IAElD;;;;;;;OAOG;IACH,QAAQ,CAAC,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAE9G;;;;;;;OAOG;IACH,QAAQ,CAAC,aAAa,CACpB,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,IAAI,GAAG,SAAS,EACvB,EAAE,EAAE,CAAC,EACL,OAAO,EAAE,OAAO,EAChB,GAAG,CAAC,EAAE,GAAG,CAAC,QAAQ,GACjB,OAAO,CAAC,OAAO,CAAC;IAEnB;;;;;;;OAOG;IACH,KAAK,IAAI,CAAC;CAIX;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE7B;;;OAGG;IACH,aAAa,CAAC,EAAE,IAAI,CAAA;IAEpB;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,OAAO;IACtB,QAAQ,EAAE,aAAa,CAAA;IACvB,YAAY,EAAE,aAAa,CAAA;IAC3B,WAAW,EAAE,aAAa,CAAA;IAC1B,WAAW,EAAE,aAAa,CAAA;IAC1B,OAAO,EAAE,aAAa,CAAA;IACtB,UAAU,EAAE,aAAa,CAAA;IACzB,MAAM,EAAE,aAAa,CAAA;IACrB,SAAS,EAAE,aAAa,CAAA;IACxB,YAAY,EAAE,aAAa,CAAA;IAC3B,WAAW,EAAE,aAAa,CAAA;IAC1B,gBAAgB,EAAE,aAAa,CAAA;IAC/B,UAAU,EAAE,aAAa,CAAA;CAC1B;AAED,wBAAgB,aAAa,IAAI,OAAO,CA4EvC;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EntityBase = void 0;
4
+ exports.createSyncMap = createSyncMap;
5
+ class EntityBase {
6
+ constructor(api) {
7
+ this.api = api;
8
+ }
9
+ /**
10
+ * An entity may decode properties of the underlying Api object on construction.
11
+ *
12
+ * The `toApi` method forces an `updateApi` before returning the underlying,
13
+ * now updated, Api object.
14
+ *
15
+ * @returns The underlying Api object with any entity decoded properties updated.
16
+ */
17
+ toApi() {
18
+ this.updateApi();
19
+ return this.api;
20
+ }
21
+ }
22
+ exports.EntityBase = EntityBase;
23
+ function createSyncMap() {
24
+ const r = {
25
+ provenTx: {
26
+ entityName: 'provenTx',
27
+ idMap: {},
28
+ maxUpdated_at: undefined,
29
+ count: 0
30
+ },
31
+ outputBasket: {
32
+ entityName: 'outputBasket',
33
+ idMap: {},
34
+ maxUpdated_at: undefined,
35
+ count: 0
36
+ },
37
+ transaction: {
38
+ entityName: 'transaction',
39
+ idMap: {},
40
+ maxUpdated_at: undefined,
41
+ count: 0
42
+ },
43
+ provenTxReq: {
44
+ entityName: 'provenTxReq',
45
+ idMap: {},
46
+ maxUpdated_at: undefined,
47
+ count: 0
48
+ },
49
+ txLabel: {
50
+ entityName: 'txLabel',
51
+ idMap: {},
52
+ maxUpdated_at: undefined,
53
+ count: 0
54
+ },
55
+ txLabelMap: {
56
+ entityName: 'txLabelMap',
57
+ idMap: {},
58
+ maxUpdated_at: undefined,
59
+ count: 0
60
+ },
61
+ output: {
62
+ entityName: 'output',
63
+ idMap: {},
64
+ maxUpdated_at: undefined,
65
+ count: 0
66
+ },
67
+ outputTag: {
68
+ entityName: 'outputTag',
69
+ idMap: {},
70
+ maxUpdated_at: undefined,
71
+ count: 0
72
+ },
73
+ outputTagMap: {
74
+ entityName: 'outputTagMap',
75
+ idMap: {},
76
+ maxUpdated_at: undefined,
77
+ count: 0
78
+ },
79
+ certificate: {
80
+ entityName: 'certificate',
81
+ idMap: {},
82
+ maxUpdated_at: undefined,
83
+ count: 0
84
+ },
85
+ certificateField: {
86
+ entityName: 'certificateField',
87
+ idMap: {},
88
+ maxUpdated_at: undefined,
89
+ count: 0
90
+ },
91
+ commission: {
92
+ entityName: 'commission',
93
+ idMap: {},
94
+ maxUpdated_at: undefined,
95
+ count: 0
96
+ }
97
+ };
98
+ return r;
99
+ }
100
+ //# sourceMappingURL=EntityBase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntityBase.js","sourceRoot":"","sources":["../../../../../../src/storage/schema/entities/EntityBase.ts"],"names":[],"mappings":";;;AA8HA,sCA4EC;AAtMD,MAAsB,UAAU;IAG9B,YAAY,GAAM;QAChB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;IAChB,CAAC;IAgED;;;;;;;OAOG;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AU,EAAE,aAAa;YACzB,KAAK,EAAE,EAAE;YACT,aAAa,EAAE,SAAS;YACxB,KAAK,EAAE,CAAC;SACT;QACD,gBAAgB,EAAE;YAChB,UAAU,EAAE,kBAAkB;YAC9B,KAAK,EAAE,EAAE;YACT,aAAa,EAAE,SAAS;YACxB,KAAK,EAAE,CAAC;SACT;QACD,UAAU,EAAE;YACV,UAAU,EAAE,YAAY;YACxB,KAAK,EAAE,EAAE;YACT,aAAa,EAAE,SAAS;YACxB,KAAK,EAAE,CAAC;SACT;KACF,CAAA;IACD,OAAO,CAAC,CAAA;AACV,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { sdk, TableCertificate } from '../../../index.client';
2
+ import { EntityBase, EntityStorage, SyncMap } from '.';
3
+ export declare class EntityCertificate extends EntityBase<TableCertificate> {
4
+ constructor(api?: TableCertificate);
5
+ updateApi(): void;
6
+ get certificateId(): number;
7
+ set certificateId(v: number);
8
+ get created_at(): Date;
9
+ set created_at(v: Date);
10
+ get updated_at(): Date;
11
+ set updated_at(v: Date);
12
+ get userId(): number;
13
+ set userId(v: number);
14
+ get type(): string;
15
+ set type(v: string);
16
+ get subject(): string;
17
+ set subject(v: string);
18
+ get verifier(): string | undefined;
19
+ set verifier(v: string | undefined);
20
+ get serialNumber(): string;
21
+ set serialNumber(v: string);
22
+ get certifier(): string;
23
+ set certifier(v: string);
24
+ get revocationOutpoint(): string;
25
+ set revocationOutpoint(v: string);
26
+ get signature(): string;
27
+ set signature(v: string);
28
+ get isDeleted(): boolean;
29
+ set isDeleted(v: boolean);
30
+ get id(): number;
31
+ set id(v: number);
32
+ get entityName(): string;
33
+ get entityTable(): string;
34
+ equals(ei: TableCertificate, syncMap?: SyncMap): boolean;
35
+ static mergeFind(storage: EntityStorage, userId: number, ei: TableCertificate, syncMap: SyncMap, trx?: sdk.TrxToken): Promise<{
36
+ found: boolean;
37
+ eo: EntityCertificate;
38
+ eiId: number;
39
+ }>;
40
+ mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: sdk.TrxToken): Promise<void>;
41
+ mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableCertificate, syncMap: SyncMap, trx?: sdk.TrxToken): Promise<boolean>;
42
+ }
43
+ //# sourceMappingURL=EntityCertificate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntityCertificate.d.ts","sourceRoot":"","sources":["../../../../../../src/storage/schema/entities/EntityCertificate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,GAAG,EAAE,gBAAgB,EAA6B,MAAM,uBAAuB,CAAA;AACrG,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,CAAA;AAEtD,qBAAa,iBAAkB,SAAQ,UAAU,CAAC,gBAAgB,CAAC;gBACrD,GAAG,CAAC,EAAE,gBAAgB;IAoBzB,SAAS,IAAI,IAAI;IAI1B,IAAI,aAAa,IAGI,MAAM,CAD1B;IACD,IAAI,aAAa,CAAC,CAAC,EAAE,MAAM,EAE1B;IACD,IAAI,UAAU,IAGI,IAAI,CADrB;IACD,IAAI,UAAU,CAAC,CAAC,EAAE,IAAI,EAErB;IACD,IAAI,UAAU,IAGI,IAAI,CADrB;IACD,IAAI,UAAU,CAAC,CAAC,EAAE,IAAI,EAErB;IACD,IAAI,MAAM,IAGI,MAAM,CADnB;IACD,IAAI,MAAM,CAAC,CAAC,EAAE,MAAM,EAEnB;IACD,IAAI,IAAI,IAGI,MAAM,CADjB;IACD,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,EAEjB;IACD,IAAI,OAAO,IAGI,MAAM,CADpB;IACD,IAAI,OAAO,CAAC,CAAC,EAAE,MAAM,EAEpB;IACD,IAAI,QAAQ,IAGI,MAAM,GAAG,SAAS,CADjC;IACD,IAAI,QAAQ,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,EAEjC;IACD,IAAI,YAAY,IAGI,MAAM,CADzB;IACD,IAAI,YAAY,CAAC,CAAC,EAAE,MAAM,EAEzB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+1,162 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EntityCertificate = void 0;
4
+ const index_client_1 = require("../../../index.client");
5
+ const _1 = require(".");
6
+ class EntityCertificate extends _1.EntityBase {
7
+ constructor(api) {
8
+ const now = new Date();
9
+ super(api || {
10
+ certificateId: 0,
11
+ created_at: now,
12
+ updated_at: now,
13
+ userId: 0,
14
+ type: '',
15
+ subject: '',
16
+ verifier: undefined,
17
+ serialNumber: '',
18
+ certifier: '',
19
+ revocationOutpoint: '',
20
+ signature: '',
21
+ isDeleted: false
22
+ });
23
+ }
24
+ updateApi() {
25
+ /* nothing needed yet... */
26
+ }
27
+ get certificateId() {
28
+ return this.api.certificateId;
29
+ }
30
+ set certificateId(v) {
31
+ this.api.certificateId = v;
32
+ }
33
+ get created_at() {
34
+ return this.api.created_at;
35
+ }
36
+ set created_at(v) {
37
+ this.api.created_at = v;
38
+ }
39
+ get updated_at() {
40
+ return this.api.updated_at;
41
+ }
42
+ set updated_at(v) {
43
+ this.api.updated_at = v;
44
+ }
45
+ get userId() {
46
+ return this.api.userId;
47
+ }
48
+ set userId(v) {
49
+ this.api.userId = v;
50
+ }
51
+ get type() {
52
+ return this.api.type;
53
+ }
54
+ set type(v) {
55
+ this.api.type = v;
56
+ }
57
+ get subject() {
58
+ return this.api.subject;
59
+ }
60
+ set subject(v) {
61
+ this.api.subject = v;
62
+ }
63
+ get verifier() {
64
+ return this.api.verifier;
65
+ }
66
+ set verifier(v) {
67
+ this.api.verifier = v;
68
+ }
69
+ get serialNumber() {
70
+ return this.api.serialNumber;
71
+ }
72
+ set serialNumber(v) {
73
+ this.api.serialNumber = v;
74
+ }
75
+ get certifier() {
76
+ return this.api.certifier;
77
+ }
78
+ set certifier(v) {
79
+ this.api.certifier = v;
80
+ }
81
+ get revocationOutpoint() {
82
+ return this.api.revocationOutpoint;
83
+ }
84
+ set revocationOutpoint(v) {
85
+ this.api.revocationOutpoint = v;
86
+ }
87
+ get signature() {
88
+ return this.api.signature;
89
+ }
90
+ set signature(v) {
91
+ this.api.signature = v;
92
+ }
93
+ get isDeleted() {
94
+ return this.api.isDeleted;
95
+ }
96
+ set isDeleted(v) {
97
+ this.api.isDeleted = v;
98
+ }
99
+ //get fields() { return this.api.fields }
100
+ //set fields(v: Record<string, string> | undefined) { this.api.fields = v }
101
+ get id() {
102
+ return this.api.certificateId;
103
+ }
104
+ set id(v) {
105
+ this.api.certificateId = v;
106
+ }
107
+ get entityName() {
108
+ return 'certificate';
109
+ }
110
+ get entityTable() {
111
+ return 'certificates';
112
+ }
113
+ equals(ei, syncMap) {
114
+ if (this.type !== ei.type ||
115
+ this.subject !== ei.subject ||
116
+ this.serialNumber !== ei.serialNumber ||
117
+ this.revocationOutpoint !== ei.revocationOutpoint ||
118
+ this.signature !== ei.signature ||
119
+ this.verifier !== ei.verifier ||
120
+ this.isDeleted !== ei.isDeleted)
121
+ return false;
122
+ return true;
123
+ }
124
+ static async mergeFind(storage, userId, ei, syncMap, trx) {
125
+ const ef = (0, index_client_1.verifyOneOrNone)(await storage.findCertificates({
126
+ partial: {
127
+ serialNumber: ei.serialNumber,
128
+ certifier: ei.certifier,
129
+ userId
130
+ },
131
+ trx
132
+ }));
133
+ return {
134
+ found: !!ef,
135
+ eo: new EntityCertificate(ef || { ...ei }),
136
+ eiId: (0, index_client_1.verifyId)(ei.certificateId)
137
+ };
138
+ }
139
+ async mergeNew(storage, userId, syncMap, trx) {
140
+ this.userId = userId;
141
+ this.certificateId = 0;
142
+ this.certificateId = await storage.insertCertificate(this.toApi(), trx);
143
+ }
144
+ async mergeExisting(storage, since, ei, syncMap, trx) {
145
+ let wasMerged = false;
146
+ if (ei.updated_at > this.updated_at) {
147
+ this.type = ei.type;
148
+ this.subject = ei.subject;
149
+ this.serialNumber = ei.serialNumber;
150
+ this.revocationOutpoint = ei.revocationOutpoint;
151
+ this.signature = ei.signature;
152
+ this.verifier = ei.verifier;
153
+ this.isDeleted = ei.isDeleted;
154
+ this.updated_at = new Date(Math.max(ei.updated_at.getTime(), this.updated_at.getTime()));
155
+ await storage.updateCertificate(this.id, this.toApi(), trx);
156
+ wasMerged = true;
157
+ }
158
+ return wasMerged;
159
+ }
160
+ }
161
+ exports.EntityCertificate = EntityCertificate;
162
+ //# sourceMappingURL=EntityCertificate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntityCertificate.js","sourceRoot":"","sources":["../../../../../../src/storage/schema/entities/EntityCertificate.ts"],"names":[],"mappings":";;;AAEA,wDAAqG;AACrG,wBAAsD;AAEtD,MAAa,iBAAkB,SAAQ,aAA4B;IACjE,YAAY,GAAsB;QAChC,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QACtB,KAAK,CACH,GAAG,IAAI;YACL,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,GAAG;YACf,UAAU,EAAE,GAAG;YACf,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,EAAE;YACR,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,SAAS;YACnB,YAAY,EAAE,EAAE;YAChB,SAAS,EAAE,EAAE;YACb,kBAAkB,EAAE,EAAE;YACtB,SAAS,EAAE,EAAE;YACb,SAAS,EAAE,KAAK;SACjB,CACF,CAAA;IACH,CAAC;IAEQ,SAAS;QAChB,2BAA2B;IAC7B,CAAC;IAED,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,GAAG,CAAC,aAAa,CAAA;IAC/B,CAAC;IACD,IAAI,aAAa,CAAC,CAAS;QACzB,IAAI,CAAC,GAAG,CAAC,aAAa,GAAG,CAAC,CAAA;IAC5B,CAAC;IACD,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CAAA;IAC5B,CAAC;IACD,IAAI,UAAU,CAAC,CAAO;QACpB,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG,CAAC,CAAA;IACzB,CAAC;IACD,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CA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AAG,EAAE,CAAC,SAAS,CAAA;YAC7B,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAAA;YAC3B,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,CAAA;YAC7B,IAAI,CAAC,UAAU,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,CAAA;YACxF,MAAM,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,GAAG,CAAC,CAAA;YAC3D,SAAS,GAAG,IAAI,CAAA;QAClB,CAAC;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;CACF;AArLD,8CAqLC"}
@@ -0,0 +1,32 @@
1
+ import { sdk, TableCertificateField } from '../../../index.client';
2
+ import { EntityBase, EntityStorage, SyncMap } from '.';
3
+ export declare class EntityCertificateField extends EntityBase<TableCertificateField> {
4
+ constructor(api?: TableCertificateField);
5
+ updateApi(): void;
6
+ get userId(): number;
7
+ set userId(v: number);
8
+ get certificateId(): number;
9
+ set certificateId(v: number);
10
+ get created_at(): Date;
11
+ set created_at(v: Date);
12
+ get updated_at(): Date;
13
+ set updated_at(v: Date);
14
+ get fieldName(): string;
15
+ set fieldName(v: string);
16
+ get fieldValue(): string;
17
+ set fieldValue(v: string);
18
+ get masterKey(): string;
19
+ set masterKey(v: string);
20
+ get id(): number;
21
+ get entityName(): string;
22
+ get entityTable(): string;
23
+ equals(ei: TableCertificateField, syncMap?: SyncMap | undefined): boolean;
24
+ static mergeFind(storage: EntityStorage, userId: number, ei: TableCertificateField, syncMap: SyncMap, trx?: sdk.TrxToken): Promise<{
25
+ found: boolean;
26
+ eo: EntityCertificateField;
27
+ eiId: number;
28
+ }>;
29
+ mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: sdk.TrxToken): Promise<void>;
30
+ mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableCertificateField, syncMap: SyncMap, trx?: sdk.TrxToken): Promise<boolean>;
31
+ }
32
+ //# sourceMappingURL=EntityCertificateField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntityCertificateField.d.ts","sourceRoot":"","sources":["../../../../../../src/storage/schema/entities/EntityCertificateField.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,GAAG,EAAE,qBAAqB,EAA6B,MAAM,uBAAuB,CAAA;AAC1G,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,CAAA;AAEtD,qBAAa,sBAAuB,SAAQ,UAAU,CAAC,qBAAqB,CAAC;gBAC/D,GAAG,CAAC,EAAE,qBAAqB;IAe9B,SAAS,IAAI,IAAI;IAI1B,IAAI,MAAM,IAGI,MAAM,CADnB;IACD,IAAI,MAAM,CAAC,CAAC,EAAE,MAAM,EAEnB;IACD,IAAI,aAAa,IAGI,MAAM,CAD1B;IACD,IAAI,aAAa,CAAC,CAAC,EAAE,MAAM,EAE1B;IACD,IAAI,UAAU,IAGI,IAAI,CADrB;IACD,IAAI,UAAU,CAAC,CAAC,EAAE,IAAI,EAErB;IACD,IAAI,UAAU,IAGI,IAAI,CADrB;IACD,IAAI,UAAU,CAAC,CAAC,EAAE,IAAI,EAErB;IACD,IAAI,SAAS,IAGI,MAAM,CADtB;IACD,IAAI,SAAS,CAAC,CAAC,EAAE,MAAM,EAEtB;IACD,IAAI,UAAU,IAGI,MAAM,CADvB;IACD,IAAI,UAAU,CAAC,CAAC,EAAE,MAAM,EAEvB;IACD,IAAI,SAAS,IAGI,MAAM,CADtB;IACD,IAAI,SAAS,CAAC,CAAC,EAAE,MAAM,EAEtB;IAED,IAAa,EAAE,IAAI,MAAM,CAExB;IACD,IAAa,UAAU,IAAI,MAAM,CAEhC;IACD,IAAa,WAAW,IAAI,MAAM,CAEjC;IAEQ,MAAM,CAAC,EAAE,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO;WAYrE,SAAS,CACpB,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,qBAAqB,EACzB,OAAO,EAAE,OAAO,EAChB,GAAG,CAAC,EAAE,GAAG,CAAC,QAAQ,GACjB,OAAO,CAAC;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,EAAE,EAAE,sBAAsB,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAezD,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAMrG,aAAa,CAC1B,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,IAAI,GAAG,SAAS,EACvB,EAAE,EAAE,qBAAqB,EACzB,OAAO,EAAE,OAAO,EAChB,GAAG,CAAC,EAAE,GAAG,CAAC,QAAQ,GACjB,OAAO,CAAC,OAAO,CAAC;CAWpB"}
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EntityCertificateField = void 0;
4
+ const index_client_1 = require("../../../index.client");
5
+ const _1 = require(".");
6
+ class EntityCertificateField extends _1.EntityBase {
7
+ constructor(api) {
8
+ const now = new Date();
9
+ super(api || {
10
+ created_at: now,
11
+ updated_at: now,
12
+ userId: 0,
13
+ certificateId: 0,
14
+ fieldName: '',
15
+ fieldValue: '',
16
+ masterKey: ''
17
+ });
18
+ }
19
+ updateApi() {
20
+ /* nothing needed yet... */
21
+ }
22
+ get userId() {
23
+ return this.api.userId;
24
+ }
25
+ set userId(v) {
26
+ this.api.userId = v;
27
+ }
28
+ get certificateId() {
29
+ return this.api.certificateId;
30
+ }
31
+ set certificateId(v) {
32
+ this.api.certificateId = v;
33
+ }
34
+ get created_at() {
35
+ return this.api.created_at;
36
+ }
37
+ set created_at(v) {
38
+ this.api.created_at = v;
39
+ }
40
+ get updated_at() {
41
+ return this.api.updated_at;
42
+ }
43
+ set updated_at(v) {
44
+ this.api.updated_at = v;
45
+ }
46
+ get fieldName() {
47
+ return this.api.fieldName;
48
+ }
49
+ set fieldName(v) {
50
+ this.api.fieldName = v;
51
+ }
52
+ get fieldValue() {
53
+ return this.api.fieldValue;
54
+ }
55
+ set fieldValue(v) {
56
+ this.api.fieldValue = v;
57
+ }
58
+ get masterKey() {
59
+ return this.api.masterKey;
60
+ }
61
+ set masterKey(v) {
62
+ this.api.masterKey = v;
63
+ }
64
+ get id() {
65
+ throw new index_client_1.sdk.WERR_INVALID_OPERATION('entity has no "id" value');
66
+ }
67
+ get entityName() {
68
+ return 'certificateField';
69
+ }
70
+ get entityTable() {
71
+ return 'certificate_fields';
72
+ }
73
+ equals(ei, syncMap) {
74
+ if (this.certificateId !== (syncMap ? syncMap.certificate.idMap[ei.certificateId] : ei.certificateId) ||
75
+ this.fieldName !== ei.fieldName ||
76
+ this.fieldValue !== ei.fieldValue ||
77
+ this.masterKey !== ei.masterKey)
78
+ return false;
79
+ return true;
80
+ }
81
+ static async mergeFind(storage, userId, ei, syncMap, trx) {
82
+ const certificateId = syncMap.certificate.idMap[ei.certificateId];
83
+ const ef = (0, index_client_1.verifyOneOrNone)(await storage.findCertificateFields({
84
+ partial: { certificateId, userId, fieldName: ei.fieldName },
85
+ trx
86
+ }));
87
+ return {
88
+ found: !!ef,
89
+ eo: new EntityCertificateField(ef || { ...ei }),
90
+ eiId: -1
91
+ };
92
+ }
93
+ async mergeNew(storage, userId, syncMap, trx) {
94
+ this.certificateId = syncMap.certificate.idMap[this.certificateId];
95
+ this.userId = userId;
96
+ await storage.insertCertificateField(this.toApi(), trx);
97
+ }
98
+ async mergeExisting(storage, since, ei, syncMap, trx) {
99
+ let wasMerged = false;
100
+ if (ei.updated_at > this.updated_at) {
101
+ this.fieldValue = ei.fieldValue;
102
+ this.masterKey = ei.masterKey;
103
+ this.updated_at = new Date(Math.max(ei.updated_at.getTime(), this.updated_at.getTime()));
104
+ await storage.updateCertificateField(this.certificateId, this.fieldName, this.toApi(), trx);
105
+ wasMerged = true;
106
+ }
107
+ return wasMerged;
108
+ }
109
+ }
110
+ exports.EntityCertificateField = EntityCertificateField;
111
+ //# sourceMappingURL=EntityCertificateField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntityCertificateField.js","sourceRoot":"","sources":["../../../../../../src/storage/schema/entities/EntityCertificateField.ts"],"names":[],"mappings":";;;AACA,wDAA0G;AAC1G,wBAAsD;AAEtD,MAAa,sBAAuB,SAAQ,aAAiC;IAC3E,YAAY,GAA2B;QACrC,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QACtB,KAAK,CACH,GAAG,IAAI;YACL,UAAU,EAAE,GAAG;YACf,UAAU,EAAE,GAAG;YACf,MAAM,EAAE,CAAC;YACT,aAAa,EAAE,CAAC;YAChB,SAAS,EAAE,EAAE;YACb,UAAU,EAAE,EAAE;YACd,SAAS,EAAE,EAAE;SACd,CACF,CAAA;IACH,CAAC;IAEQ,SAAS;QAChB,2BAA2B;IAC7B,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAA;IACxB,CAAC;IACD,IAAI,MAAM,CAAC,CAAS;QAClB,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAA;IACrB,CAAC;IACD,IAAI,aAAa;QACf,OAAO,IAAI,CAAC,GAAG,CAAC,aAAa,CAAA;IAC/B,CAAC;IACD,IAAI,aAAa,CAAC,CAAS;QACzB,IAAI,CAAC,GAAG,CAAC,aAAa,GAAG,CAAC,CAAA;IAC5B,CAAC;IACD,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CAAA;IAC5B,CAAC;IACD,IAAI,UAAU,CAAC,CAAO;QACpB,IAAI,CAAC,GAAG,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AC,UAAU,CAAA;YAC/B,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,CAAA;YAC7B,IAAI,CAAC,UAAU,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,CAAA;YACxF,MAAM,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,GAAG,CAAC,CAAA;YAC3F,SAAS,GAAG,IAAI,CAAA;QAClB,CAAC;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;CACF;AAjID,wDAiIC"}
@@ -0,0 +1,37 @@
1
+ import { sdk, TableCommission } from '../../../index.client';
2
+ import { EntityBase, EntityStorage, SyncMap } from '.';
3
+ export declare class EntityCommission extends EntityBase<TableCommission> {
4
+ constructor(api?: TableCommission);
5
+ updateApi(): void;
6
+ get commissionId(): number;
7
+ set commissionId(v: number);
8
+ get created_at(): Date;
9
+ set created_at(v: Date);
10
+ get updated_at(): Date;
11
+ set updated_at(v: Date);
12
+ get transactionId(): number;
13
+ set transactionId(v: number);
14
+ get userId(): number;
15
+ set userId(v: number);
16
+ get isRedeemed(): boolean;
17
+ set isRedeemed(v: boolean);
18
+ get keyOffset(): string;
19
+ set keyOffset(v: string);
20
+ get lockingScript(): number[];
21
+ set lockingScript(v: number[]);
22
+ get satoshis(): number;
23
+ set satoshis(v: number);
24
+ get id(): number;
25
+ set id(v: number);
26
+ get entityName(): string;
27
+ get entityTable(): string;
28
+ equals(ei: TableCommission, syncMap?: SyncMap | undefined): boolean;
29
+ static mergeFind(storage: EntityStorage, userId: number, ei: TableCommission, syncMap: SyncMap, trx?: sdk.TrxToken): Promise<{
30
+ found: boolean;
31
+ eo: EntityCommission;
32
+ eiId: number;
33
+ }>;
34
+ mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: sdk.TrxToken): Promise<void>;
35
+ mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableCommission, syncMap: SyncMap, trx?: sdk.TrxToken): Promise<boolean>;
36
+ }
37
+ //# sourceMappingURL=EntityCommission.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntityCommission.d.ts","sourceRoot":"","sources":["../../../../../../src/storage/schema/entities/EntityCommission.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,GAAG,EAAE,eAAe,EAA6B,MAAM,uBAAuB,CAAA;AACpG,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,CAAA;AAEtD,qBAAa,gBAAiB,SAAQ,UAAU,CAAC,eAAe,CAAC;gBACnD,GAAG,CAAC,EAAE,eAAe;IAiBxB,SAAS,IAAI,IAAI;IAI1B,IAAI,YAAY,IAGI,MAAM,CADzB;IACD,IAAI,YAAY,CAAC,CAAC,EAAE,MAAM,EAEzB;IACD,IAAI,UAAU,IAGI,IAAI,CADrB;IACD,IAAI,UAAU,CAAC,CAAC,EAAE,IAAI,EAErB;IACD,IAAI,UAAU,IAGI,IAAI,CADrB;IACD,IAAI,UAAU,CAAC,CAAC,EAAE,IAAI,EAErB;IACD,IAAI,aAAa,IAGI,MAAM,CAD1B;IACD,IAAI,aAAa,CAAC,CAAC,EAAE,MAAM,EAE1B;IACD,IAAI,MAAM,IAGI,MAAM,CADnB;IACD,IAAI,MAAM,CAAC,CAAC,EAAE,MAAM,EAEnB;IACD,IAAI,UAAU,IAGI,OAAO,CADxB;IACD,IAAI,UAAU,CAAC,CAAC,EAAE,OAAO,EAExB;IACD,IAAI,SAAS,IAGI,MAAM,CADtB;IACD,IAAI,SAAS,CAAC,CAAC,EAAE,MAAM,EAEtB;IACD,IAAI,aAAa,IAGI,MAAM,EAAE,CAD5B;IACD,IAAI,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,EAE5B;IACD,IAAI,QAAQ,IAGI,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