@decaf-ts/for-fabric 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (623) hide show
  1. package/lib/cjs/bin/cli.cjs +3 -2
  2. package/lib/cjs/bin/cli.cjs.map +1 -0
  3. package/lib/cjs/cli-module.cjs +26 -25
  4. package/lib/cjs/cli-module.cjs.map +1 -0
  5. package/lib/cjs/cli-utils.cjs +5 -5
  6. package/lib/cjs/cli-utils.cjs.map +1 -0
  7. package/lib/cjs/client/FabricClientAdapter.cjs +46 -40
  8. package/lib/cjs/client/FabricClientAdapter.cjs.map +1 -0
  9. package/lib/cjs/client/FabricClientDispatch.cjs +8 -7
  10. package/lib/cjs/client/FabricClientDispatch.cjs.map +1 -0
  11. package/lib/cjs/client/FabricClientPaginator.cjs +1 -0
  12. package/lib/cjs/client/FabricClientPaginator.cjs.map +1 -0
  13. package/lib/cjs/client/FabricClientRepository.cjs +4 -3
  14. package/lib/cjs/client/FabricClientRepository.cjs.map +1 -0
  15. package/lib/cjs/client/FabricClientStatement.cjs +1 -0
  16. package/lib/cjs/client/FabricClientStatement.cjs.map +1 -0
  17. package/lib/cjs/client/collections/generation.cjs +3 -2
  18. package/lib/cjs/client/collections/generation.cjs.map +1 -0
  19. package/lib/cjs/client/collections/index.cjs +1 -0
  20. package/lib/cjs/client/collections/index.cjs.map +1 -0
  21. package/lib/cjs/client/constants.cjs +1 -0
  22. package/lib/cjs/client/constants.cjs.map +1 -0
  23. package/lib/cjs/client/crypto.cjs +12 -13
  24. package/lib/cjs/client/crypto.cjs.map +1 -0
  25. package/lib/cjs/client/erc20/FabricERC20ClientRepository.cjs +7 -6
  26. package/lib/cjs/client/erc20/FabricERC20ClientRepository.cjs.map +1 -0
  27. package/lib/cjs/client/erc20/index.cjs +1 -0
  28. package/lib/cjs/client/erc20/index.cjs.map +1 -0
  29. package/lib/cjs/client/fabric-fs.cjs +1 -0
  30. package/lib/cjs/client/fabric-fs.cjs.map +1 -0
  31. package/lib/cjs/client/fabric-hsm.cjs +3 -2
  32. package/lib/cjs/client/fabric-hsm.cjs.map +1 -0
  33. package/lib/cjs/client/ids/id-extraction.cjs +1 -0
  34. package/lib/cjs/client/ids/id-extraction.cjs.map +1 -0
  35. package/lib/cjs/client/ids/index.cjs +1 -0
  36. package/lib/cjs/client/ids/index.cjs.map +1 -0
  37. package/lib/cjs/client/index.cjs +10 -9
  38. package/lib/cjs/client/index.cjs.map +1 -0
  39. package/lib/cjs/client/indexes/generation.cjs +1 -0
  40. package/lib/cjs/client/indexes/generation.cjs.map +1 -0
  41. package/lib/cjs/client/indexes/index.cjs +1 -0
  42. package/lib/cjs/client/indexes/index.cjs.map +1 -0
  43. package/lib/cjs/client/logging.cjs +1 -0
  44. package/lib/cjs/client/logging.cjs.map +1 -0
  45. package/lib/cjs/client/services/FabricEnrollmentService.cjs +17 -32
  46. package/lib/cjs/client/services/FabricEnrollmentService.cjs.map +1 -0
  47. package/lib/cjs/client/services/FabricIdentityService.cjs +15 -14
  48. package/lib/cjs/client/services/FabricIdentityService.cjs.map +1 -0
  49. package/lib/cjs/client/services/RegistrationRequestBuilder.cjs +11 -5
  50. package/lib/cjs/client/services/RegistrationRequestBuilder.cjs.map +1 -0
  51. package/lib/cjs/client/services/constants.cjs +2 -9
  52. package/lib/cjs/client/services/constants.cjs.map +1 -0
  53. package/lib/cjs/client/services/index.cjs +1 -0
  54. package/lib/cjs/client/services/index.cjs.map +1 -0
  55. package/lib/cjs/client/types.cjs +1 -0
  56. package/lib/cjs/client/types.cjs.map +1 -0
  57. package/lib/cjs/client/utils.cjs +1 -0
  58. package/lib/cjs/client/utils.cjs.map +1 -0
  59. package/lib/cjs/contract/Address.cjs +14 -8
  60. package/lib/cjs/contract/Address.cjs.map +1 -0
  61. package/lib/cjs/contract/AddressContract.cjs +15 -9
  62. package/lib/cjs/contract/AddressContract.cjs.map +1 -0
  63. package/lib/cjs/contract/AuditContract.cjs +15 -9
  64. package/lib/cjs/contract/AuditContract.cjs.map +1 -0
  65. package/lib/cjs/contract/BatchContract.cjs +15 -9
  66. package/lib/cjs/contract/BatchContract.cjs.map +1 -0
  67. package/lib/cjs/contract/MarketContract.cjs +15 -9
  68. package/lib/cjs/contract/MarketContract.cjs.map +1 -0
  69. package/lib/cjs/contract/OtherAuditContract.cjs +15 -9
  70. package/lib/cjs/contract/OtherAuditContract.cjs.map +1 -0
  71. package/lib/cjs/contract/OtherBatchContract.cjs +15 -9
  72. package/lib/cjs/contract/OtherBatchContract.cjs.map +1 -0
  73. package/lib/cjs/contract/OtherMarketContract.cjs +15 -9
  74. package/lib/cjs/contract/OtherMarketContract.cjs.map +1 -0
  75. package/lib/cjs/contract/OtherProductContract.cjs +15 -9
  76. package/lib/cjs/contract/OtherProductContract.cjs.map +1 -0
  77. package/lib/cjs/contract/OtherProductImageContract.cjs +15 -9
  78. package/lib/cjs/contract/OtherProductImageContract.cjs.map +1 -0
  79. package/lib/cjs/contract/OtherProductSharedContract.cjs +15 -9
  80. package/lib/cjs/contract/OtherProductSharedContract.cjs.map +1 -0
  81. package/lib/cjs/contract/OtherProductStrengthContract.cjs +15 -9
  82. package/lib/cjs/contract/OtherProductStrengthContract.cjs.map +1 -0
  83. package/lib/cjs/contract/Product.cjs +15 -9
  84. package/lib/cjs/contract/Product.cjs.map +1 -0
  85. package/lib/cjs/contract/ProductContract.cjs +15 -9
  86. package/lib/cjs/contract/ProductContract.cjs.map +1 -0
  87. package/lib/cjs/contract/ProductStrengthContract.cjs +15 -9
  88. package/lib/cjs/contract/ProductStrengthContract.cjs.map +1 -0
  89. package/lib/cjs/contract/SegregatedPrivateDocumentContract.cjs +15 -9
  90. package/lib/cjs/contract/SegregatedPrivateDocumentContract.cjs.map +1 -0
  91. package/lib/cjs/contract/SegregatedSharedDocumentContract.cjs +15 -9
  92. package/lib/cjs/contract/SegregatedSharedDocumentContract.cjs.map +1 -0
  93. package/lib/cjs/contract/User.cjs +13 -7
  94. package/lib/cjs/contract/User.cjs.map +1 -0
  95. package/lib/cjs/contract/UserContract.cjs +15 -9
  96. package/lib/cjs/contract/UserContract.cjs.map +1 -0
  97. package/lib/cjs/contract/index.cjs +31 -30
  98. package/lib/cjs/contract/index.cjs.map +1 -0
  99. package/lib/cjs/contract/logging-context.cjs +1 -0
  100. package/lib/cjs/contract/logging-context.cjs.map +1 -0
  101. package/lib/cjs/contract/models/Audit.cjs +17 -11
  102. package/lib/cjs/contract/models/Audit.cjs.map +1 -0
  103. package/lib/cjs/contract/models/BaseIdentifiedModel.cjs +15 -9
  104. package/lib/cjs/contract/models/BaseIdentifiedModel.cjs.map +1 -0
  105. package/lib/cjs/contract/models/BaseModel.cjs +13 -7
  106. package/lib/cjs/contract/models/BaseModel.cjs.map +1 -0
  107. package/lib/cjs/contract/models/Batch.cjs +24 -18
  108. package/lib/cjs/contract/models/Batch.cjs.map +1 -0
  109. package/lib/cjs/contract/models/GtinOwner.cjs +18 -12
  110. package/lib/cjs/contract/models/GtinOwner.cjs.map +1 -0
  111. package/lib/cjs/contract/models/History.cjs +15 -9
  112. package/lib/cjs/contract/models/History.cjs.map +1 -0
  113. package/lib/cjs/contract/models/Leaflet.cjs +25 -19
  114. package/lib/cjs/contract/models/Leaflet.cjs.map +1 -0
  115. package/lib/cjs/contract/models/LeafletFile.cjs +19 -13
  116. package/lib/cjs/contract/models/LeafletFile.cjs.map +1 -0
  117. package/lib/cjs/contract/models/Market.cjs +19 -13
  118. package/lib/cjs/contract/models/Market.cjs.map +1 -0
  119. package/lib/cjs/contract/models/OtherAudit.cjs +20 -14
  120. package/lib/cjs/contract/models/OtherAudit.cjs.map +1 -0
  121. package/lib/cjs/contract/models/OtherBatchShared.cjs +27 -21
  122. package/lib/cjs/contract/models/OtherBatchShared.cjs.map +1 -0
  123. package/lib/cjs/contract/models/OtherLeaflet.cjs +27 -21
  124. package/lib/cjs/contract/models/OtherLeaflet.cjs.map +1 -0
  125. package/lib/cjs/contract/models/OtherLeafletFile.cjs +18 -12
  126. package/lib/cjs/contract/models/OtherLeafletFile.cjs.map +1 -0
  127. package/lib/cjs/contract/models/OtherMarket.cjs +21 -15
  128. package/lib/cjs/contract/models/OtherMarket.cjs.map +1 -0
  129. package/lib/cjs/contract/models/OtherProduct.cjs +24 -18
  130. package/lib/cjs/contract/models/OtherProduct.cjs.map +1 -0
  131. package/lib/cjs/contract/models/OtherProductImage.cjs +22 -16
  132. package/lib/cjs/contract/models/OtherProductImage.cjs.map +1 -0
  133. package/lib/cjs/contract/models/OtherProductShared.cjs +32 -26
  134. package/lib/cjs/contract/models/OtherProductShared.cjs.map +1 -0
  135. package/lib/cjs/contract/models/OtherProductStrength.cjs +21 -15
  136. package/lib/cjs/contract/models/OtherProductStrength.cjs.map +1 -0
  137. package/lib/cjs/contract/models/Product.cjs +24 -18
  138. package/lib/cjs/contract/models/Product.cjs.map +1 -0
  139. package/lib/cjs/contract/models/ProductStrength.cjs +19 -13
  140. package/lib/cjs/contract/models/ProductStrength.cjs.map +1 -0
  141. package/lib/cjs/contract/models/SegregatedDocument.cjs +23 -17
  142. package/lib/cjs/contract/models/SegregatedDocument.cjs.map +1 -0
  143. package/lib/cjs/contract/models/constants.cjs +3 -4
  144. package/lib/cjs/contract/models/constants.cjs.map +1 -0
  145. package/lib/cjs/contract/models/decorators-private.cjs +11 -10
  146. package/lib/cjs/contract/models/decorators-private.cjs.map +1 -0
  147. package/lib/cjs/contract/models/decorators.cjs +13 -12
  148. package/lib/cjs/contract/models/decorators.cjs.map +1 -0
  149. package/lib/cjs/contract/models/gtin.cjs +13 -7
  150. package/lib/cjs/contract/models/gtin.cjs.map +1 -0
  151. package/lib/cjs/contract/models/history-dec.cjs +11 -10
  152. package/lib/cjs/contract/models/history-dec.cjs.map +1 -0
  153. package/lib/cjs/contracts/ContractAdapter.cjs +27 -26
  154. package/lib/cjs/contracts/ContractAdapter.cjs.map +1 -0
  155. package/lib/cjs/contracts/ContractContext.cjs +1 -0
  156. package/lib/cjs/contracts/ContractContext.cjs.map +1 -0
  157. package/lib/cjs/contracts/FabricContractDispatch.cjs +1 -0
  158. package/lib/cjs/contracts/FabricContractDispatch.cjs.map +1 -0
  159. package/lib/cjs/contracts/FabricContractPaginator.cjs +5 -4
  160. package/lib/cjs/contracts/FabricContractPaginator.cjs.map +1 -0
  161. package/lib/cjs/contracts/FabricContractRepository.cjs +8 -7
  162. package/lib/cjs/contracts/FabricContractRepository.cjs.map +1 -0
  163. package/lib/cjs/contracts/FabricContractRepositoryObservableHandler.cjs +3 -2
  164. package/lib/cjs/contracts/FabricContractRepositoryObservableHandler.cjs.map +1 -0
  165. package/lib/cjs/contracts/FabricContractSequence.cjs +1 -0
  166. package/lib/cjs/contracts/FabricContractSequence.cjs.map +1 -0
  167. package/lib/cjs/contracts/FabricContractStatement.cjs +5 -4
  168. package/lib/cjs/contracts/FabricContractStatement.cjs.map +1 -0
  169. package/lib/cjs/contracts/MigrationContract.cjs +20 -14
  170. package/lib/cjs/contracts/MigrationContract.cjs.map +1 -0
  171. package/lib/cjs/contracts/PrivateSequence.cjs +11 -5
  172. package/lib/cjs/contracts/PrivateSequence.cjs.map +1 -0
  173. package/lib/cjs/contracts/auth/decorators.cjs +3 -2
  174. package/lib/cjs/contracts/auth/decorators.cjs.map +1 -0
  175. package/lib/cjs/contracts/auth/index.cjs +1 -0
  176. package/lib/cjs/contracts/auth/index.cjs.map +1 -0
  177. package/lib/cjs/contracts/crud/crud-contract.cjs +12 -11
  178. package/lib/cjs/contracts/crud/crud-contract.cjs.map +1 -0
  179. package/lib/cjs/contracts/crud/index.cjs +1 -0
  180. package/lib/cjs/contracts/crud/index.cjs.map +1 -0
  181. package/lib/cjs/contracts/crud/serialized-crud-contract.cjs +13 -7
  182. package/lib/cjs/contracts/crud/serialized-crud-contract.cjs.map +1 -0
  183. package/lib/cjs/contracts/erc20/erc20contract.cjs +53 -47
  184. package/lib/cjs/contracts/erc20/erc20contract.cjs.map +1 -0
  185. package/lib/cjs/contracts/erc20/index.cjs +3 -2
  186. package/lib/cjs/contracts/erc20/index.cjs.map +1 -0
  187. package/lib/cjs/contracts/erc20/models.cjs +11 -5
  188. package/lib/cjs/contracts/erc20/models.cjs.map +1 -0
  189. package/lib/cjs/contracts/index.cjs +1 -0
  190. package/lib/cjs/contracts/index.cjs.map +1 -0
  191. package/lib/cjs/contracts/logging.cjs +4 -3
  192. package/lib/cjs/contracts/logging.cjs.map +1 -0
  193. package/lib/cjs/contracts/overrides.cjs +3 -2
  194. package/lib/cjs/contracts/overrides.cjs.map +1 -0
  195. package/lib/cjs/contracts/types.cjs +1 -0
  196. package/lib/cjs/contracts/types.cjs.map +1 -0
  197. package/lib/cjs/contracts/uuid.cjs +1 -0
  198. package/lib/cjs/contracts/uuid.cjs.map +1 -0
  199. package/lib/cjs/index.cjs +6 -5
  200. package/lib/cjs/index.cjs.map +1 -0
  201. package/lib/cjs/shared/ClientSerializer.cjs +1 -0
  202. package/lib/cjs/shared/ClientSerializer.cjs.map +1 -0
  203. package/lib/cjs/shared/DeterministicSerializer.cjs +1 -0
  204. package/lib/cjs/shared/DeterministicSerializer.cjs.map +1 -0
  205. package/lib/cjs/shared/SimpleDeterministicSerializer.cjs +3 -2
  206. package/lib/cjs/shared/SimpleDeterministicSerializer.cjs.map +1 -0
  207. package/lib/cjs/shared/constants.cjs +3 -18
  208. package/lib/cjs/shared/constants.cjs.map +1 -0
  209. package/lib/cjs/shared/decorators.cjs +14 -13
  210. package/lib/cjs/shared/decorators.cjs.map +1 -0
  211. package/lib/cjs/shared/erc20/erc20-constants.cjs +2 -9
  212. package/lib/cjs/shared/erc20/erc20-constants.cjs.map +1 -0
  213. package/lib/cjs/shared/erc20/index.cjs +1 -0
  214. package/lib/cjs/shared/erc20/index.cjs.map +1 -0
  215. package/lib/cjs/shared/errors.cjs +1 -0
  216. package/lib/cjs/shared/errors.cjs.map +1 -0
  217. package/lib/cjs/shared/events.cjs +1 -0
  218. package/lib/cjs/shared/events.cjs.map +1 -0
  219. package/lib/cjs/shared/fabric-types.cjs +1 -0
  220. package/lib/cjs/shared/fabric-types.cjs.map +1 -0
  221. package/lib/cjs/shared/index.cjs +1 -0
  222. package/lib/cjs/shared/index.cjs.map +1 -0
  223. package/lib/cjs/shared/interfaces/Checkable.cjs +1 -0
  224. package/lib/cjs/shared/interfaces/Checkable.cjs.map +1 -0
  225. package/lib/cjs/shared/interfaces/index.cjs +1 -0
  226. package/lib/cjs/shared/interfaces/index.cjs.map +1 -0
  227. package/lib/cjs/shared/math.cjs +4 -3
  228. package/lib/cjs/shared/math.cjs.map +1 -0
  229. package/lib/cjs/shared/model/FabricBaseModel.cjs +13 -7
  230. package/lib/cjs/shared/model/FabricBaseModel.cjs.map +1 -0
  231. package/lib/cjs/shared/model/FabricIdentifiedBaseModel.cjs +15 -9
  232. package/lib/cjs/shared/model/FabricIdentifiedBaseModel.cjs.map +1 -0
  233. package/lib/cjs/shared/model/Identity.cjs +16 -10
  234. package/lib/cjs/shared/model/Identity.cjs.map +1 -0
  235. package/lib/cjs/shared/model/IdentityCredentials.cjs +11 -5
  236. package/lib/cjs/shared/model/IdentityCredentials.cjs.map +1 -0
  237. package/lib/cjs/shared/model/index.cjs +1 -0
  238. package/lib/cjs/shared/model/index.cjs.map +1 -0
  239. package/lib/cjs/shared/overrides/Model.cjs +1 -0
  240. package/lib/cjs/shared/overrides/Model.cjs.map +1 -0
  241. package/lib/cjs/shared/overrides/index.cjs +1 -0
  242. package/lib/cjs/shared/overrides/index.cjs.map +1 -0
  243. package/lib/cjs/shared/overrides/overrides.cjs +11 -10
  244. package/lib/cjs/shared/overrides/overrides.cjs.map +1 -0
  245. package/lib/cjs/shared/types.cjs +1 -0
  246. package/lib/cjs/shared/types.cjs.map +1 -0
  247. package/lib/cjs/version.cjs +2 -1
  248. package/lib/cjs/version.cjs.map +1 -0
  249. package/lib/esm/version.js +1 -1
  250. package/lib/types/bin/cli.d.cts +1 -0
  251. package/lib/types/bin/cli.d.mts +1 -0
  252. package/lib/types/cli-module.d.cts +3 -0
  253. package/lib/types/cli-module.d.mts +3 -0
  254. package/lib/types/cli-utils.d.cts +21 -0
  255. package/lib/types/cli-utils.d.mts +21 -0
  256. package/lib/types/client/FabricClientAdapter.d.cts +404 -0
  257. package/lib/types/client/FabricClientAdapter.d.mts +404 -0
  258. package/lib/types/client/FabricClientDispatch.d.cts +133 -0
  259. package/lib/types/client/FabricClientDispatch.d.mts +133 -0
  260. package/lib/types/client/FabricClientPaginator.d.cts +12 -0
  261. package/lib/types/client/FabricClientPaginator.d.mts +12 -0
  262. package/lib/types/client/FabricClientRepository.d.cts +71 -0
  263. package/lib/types/client/FabricClientRepository.d.mts +71 -0
  264. package/lib/types/client/FabricClientStatement.d.cts +64 -0
  265. package/lib/types/client/FabricClientStatement.d.mts +64 -0
  266. package/lib/types/client/collections/generation.d.cts +46 -0
  267. package/lib/types/client/collections/generation.d.mts +46 -0
  268. package/lib/types/client/collections/index.d.cts +1 -0
  269. package/lib/types/client/collections/index.d.mts +1 -0
  270. package/lib/types/client/constants.d.cts +2 -0
  271. package/lib/types/client/constants.d.mts +2 -0
  272. package/lib/types/client/crypto.d.cts +107 -0
  273. package/lib/types/client/crypto.d.mts +107 -0
  274. package/lib/types/client/erc20/FabricERC20ClientRepository.d.cts +254 -0
  275. package/lib/types/client/erc20/FabricERC20ClientRepository.d.mts +254 -0
  276. package/lib/types/client/erc20/index.d.cts +1 -0
  277. package/lib/types/client/erc20/index.d.mts +1 -0
  278. package/lib/types/client/fabric-fs.d.cts +92 -0
  279. package/lib/types/client/fabric-fs.d.mts +92 -0
  280. package/lib/types/client/fabric-hsm.d.cts +24 -0
  281. package/lib/types/client/fabric-hsm.d.mts +24 -0
  282. package/lib/types/client/ids/id-extraction.d.cts +4 -0
  283. package/lib/types/client/ids/id-extraction.d.mts +4 -0
  284. package/lib/types/client/ids/index.d.cts +1 -0
  285. package/lib/types/client/ids/index.d.mts +1 -0
  286. package/lib/types/client/index.d.cts +23 -0
  287. package/lib/types/client/index.d.mts +23 -0
  288. package/lib/types/client/indexes/generation.d.cts +10 -0
  289. package/lib/types/client/indexes/generation.d.mts +10 -0
  290. package/lib/types/client/indexes/index.d.cts +1 -0
  291. package/lib/types/client/indexes/index.d.mts +1 -0
  292. package/lib/types/client/logging.d.cts +60 -0
  293. package/lib/types/client/logging.d.mts +60 -0
  294. package/lib/types/client/services/FabricEnrollmentService.d.cts +176 -0
  295. package/lib/types/client/services/FabricEnrollmentService.d.mts +176 -0
  296. package/lib/types/client/services/FabricIdentityService.d.cts +98 -0
  297. package/lib/types/client/services/FabricIdentityService.d.mts +98 -0
  298. package/lib/types/client/services/RegistrationRequestBuilder.d.cts +19 -0
  299. package/lib/types/client/services/RegistrationRequestBuilder.d.mts +19 -0
  300. package/lib/types/client/services/constants.d.cts +15 -0
  301. package/lib/types/client/services/constants.d.mts +15 -0
  302. package/lib/types/client/services/index.d.cts +4 -0
  303. package/lib/types/client/services/index.d.mts +4 -0
  304. package/lib/types/client/types.d.cts +20 -0
  305. package/lib/types/client/types.d.mts +20 -0
  306. package/lib/types/client/utils.d.cts +71 -0
  307. package/lib/types/client/utils.d.mts +71 -0
  308. package/lib/types/contract/Address.d.cts +13 -0
  309. package/lib/types/contract/Address.d.mts +13 -0
  310. package/lib/types/contract/AddressContract.d.cts +5 -0
  311. package/lib/types/contract/AddressContract.d.mts +5 -0
  312. package/lib/types/contract/AuditContract.d.cts +5 -0
  313. package/lib/types/contract/AuditContract.d.mts +5 -0
  314. package/lib/types/contract/BatchContract.d.cts +5 -0
  315. package/lib/types/contract/BatchContract.d.mts +5 -0
  316. package/lib/types/contract/MarketContract.d.cts +5 -0
  317. package/lib/types/contract/MarketContract.d.mts +5 -0
  318. package/lib/types/contract/OtherAuditContract.d.cts +5 -0
  319. package/lib/types/contract/OtherAuditContract.d.mts +5 -0
  320. package/lib/types/contract/OtherBatchContract.d.cts +5 -0
  321. package/lib/types/contract/OtherBatchContract.d.mts +5 -0
  322. package/lib/types/contract/OtherMarketContract.d.cts +5 -0
  323. package/lib/types/contract/OtherMarketContract.d.mts +5 -0
  324. package/lib/types/contract/OtherProductContract.d.cts +5 -0
  325. package/lib/types/contract/OtherProductContract.d.mts +5 -0
  326. package/lib/types/contract/OtherProductImageContract.d.cts +5 -0
  327. package/lib/types/contract/OtherProductImageContract.d.mts +5 -0
  328. package/lib/types/contract/OtherProductSharedContract.d.cts +5 -0
  329. package/lib/types/contract/OtherProductSharedContract.d.mts +5 -0
  330. package/lib/types/contract/OtherProductStrengthContract.d.cts +5 -0
  331. package/lib/types/contract/OtherProductStrengthContract.d.mts +5 -0
  332. package/lib/types/contract/Product.d.cts +7 -0
  333. package/lib/types/contract/Product.d.mts +7 -0
  334. package/lib/types/contract/ProductContract.d.cts +5 -0
  335. package/lib/types/contract/ProductContract.d.mts +5 -0
  336. package/lib/types/contract/ProductStrengthContract.d.cts +5 -0
  337. package/lib/types/contract/ProductStrengthContract.d.mts +5 -0
  338. package/lib/types/contract/SegregatedPrivateDocumentContract.d.cts +5 -0
  339. package/lib/types/contract/SegregatedPrivateDocumentContract.d.mts +5 -0
  340. package/lib/types/contract/SegregatedSharedDocumentContract.d.cts +5 -0
  341. package/lib/types/contract/SegregatedSharedDocumentContract.d.mts +5 -0
  342. package/lib/types/contract/User.d.cts +7 -0
  343. package/lib/types/contract/User.d.mts +7 -0
  344. package/lib/types/contract/UserContract.d.cts +5 -0
  345. package/lib/types/contract/UserContract.d.mts +5 -0
  346. package/lib/types/contract/index.d.cts +2 -0
  347. package/lib/types/contract/index.d.mts +2 -0
  348. package/lib/types/contract/logging-context.d.cts +8 -0
  349. package/lib/types/contract/logging-context.d.mts +8 -0
  350. package/lib/types/contract/models/Audit.d.cts +13 -0
  351. package/lib/types/contract/models/Audit.d.mts +13 -0
  352. package/lib/types/contract/models/BaseIdentifiedModel.d.cts +7 -0
  353. package/lib/types/contract/models/BaseIdentifiedModel.d.mts +7 -0
  354. package/lib/types/contract/models/BaseModel.d.cts +7 -0
  355. package/lib/types/contract/models/BaseModel.d.mts +7 -0
  356. package/lib/types/contract/models/Batch.d.cts +18 -0
  357. package/lib/types/contract/models/Batch.d.mts +18 -0
  358. package/lib/types/contract/models/GtinOwner.d.cts +8 -0
  359. package/lib/types/contract/models/GtinOwner.d.mts +8 -0
  360. package/lib/types/contract/models/History.d.cts +9 -0
  361. package/lib/types/contract/models/History.d.mts +9 -0
  362. package/lib/types/contract/models/Leaflet.d.cts +12 -0
  363. package/lib/types/contract/models/Leaflet.d.mts +12 -0
  364. package/lib/types/contract/models/LeafletFile.d.cts +9 -0
  365. package/lib/types/contract/models/LeafletFile.d.mts +9 -0
  366. package/lib/types/contract/models/Market.d.cts +12 -0
  367. package/lib/types/contract/models/Market.d.mts +12 -0
  368. package/lib/types/contract/models/OtherAudit.d.cts +15 -0
  369. package/lib/types/contract/models/OtherAudit.d.mts +15 -0
  370. package/lib/types/contract/models/OtherBatchShared.d.cts +18 -0
  371. package/lib/types/contract/models/OtherBatchShared.d.mts +18 -0
  372. package/lib/types/contract/models/OtherLeaflet.d.cts +16 -0
  373. package/lib/types/contract/models/OtherLeaflet.d.mts +16 -0
  374. package/lib/types/contract/models/OtherLeafletFile.d.cts +10 -0
  375. package/lib/types/contract/models/OtherLeafletFile.d.mts +10 -0
  376. package/lib/types/contract/models/OtherMarket.d.cts +13 -0
  377. package/lib/types/contract/models/OtherMarket.d.mts +13 -0
  378. package/lib/types/contract/models/OtherProduct.d.cts +12 -0
  379. package/lib/types/contract/models/OtherProduct.d.mts +12 -0
  380. package/lib/types/contract/models/OtherProductImage.d.cts +9 -0
  381. package/lib/types/contract/models/OtherProductImage.d.mts +9 -0
  382. package/lib/types/contract/models/OtherProductShared.d.cts +18 -0
  383. package/lib/types/contract/models/OtherProductShared.d.mts +18 -0
  384. package/lib/types/contract/models/OtherProductStrength.d.cts +12 -0
  385. package/lib/types/contract/models/OtherProductStrength.d.mts +12 -0
  386. package/lib/types/contract/models/Product.d.cts +15 -0
  387. package/lib/types/contract/models/Product.d.mts +15 -0
  388. package/lib/types/contract/models/ProductStrength.d.cts +11 -0
  389. package/lib/types/contract/models/ProductStrength.d.mts +11 -0
  390. package/lib/types/contract/models/SegregatedDocument.d.cts +18 -0
  391. package/lib/types/contract/models/SegregatedDocument.d.mts +18 -0
  392. package/lib/types/contract/models/constants.d.cts +24 -0
  393. package/lib/types/contract/models/constants.d.mts +24 -0
  394. package/lib/types/contract/models/decorators-private.d.cts +16 -0
  395. package/lib/types/contract/models/decorators-private.d.mts +16 -0
  396. package/lib/types/contract/models/decorators.d.cts +28 -0
  397. package/lib/types/contract/models/decorators.d.mts +28 -0
  398. package/lib/types/contract/models/gtin.d.cts +8 -0
  399. package/lib/types/contract/models/gtin.d.mts +8 -0
  400. package/lib/types/contract/models/history-dec.d.cts +6 -0
  401. package/lib/types/contract/models/history-dec.d.mts +6 -0
  402. package/lib/types/contracts/ContractAdapter.d.cts +287 -0
  403. package/lib/types/contracts/ContractAdapter.d.mts +287 -0
  404. package/lib/types/contracts/ContractContext.d.cts +89 -0
  405. package/lib/types/contracts/ContractContext.d.mts +89 -0
  406. package/lib/types/contracts/FabricContractDispatch.d.cts +7 -0
  407. package/lib/types/contracts/FabricContractDispatch.d.mts +7 -0
  408. package/lib/types/contracts/FabricContractPaginator.d.cts +105 -0
  409. package/lib/types/contracts/FabricContractPaginator.d.mts +105 -0
  410. package/lib/types/contracts/FabricContractRepository.d.cts +119 -0
  411. package/lib/types/contracts/FabricContractRepository.d.mts +119 -0
  412. package/lib/types/contracts/FabricContractRepositoryObservableHandler.d.cts +62 -0
  413. package/lib/types/contracts/FabricContractRepositoryObservableHandler.d.mts +62 -0
  414. package/lib/types/contracts/FabricContractSequence.d.cts +87 -0
  415. package/lib/types/contracts/FabricContractSequence.d.mts +87 -0
  416. package/lib/types/contracts/FabricContractStatement.d.cts +36 -0
  417. package/lib/types/contracts/FabricContractStatement.d.mts +36 -0
  418. package/lib/types/contracts/MigrationContract.d.cts +22 -0
  419. package/lib/types/contracts/MigrationContract.d.mts +22 -0
  420. package/lib/types/contracts/PrivateSequence.d.cts +15 -0
  421. package/lib/types/contracts/PrivateSequence.d.mts +15 -0
  422. package/lib/types/contracts/auth/decorators.d.cts +6 -0
  423. package/lib/types/contracts/auth/decorators.d.mts +6 -0
  424. package/lib/types/contracts/auth/index.d.cts +1 -0
  425. package/lib/types/contracts/auth/index.d.mts +1 -0
  426. package/lib/types/contracts/crud/crud-contract.d.cts +199 -0
  427. package/lib/types/contracts/crud/crud-contract.d.mts +199 -0
  428. package/lib/types/contracts/crud/index.d.cts +2 -0
  429. package/lib/types/contracts/crud/index.d.mts +2 -0
  430. package/lib/types/contracts/crud/serialized-crud-contract.d.cts +42 -0
  431. package/lib/types/contracts/crud/serialized-crud-contract.d.mts +42 -0
  432. package/lib/types/contracts/erc20/erc20contract.d.cts +152 -0
  433. package/lib/types/contracts/erc20/erc20contract.d.mts +152 -0
  434. package/lib/types/contracts/erc20/index.d.cts +2 -0
  435. package/lib/types/contracts/erc20/index.d.mts +2 -0
  436. package/lib/types/contracts/erc20/models.d.cts +114 -0
  437. package/lib/types/contracts/erc20/models.d.mts +114 -0
  438. package/lib/types/contracts/index.d.cts +20 -0
  439. package/lib/types/contracts/index.d.mts +20 -0
  440. package/lib/types/contracts/logging.d.cts +54 -0
  441. package/lib/types/contracts/logging.d.mts +54 -0
  442. package/lib/types/contracts/overrides.d.cts +1 -0
  443. package/lib/types/contracts/overrides.d.mts +1 -0
  444. package/lib/types/contracts/types.d.cts +38 -0
  445. package/lib/types/contracts/types.d.mts +38 -0
  446. package/lib/types/contracts/uuid.d.cts +2 -0
  447. package/lib/types/contracts/uuid.d.mts +2 -0
  448. package/lib/types/index.d.cts +8 -0
  449. package/lib/types/index.d.mts +8 -0
  450. package/lib/types/shared/ClientSerializer.d.cts +52 -0
  451. package/lib/types/shared/ClientSerializer.d.mts +52 -0
  452. package/lib/types/shared/DeterministicSerializer.d.cts +47 -0
  453. package/lib/types/shared/DeterministicSerializer.d.mts +47 -0
  454. package/lib/types/shared/SimpleDeterministicSerializer.d.cts +7 -0
  455. package/lib/types/shared/SimpleDeterministicSerializer.d.mts +7 -0
  456. package/lib/types/shared/constants.d.cts +35 -0
  457. package/lib/types/shared/constants.d.mts +35 -0
  458. package/lib/types/shared/decorators.d.cts +81 -0
  459. package/lib/types/shared/decorators.d.mts +81 -0
  460. package/lib/types/shared/erc20/erc20-constants.d.cts +25 -0
  461. package/lib/types/shared/erc20/erc20-constants.d.mts +25 -0
  462. package/lib/types/shared/erc20/index.d.cts +1 -0
  463. package/lib/types/shared/erc20/index.d.mts +1 -0
  464. package/lib/types/shared/errors.d.cts +140 -0
  465. package/lib/types/shared/errors.d.mts +140 -0
  466. package/lib/types/shared/events.d.cts +37 -0
  467. package/lib/types/shared/events.d.mts +37 -0
  468. package/lib/types/shared/fabric-types.d.cts +32 -0
  469. package/lib/types/shared/fabric-types.d.mts +32 -0
  470. package/lib/types/shared/index.d.cts +21 -0
  471. package/lib/types/shared/index.d.mts +21 -0
  472. package/lib/types/shared/interfaces/Checkable.d.cts +23 -0
  473. package/lib/types/shared/interfaces/Checkable.d.mts +23 -0
  474. package/lib/types/shared/interfaces/index.d.cts +1 -0
  475. package/lib/types/shared/interfaces/index.d.mts +1 -0
  476. package/lib/types/shared/math.d.cts +34 -0
  477. package/lib/types/shared/math.d.mts +34 -0
  478. package/lib/types/shared/model/FabricBaseModel.d.cts +7 -0
  479. package/lib/types/shared/model/FabricBaseModel.d.mts +7 -0
  480. package/lib/types/shared/model/FabricIdentifiedBaseModel.d.cts +7 -0
  481. package/lib/types/shared/model/FabricIdentifiedBaseModel.d.mts +7 -0
  482. package/lib/types/shared/model/Identity.d.cts +42 -0
  483. package/lib/types/shared/model/Identity.d.mts +42 -0
  484. package/lib/types/shared/model/IdentityCredentials.d.cts +41 -0
  485. package/lib/types/shared/model/IdentityCredentials.d.mts +41 -0
  486. package/lib/types/shared/model/index.d.cts +4 -0
  487. package/lib/types/shared/model/index.d.mts +4 -0
  488. package/lib/types/shared/overrides/Model.d.cts +22 -0
  489. package/lib/types/shared/overrides/Model.d.mts +22 -0
  490. package/lib/types/shared/overrides/index.d.cts +2 -0
  491. package/lib/types/shared/overrides/index.d.mts +2 -0
  492. package/lib/types/shared/overrides/overrides.d.cts +1 -0
  493. package/lib/types/shared/overrides/overrides.d.mts +1 -0
  494. package/lib/types/shared/types.d.cts +125 -0
  495. package/lib/types/shared/types.d.mts +125 -0
  496. package/lib/types/version.d.cts +2 -0
  497. package/lib/types/version.d.mts +2 -0
  498. package/lib/types/version.d.ts +1 -1
  499. package/package.json +43 -23
  500. package/lib/cjs/bin/cli.js.map +0 -1
  501. package/lib/cjs/cli-module.js.map +0 -1
  502. package/lib/cjs/cli-utils.js.map +0 -1
  503. package/lib/cjs/client/FabricClientAdapter.js.map +0 -1
  504. package/lib/cjs/client/FabricClientDispatch.js.map +0 -1
  505. package/lib/cjs/client/FabricClientPaginator.js.map +0 -1
  506. package/lib/cjs/client/FabricClientRepository.js.map +0 -1
  507. package/lib/cjs/client/FabricClientStatement.js.map +0 -1
  508. package/lib/cjs/client/collections/generation.js.map +0 -1
  509. package/lib/cjs/client/collections/index.js.map +0 -1
  510. package/lib/cjs/client/constants.js.map +0 -1
  511. package/lib/cjs/client/crypto.js.map +0 -1
  512. package/lib/cjs/client/erc20/FabricERC20ClientRepository.js.map +0 -1
  513. package/lib/cjs/client/erc20/index.js.map +0 -1
  514. package/lib/cjs/client/fabric-fs.js.map +0 -1
  515. package/lib/cjs/client/fabric-hsm.js.map +0 -1
  516. package/lib/cjs/client/ids/id-extraction.js.map +0 -1
  517. package/lib/cjs/client/ids/index.js.map +0 -1
  518. package/lib/cjs/client/index.js.map +0 -1
  519. package/lib/cjs/client/indexes/generation.js.map +0 -1
  520. package/lib/cjs/client/indexes/index.js.map +0 -1
  521. package/lib/cjs/client/logging.js.map +0 -1
  522. package/lib/cjs/client/services/FabricEnrollmentService.js.map +0 -1
  523. package/lib/cjs/client/services/FabricIdentityService.js.map +0 -1
  524. package/lib/cjs/client/services/RegistrationRequestBuilder.js.map +0 -1
  525. package/lib/cjs/client/services/constants.js.map +0 -1
  526. package/lib/cjs/client/services/index.js.map +0 -1
  527. package/lib/cjs/client/types.js.map +0 -1
  528. package/lib/cjs/client/utils.js.map +0 -1
  529. package/lib/cjs/contract/Address.js.map +0 -1
  530. package/lib/cjs/contract/AddressContract.js.map +0 -1
  531. package/lib/cjs/contract/AuditContract.js.map +0 -1
  532. package/lib/cjs/contract/BatchContract.js.map +0 -1
  533. package/lib/cjs/contract/MarketContract.js.map +0 -1
  534. package/lib/cjs/contract/OtherAuditContract.js.map +0 -1
  535. package/lib/cjs/contract/OtherBatchContract.js.map +0 -1
  536. package/lib/cjs/contract/OtherMarketContract.js.map +0 -1
  537. package/lib/cjs/contract/OtherProductContract.js.map +0 -1
  538. package/lib/cjs/contract/OtherProductImageContract.js.map +0 -1
  539. package/lib/cjs/contract/OtherProductSharedContract.js.map +0 -1
  540. package/lib/cjs/contract/OtherProductStrengthContract.js.map +0 -1
  541. package/lib/cjs/contract/Product.js.map +0 -1
  542. package/lib/cjs/contract/ProductContract.js.map +0 -1
  543. package/lib/cjs/contract/ProductStrengthContract.js.map +0 -1
  544. package/lib/cjs/contract/SegregatedPrivateDocumentContract.js.map +0 -1
  545. package/lib/cjs/contract/SegregatedSharedDocumentContract.js.map +0 -1
  546. package/lib/cjs/contract/User.js.map +0 -1
  547. package/lib/cjs/contract/UserContract.js.map +0 -1
  548. package/lib/cjs/contract/index.js.map +0 -1
  549. package/lib/cjs/contract/logging-context.js.map +0 -1
  550. package/lib/cjs/contract/models/Audit.js.map +0 -1
  551. package/lib/cjs/contract/models/BaseIdentifiedModel.js.map +0 -1
  552. package/lib/cjs/contract/models/BaseModel.js.map +0 -1
  553. package/lib/cjs/contract/models/Batch.js.map +0 -1
  554. package/lib/cjs/contract/models/GtinOwner.js.map +0 -1
  555. package/lib/cjs/contract/models/History.js.map +0 -1
  556. package/lib/cjs/contract/models/Leaflet.js.map +0 -1
  557. package/lib/cjs/contract/models/LeafletFile.js.map +0 -1
  558. package/lib/cjs/contract/models/Market.js.map +0 -1
  559. package/lib/cjs/contract/models/OtherAudit.js.map +0 -1
  560. package/lib/cjs/contract/models/OtherBatchShared.js.map +0 -1
  561. package/lib/cjs/contract/models/OtherLeaflet.js.map +0 -1
  562. package/lib/cjs/contract/models/OtherLeafletFile.js.map +0 -1
  563. package/lib/cjs/contract/models/OtherMarket.js.map +0 -1
  564. package/lib/cjs/contract/models/OtherProduct.js.map +0 -1
  565. package/lib/cjs/contract/models/OtherProductImage.js.map +0 -1
  566. package/lib/cjs/contract/models/OtherProductShared.js.map +0 -1
  567. package/lib/cjs/contract/models/OtherProductStrength.js.map +0 -1
  568. package/lib/cjs/contract/models/Product.js.map +0 -1
  569. package/lib/cjs/contract/models/ProductStrength.js.map +0 -1
  570. package/lib/cjs/contract/models/SegregatedDocument.js.map +0 -1
  571. package/lib/cjs/contract/models/constants.js.map +0 -1
  572. package/lib/cjs/contract/models/decorators-private.js.map +0 -1
  573. package/lib/cjs/contract/models/decorators.js.map +0 -1
  574. package/lib/cjs/contract/models/gtin.js.map +0 -1
  575. package/lib/cjs/contract/models/history-dec.js.map +0 -1
  576. package/lib/cjs/contracts/ContractAdapter.js.map +0 -1
  577. package/lib/cjs/contracts/ContractContext.js.map +0 -1
  578. package/lib/cjs/contracts/FabricContractDispatch.js.map +0 -1
  579. package/lib/cjs/contracts/FabricContractPaginator.js.map +0 -1
  580. package/lib/cjs/contracts/FabricContractRepository.js.map +0 -1
  581. package/lib/cjs/contracts/FabricContractRepositoryObservableHandler.js.map +0 -1
  582. package/lib/cjs/contracts/FabricContractSequence.js.map +0 -1
  583. package/lib/cjs/contracts/FabricContractStatement.js.map +0 -1
  584. package/lib/cjs/contracts/MigrationContract.js.map +0 -1
  585. package/lib/cjs/contracts/PrivateSequence.js.map +0 -1
  586. package/lib/cjs/contracts/auth/decorators.js.map +0 -1
  587. package/lib/cjs/contracts/auth/index.js.map +0 -1
  588. package/lib/cjs/contracts/crud/crud-contract.js.map +0 -1
  589. package/lib/cjs/contracts/crud/index.js.map +0 -1
  590. package/lib/cjs/contracts/crud/serialized-crud-contract.js.map +0 -1
  591. package/lib/cjs/contracts/erc20/erc20contract.js.map +0 -1
  592. package/lib/cjs/contracts/erc20/index.js.map +0 -1
  593. package/lib/cjs/contracts/erc20/models.js.map +0 -1
  594. package/lib/cjs/contracts/index.js.map +0 -1
  595. package/lib/cjs/contracts/logging.js.map +0 -1
  596. package/lib/cjs/contracts/overrides.js.map +0 -1
  597. package/lib/cjs/contracts/types.js.map +0 -1
  598. package/lib/cjs/contracts/uuid.js.map +0 -1
  599. package/lib/cjs/index.js.map +0 -1
  600. package/lib/cjs/shared/ClientSerializer.js.map +0 -1
  601. package/lib/cjs/shared/DeterministicSerializer.js.map +0 -1
  602. package/lib/cjs/shared/SimpleDeterministicSerializer.js.map +0 -1
  603. package/lib/cjs/shared/constants.js.map +0 -1
  604. package/lib/cjs/shared/decorators.js.map +0 -1
  605. package/lib/cjs/shared/erc20/erc20-constants.js.map +0 -1
  606. package/lib/cjs/shared/erc20/index.js.map +0 -1
  607. package/lib/cjs/shared/errors.js.map +0 -1
  608. package/lib/cjs/shared/events.js.map +0 -1
  609. package/lib/cjs/shared/fabric-types.js.map +0 -1
  610. package/lib/cjs/shared/index.js.map +0 -1
  611. package/lib/cjs/shared/interfaces/Checkable.js.map +0 -1
  612. package/lib/cjs/shared/interfaces/index.js.map +0 -1
  613. package/lib/cjs/shared/math.js.map +0 -1
  614. package/lib/cjs/shared/model/FabricBaseModel.js.map +0 -1
  615. package/lib/cjs/shared/model/FabricIdentifiedBaseModel.js.map +0 -1
  616. package/lib/cjs/shared/model/Identity.js.map +0 -1
  617. package/lib/cjs/shared/model/IdentityCredentials.js.map +0 -1
  618. package/lib/cjs/shared/model/index.js.map +0 -1
  619. package/lib/cjs/shared/overrides/Model.js.map +0 -1
  620. package/lib/cjs/shared/overrides/index.js.map +0 -1
  621. package/lib/cjs/shared/overrides/overrides.js.map +0 -1
  622. package/lib/cjs/shared/types.js.map +0 -1
  623. package/lib/cjs/version.js.map +0 -1
@@ -1,20 +1,25 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.History = void 0;
2
4
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
5
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
7
+ r = Reflect.decorate(decorators, target, key, desc);
8
+ else
9
+ for (var i = decorators.length - 1; i >= 0; i--)
10
+ if (d = decorators[i])
11
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
12
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
13
  };
8
14
  var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
15
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
16
+ return Reflect.metadata(k, v);
10
17
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.History = void 0;
13
18
  const decorator_validation_1 = require("@decaf-ts/decorator-validation");
14
19
  const core_1 = require("@decaf-ts/core");
15
20
  const db_decorators_1 = require("@decaf-ts/db-decorators");
16
21
  const decoration_1 = require("@decaf-ts/decoration");
17
- const shared_1 = require("./../../shared/index.cjs");
22
+ const index_js_1 = require("./../../shared/index.cjs");
18
23
  let History = class History extends decorator_validation_1.Model {
19
24
  constructor(model) {
20
25
  super(model);
@@ -23,7 +28,7 @@ let History = class History extends decorator_validation_1.Model {
23
28
  exports.History = History;
24
29
  __decorate([
25
30
  (0, core_1.pk)(),
26
- (0, shared_1.mirror)("ptp-history-mirror", "PharmaledgerassocMSP"),
31
+ (0, index_js_1.mirror)("ptp-history-mirror", "PharmaledgerassocMSP"),
27
32
  (0, db_decorators_1.composed)(["table", "key", "version"], ":"),
28
33
  (0, decoration_1.description)("Unique identifier of the history record."),
29
34
  __metadata("design:type", String)
@@ -61,15 +66,16 @@ __decorate([
61
66
  ], History.prototype, "record", void 0);
62
67
  exports.History = History = __decorate([
63
68
  (0, decoration_1.description)("Logs user activity for auditing purposes."),
64
- (0, decoration_1.uses)(shared_1.FabricFlavour),
69
+ (0, decoration_1.uses)(index_js_1.FabricFlavour),
65
70
  (0, db_decorators_1.BlockOperations)([
66
71
  db_decorators_1.OperationKeys.CREATE,
67
72
  db_decorators_1.OperationKeys.UPDATE,
68
73
  db_decorators_1.OperationKeys.DELETE,
69
74
  ]),
70
75
  (0, core_1.table)("history"),
71
- (0, shared_1.sharedData)((0, shared_1.NamespaceCollection)("ptp-history")),
76
+ (0, index_js_1.sharedData)((0, index_js_1.NamespaceCollection)("ptp-history")),
72
77
  (0, decorator_validation_1.model)(),
73
78
  __metadata("design:paramtypes", [Object])
74
79
  ], History);
80
+ //# sourceMappingURL=History.js.map
75
81
  //# sourceMappingURL=History.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"History.js","sourceRoot":"","sources":["History.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAA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CAAC;IACjD,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,OAAO,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;AACzC,UAAU,CAAC;IACP,IAAA,aAAM,GAAE;IACR,IAAA,+BAAQ,GAAE;IACV,IAAA,wBAAQ,GAAE;IACV,IAAA,wBAAW,EAAC,+BAA+B,CAAC;IAC5C,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,OAAO,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;AACxC,kBAAA,OAAO,GAAG,UAAU,CAAC;IACjB,IAAA,wBAAW,EAAC,2CAA2C,CAAC;IACxD,IAAA,iBAAI,EAAC,wBAAa,CAAC;IACnB,IAAA,+BAAe,EAAC;QACZ,6BAAa,CAAC,MAAM;QACpB,6BAAa,CAAC,MAAM;QACpB,6BAAa,CAAC,MAAM;KACvB,CAAC;IACF,IAAA,YAAK,EAAC,SAAS,CAAC;IAChB,IAAA,qBAAU,EAAC,IAAA,8BAAmB,EAAC,aAAa,CAAC,CAAC;IAC9C,IAAA,4BAAK,GAAE;IACP,UAAU,CAAC,mBAAmB,EAAE,CAAC,MAAM,CAAC,CAAC;CAC5C,EAAE,OAAO,CAAC,CAAC;AAEZ,mCAAmC"}
@@ -1,34 +1,39 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Leaflet = void 0;
2
4
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
5
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
7
+ r = Reflect.decorate(decorators, target, key, desc);
8
+ else
9
+ for (var i = decorators.length - 1; i >= 0; i--)
10
+ if (d = decorators[i])
11
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
12
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
13
  };
8
14
  var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
15
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
16
+ return Reflect.metadata(k, v);
10
17
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Leaflet = void 0;
13
18
  const decorator_validation_1 = require("@decaf-ts/decorator-validation");
14
- const LeafletFile_1 = require("./LeafletFile.cjs");
15
- const gtin_1 = require("./gtin.cjs");
16
- const constants_1 = require("./constants.cjs");
19
+ const LeafletFile_js_1 = require("./LeafletFile.cjs");
20
+ const gtin_js_1 = require("./gtin.cjs");
21
+ const constants_js_1 = require("./constants.cjs");
17
22
  const core_1 = require("@decaf-ts/core");
18
23
  const db_decorators_1 = require("@decaf-ts/db-decorators");
19
- const Product_1 = require("./Product.cjs");
24
+ const Product_js_1 = require("./Product.cjs");
20
25
  const decoration_1 = require("@decaf-ts/decoration");
21
- const BaseIdentifiedModel_1 = require("./BaseIdentifiedModel.cjs");
22
- const decorators_1 = require("./decorators.cjs");
23
- const index_1 = require("./../../shared/index.cjs");
24
- let Leaflet = class Leaflet extends BaseIdentifiedModel_1.BaseIdentifiedModel {
26
+ const BaseIdentifiedModel_js_1 = require("./BaseIdentifiedModel.cjs");
27
+ const decorators_js_1 = require("./decorators.cjs");
28
+ const index_js_1 = require("./../../shared/index.cjs");
29
+ let Leaflet = class Leaflet extends BaseIdentifiedModel_js_1.BaseIdentifiedModel {
25
30
  constructor(model) {
26
31
  super(model);
27
32
  }
28
33
  };
29
34
  exports.Leaflet = Leaflet;
30
35
  __decorate([
31
- (0, decorators_1.audit)(Leaflet),
36
+ (0, decorators_js_1.audit)(Leaflet),
32
37
  (0, core_1.pk)(),
33
38
  (0, db_decorators_1.composed)(["productCode", "batchNumber", "lang", "countryMarket"], ":", [
34
39
  "batchNumber",
@@ -38,8 +43,8 @@ __decorate([
38
43
  __metadata("design:type", String)
39
44
  ], Leaflet.prototype, "id", void 0);
40
45
  __decorate([
41
- (0, gtin_1.gtin)(),
42
- (0, core_1.manyToOne)(() => Product_1.Product, { update: core_1.Cascade.CASCADE, delete: core_1.Cascade.CASCADE }, false),
46
+ (0, gtin_js_1.gtin)(),
47
+ (0, core_1.manyToOne)(() => Product_js_1.Product, { update: core_1.Cascade.CASCADE, delete: core_1.Cascade.CASCADE }, false),
43
48
  (0, decorator_validation_1.required)(),
44
49
  (0, db_decorators_1.readonly)(),
45
50
  (0, core_1.index)([core_1.OrderDirection.ASC, core_1.OrderDirection.DSC]),
@@ -81,15 +86,16 @@ __decorate([
81
86
  __metadata("design:type", String)
82
87
  ], Leaflet.prototype, "xmlFileContent", void 0);
83
88
  __decorate([
84
- (0, core_1.oneToMany)(() => LeafletFile_1.LeafletFile, { update: core_1.Cascade.CASCADE, delete: core_1.Cascade.CASCADE }, false),
89
+ (0, core_1.oneToMany)(() => LeafletFile_js_1.LeafletFile, { update: core_1.Cascade.CASCADE, delete: core_1.Cascade.CASCADE }, false),
85
90
  (0, decoration_1.description)("List of additional files linked to the leaflet, such as PDFs or images."),
86
91
  __metadata("design:type", Array)
87
92
  ], Leaflet.prototype, "otherFilesContent", void 0);
88
93
  exports.Leaflet = Leaflet = __decorate([
89
94
  (0, decoration_1.description)("Represents a medical leaflet linked to a specific product, batch, and language."),
90
- (0, decoration_1.uses)(index_1.FabricFlavour),
91
- (0, core_1.table)(constants_1.TableNames.Leaflet),
95
+ (0, decoration_1.uses)(index_js_1.FabricFlavour),
96
+ (0, core_1.table)(constants_js_1.TableNames.Leaflet),
92
97
  (0, decorator_validation_1.model)(),
93
98
  __metadata("design:paramtypes", [Object])
94
99
  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;IACV,IAAA,wBAAW,EAAC,6CAA6C,CAAC;IAC1D,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,OAAO,CAAC,SAAS,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC,CAAC;AAChD,UAAU,CAAC;IACP,IAAA,gBAAS,EAAC,GAAG,EAAE,CAAC,4BAAW,EAAE,EAAE,MAAM,EAAE,cAAO,CAAC,OAAO,EAAE,MAAM,EAAE,cAAO,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC;IACzF,IAAA,wBAAW,EAAC,yEAAyE,CAAC;IACtF,UAAU,CAAC,aAAa,EAAE,KAAK,CAAC;CACnC,EAAE,OAAO,CAAC,SAAS,EAAE,mBAAmB,EAAE,KAAK,CAAC,CAAC,CAAC;AACnD,kBAAA,OAAO,GAAG,UAAU,CAAC;IACjB,IAAA,wBAAW,EAAC,iFAAiF,CAAC;IAC9F,IAAA,iBAAI,EAAC,wBAAa,CAAC;IACnB,IAAA,YAAK,EAAC,yBAAU,CAAC,OAAO,CAAC;IACzB,IAAA,4BAAK,GAAE;IACP,UAAU,CAAC,mBAAmB,EAAE,CAAC,MAAM,CAAC,CAAC;CAC5C,EAAE,OAAO,CAAC,CAAC;AAEZ,mCAAmC"}
@@ -1,24 +1,29 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LeafletFile = void 0;
2
4
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
5
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
7
+ r = Reflect.decorate(decorators, target, key, desc);
8
+ else
9
+ for (var i = decorators.length - 1; i >= 0; i--)
10
+ if (d = decorators[i])
11
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
12
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
13
  };
8
14
  var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
15
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
16
+ return Reflect.metadata(k, v);
10
17
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.LeafletFile = void 0;
13
18
  const decorator_validation_1 = require("@decaf-ts/decorator-validation");
14
19
  const core_1 = require("@decaf-ts/core");
15
- const constants_1 = require("./constants.cjs");
16
- const Leaflet_1 = require("./Leaflet.cjs");
20
+ const constants_js_1 = require("./constants.cjs");
21
+ const Leaflet_js_1 = require("./Leaflet.cjs");
17
22
  const decoration_1 = require("@decaf-ts/decoration");
18
- const BaseIdentifiedModel_1 = require("./BaseIdentifiedModel.cjs");
23
+ const BaseIdentifiedModel_js_1 = require("./BaseIdentifiedModel.cjs");
19
24
  const db_decorators_1 = require("@decaf-ts/db-decorators");
20
- const index_1 = require("./../../shared/index.cjs");
21
- let LeafletFile = class LeafletFile extends BaseIdentifiedModel_1.BaseIdentifiedModel {
25
+ const index_js_1 = require("./../../shared/index.cjs");
26
+ let LeafletFile = class LeafletFile extends BaseIdentifiedModel_js_1.BaseIdentifiedModel {
22
27
  constructor(model) {
23
28
  super(model);
24
29
  }
@@ -31,7 +36,7 @@ __decorate([
31
36
  __metadata("design:type", String)
32
37
  ], LeafletFile.prototype, "id", void 0);
33
38
  __decorate([
34
- (0, core_1.manyToOne)(() => Leaflet_1.Leaflet, { update: core_1.Cascade.NONE, delete: core_1.Cascade.NONE }, false),
39
+ (0, core_1.manyToOne)(() => Leaflet_js_1.Leaflet, { update: core_1.Cascade.NONE, delete: core_1.Cascade.NONE }, false),
35
40
  (0, decoration_1.description)("Identifier of the leaflet this file belongs to."),
36
41
  __metadata("design:type", String)
37
42
  ], LeafletFile.prototype, "leafletId", void 0);
@@ -50,9 +55,10 @@ __decorate([
50
55
  ], LeafletFile.prototype, "fileContent", void 0);
51
56
  exports.LeafletFile = LeafletFile = __decorate([
52
57
  (0, decoration_1.description)("Represents an additional file associated with a leaflet, such as a PDF or image."),
53
- (0, decoration_1.uses)(index_1.FabricFlavour),
54
- (0, core_1.table)(constants_1.TableNames.LeafletFile),
58
+ (0, decoration_1.uses)(index_js_1.FabricFlavour),
59
+ (0, core_1.table)(constants_js_1.TableNames.LeafletFile),
55
60
  (0, decorator_validation_1.model)(),
56
61
  __metadata("design:paramtypes", [Object])
57
62
  ], LeafletFile);
63
+ //# sourceMappingURL=LeafletFile.js.map
58
64
  //# sourceMappingURL=LeafletFile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LeafletFile.js","sourceRoot":"","sources":["LeafletFile.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;QAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;;QAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAA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,uCAAuC"}
@@ -1,24 +1,29 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Market = void 0;
2
4
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
5
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
7
+ r = Reflect.decorate(decorators, target, key, desc);
8
+ else
9
+ for (var i = decorators.length - 1; i >= 0; i--)
10
+ if (d = decorators[i])
11
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
12
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
13
  };
8
14
  var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
15
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
16
+ return Reflect.metadata(k, v);
10
17
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Market = void 0;
13
18
  const decorator_validation_1 = require("@decaf-ts/decorator-validation");
14
- const constants_1 = require("./constants.cjs");
19
+ const constants_js_1 = require("./constants.cjs");
15
20
  const core_1 = require("@decaf-ts/core");
16
21
  const db_decorators_1 = require("@decaf-ts/db-decorators");
17
22
  const decoration_1 = require("@decaf-ts/decoration");
18
- const BaseIdentifiedModel_1 = require("./BaseIdentifiedModel.cjs");
19
- const gtin_1 = require("./gtin.cjs");
20
- const index_1 = require("./../../shared/index.cjs");
21
- let Market = class Market extends BaseIdentifiedModel_1.BaseIdentifiedModel {
23
+ const BaseIdentifiedModel_js_1 = require("./BaseIdentifiedModel.cjs");
24
+ const gtin_js_1 = require("./gtin.cjs");
25
+ const index_js_1 = require("./../../shared/index.cjs");
26
+ let Market = class Market extends BaseIdentifiedModel_js_1.BaseIdentifiedModel {
22
27
  constructor(model) {
23
28
  super(model);
24
29
  }
@@ -39,7 +44,7 @@ __decorate([
39
44
  ], Market.prototype, "marketId", void 0);
40
45
  __decorate([
41
46
  (0, core_1.column)(),
42
- (0, gtin_1.gtin)(),
47
+ (0, gtin_js_1.gtin)(),
43
48
  (0, decorator_validation_1.required)(),
44
49
  __metadata("design:type", String)
45
50
  ], Market.prototype, "productCode", void 0);
@@ -67,9 +72,10 @@ __decorate([
67
72
  ], Market.prototype, "mahAddress", void 0);
68
73
  exports.Market = Market = __decorate([
69
74
  (0, decoration_1.description)("Links a product to a specific market."),
70
- (0, decoration_1.uses)(index_1.FabricFlavour),
71
- (0, core_1.table)(constants_1.TableNames.Market),
75
+ (0, decoration_1.uses)(index_js_1.FabricFlavour),
76
+ (0, core_1.table)(constants_js_1.TableNames.Market),
72
77
  (0, decorator_validation_1.model)(),
73
78
  __metadata("design:paramtypes", [Object])
74
79
  ], Market);
80
+ //# sourceMappingURL=Market.js.map
75
81
  //# sourceMappingURL=Market.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Market.js","sourceRoot":"","sources":["Market.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ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AAM,CAAC;CACpC,EAAE,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;AACxC,UAAU,CAAC;IACP,IAAA,aAAM,GAAE;IACR,IAAA,wBAAW,EAAC,sEAAsE,CAAC;IACnF,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,MAAM,CAAC,SAAS,EAAE,iBAAiB,EAAE,KAAK,CAAC,CAAC,CAAC;AAChD,UAAU,CAAC;IACP,IAAA,aAAM,GAAE;IACR,IAAA,wBAAW,EAAC,4EAA4E,CAAC;IACzF,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,MAAM,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC,CAAC;AAC3C,iBAAA,MAAM,GAAG,UAAU,CAAC;IAChB,IAAA,wBAAW,EAAC,uCAAuC,CAAC;IACpD,IAAA,iBAAI,EAAC,wBAAa,CAAC;IACnB,IAAA,YAAK,EAAC,yBAAU,CAAC,MAAM,CAAC;IACxB,IAAA,4BAAK,GAAE;IACP,UAAU,CAAC,mBAAmB,EAAE,CAAC,MAAM,CAAC,CAAC;CAC5C,EAAE,MAAM,CAAC,CAAC;AAEX,kCAAkC"}
@@ -1,22 +1,27 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OtherAudit = void 0;
2
4
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
5
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
7
+ r = Reflect.decorate(decorators, target, key, desc);
8
+ else
9
+ for (var i = decorators.length - 1; i >= 0; i--)
10
+ if (d = decorators[i])
11
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
12
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
13
  };
8
14
  var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
15
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
16
+ return Reflect.metadata(k, v);
10
17
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.OtherAudit = void 0;
13
18
  const decorator_validation_1 = require("@decaf-ts/decorator-validation");
14
19
  const db_decorators_1 = require("@decaf-ts/db-decorators");
15
20
  const decoration_1 = require("@decaf-ts/decoration");
16
21
  const core_1 = require("@decaf-ts/core");
17
- const BaseModel_1 = require("./BaseModel.cjs");
18
- const constants_1 = require("./constants.cjs");
19
- const index_1 = require("./../../shared/index.cjs");
22
+ const BaseModel_js_1 = require("./BaseModel.cjs");
23
+ const constants_js_1 = require("./constants.cjs");
24
+ const index_js_1 = require("./../../shared/index.cjs");
20
25
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
21
26
  function uuidSeed(m, ...args) {
22
27
  try {
@@ -26,7 +31,7 @@ function uuidSeed(m, ...args) {
26
31
  throw new db_decorators_1.InternalError(`Failed to generate deterministic uuid: ${e}`);
27
32
  }
28
33
  }
29
- let OtherAudit = class OtherAudit extends BaseModel_1.BaseModel {
34
+ let OtherAudit = class OtherAudit extends BaseModel_js_1.BaseModel {
30
35
  constructor(model) {
31
36
  super(model);
32
37
  }
@@ -35,7 +40,7 @@ exports.OtherAudit = OtherAudit;
35
40
  __decorate([
36
41
  (0, core_1.pk)(),
37
42
  (0, core_1.uuid)(uuidSeed),
38
- (0, index_1.mirror)("mirror-collection", "org-b"),
43
+ (0, index_js_1.mirror)("mirror-collection", "org-b"),
39
44
  (0, decoration_1.description)("Unique identifier of the audit record."),
40
45
  __metadata("design:type", String)
41
46
  ], OtherAudit.prototype, "id", void 0);
@@ -86,7 +91,7 @@ __decorate([
86
91
  (0, core_1.column)(),
87
92
  (0, decorator_validation_1.required)(),
88
93
  (0, db_decorators_1.readonly)(),
89
- (0, index_1.transactionId)(),
94
+ (0, index_js_1.transactionId)(),
90
95
  (0, decoration_1.description)("the transaction the audit record was created in"),
91
96
  __metadata("design:type", String)
92
97
  ], OtherAudit.prototype, "transaction", void 0);
@@ -98,7 +103,7 @@ __decorate([
98
103
  __metadata("design:type", Object)
99
104
  ], OtherAudit.prototype, "diffs", void 0);
100
105
  __decorate([
101
- (0, index_1.ownedBy)(),
106
+ (0, index_js_1.ownedBy)(),
102
107
  (0, decoration_1.description)("the owner (msp) of the audit log"),
103
108
  __metadata("design:type", String)
104
109
  ], OtherAudit.prototype, "owner", void 0);
@@ -109,10 +114,11 @@ exports.OtherAudit = OtherAudit = __decorate([
109
114
  db_decorators_1.OperationKeys.UPDATE,
110
115
  db_decorators_1.OperationKeys.DELETE,
111
116
  ]),
112
- (0, decoration_1.uses)(index_1.FabricFlavour),
113
- (0, index_1.sharedData)((0, index_1.NamespaceCollection)("decaf-namespace")),
117
+ (0, decoration_1.uses)(index_js_1.FabricFlavour),
118
+ (0, index_js_1.sharedData)((0, index_js_1.NamespaceCollection)("decaf-namespace")),
114
119
  (0, core_1.table)("audit"),
115
120
  (0, decorator_validation_1.model)(),
116
121
  __metadata("design:paramtypes", [Object])
117
122
  ], OtherAudit);
123
+ //# sourceMappingURL=OtherAudit.js.map
118
124
  //# sourceMappingURL=OtherAudit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OtherAudit.js","sourceRoot":"","sources":["OtherAudit.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG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AAK,EAAC,OAAO,CAAC;IACd,IAAA,4BAAK,GAAE;IACP,UAAU,CAAC,mBAAmB,EAAE,CAAC,MAAM,CAAC,CAAC;CAC5C,EAAE,UAAU,CAAC,CAAC;AAEf,sCAAsC"}
@@ -1,26 +1,31 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OtherBatchShared = void 0;
2
4
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
5
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
7
+ r = Reflect.decorate(decorators, target, key, desc);
8
+ else
9
+ for (var i = decorators.length - 1; i >= 0; i--)
10
+ if (d = decorators[i])
11
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
12
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
13
  };
8
14
  var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
15
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
16
+ return Reflect.metadata(k, v);
10
17
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.OtherBatchShared = void 0;
13
18
  const decorator_validation_1 = require("@decaf-ts/decorator-validation");
14
19
  const core_1 = require("@decaf-ts/core");
15
- const constants_1 = require("./constants.cjs");
20
+ const constants_js_1 = require("./constants.cjs");
16
21
  const db_decorators_1 = require("@decaf-ts/db-decorators");
17
22
  const decoration_1 = require("@decaf-ts/decoration");
18
- const BaseIdentifiedModel_1 = require("./BaseIdentifiedModel.cjs");
19
- const decorators_private_1 = require("./decorators-private.cjs");
20
- const gtin_1 = require("./gtin.cjs");
21
- const index_1 = require("./../../shared/index.cjs");
22
- const history_dec_1 = require("./history-dec.cjs");
23
- let OtherBatchShared = class OtherBatchShared extends BaseIdentifiedModel_1.BaseIdentifiedModel {
23
+ const BaseIdentifiedModel_js_1 = require("./BaseIdentifiedModel.cjs");
24
+ const decorators_private_js_1 = require("./decorators-private.cjs");
25
+ const gtin_js_1 = require("./gtin.cjs");
26
+ const index_js_1 = require("./../../shared/index.cjs");
27
+ const history_dec_js_1 = require("./history-dec.cjs");
28
+ let OtherBatchShared = class OtherBatchShared extends BaseIdentifiedModel_js_1.BaseIdentifiedModel {
24
29
  constructor(model) {
25
30
  super(model);
26
31
  this.batchRecall = false;
@@ -29,15 +34,15 @@ let OtherBatchShared = class OtherBatchShared extends BaseIdentifiedModel_1.Base
29
34
  exports.OtherBatchShared = OtherBatchShared;
30
35
  __decorate([
31
36
  (0, core_1.pk)(),
32
- (0, history_dec_1.historyDec)(),
33
- (0, decorators_private_1.audit)(OtherBatchShared),
34
- (0, index_1.mirror)("mirror-collection", "org-b"),
37
+ (0, history_dec_js_1.historyDec)(),
38
+ (0, decorators_private_js_1.audit)(OtherBatchShared),
39
+ (0, index_js_1.mirror)("mirror-collection", "org-b"),
35
40
  (0, db_decorators_1.composed)(["productCode", "batchNumber"], ":"),
36
41
  (0, decoration_1.description)("Unique identifier composed of product code and batch number."),
37
42
  __metadata("design:type", String)
38
43
  ], OtherBatchShared.prototype, "id", void 0);
39
44
  __decorate([
40
- (0, gtin_1.gtin)(),
45
+ (0, gtin_js_1.gtin)(),
41
46
  (0, db_decorators_1.readonly)()
42
47
  // @manyToOne(
43
48
  // () => Product,
@@ -53,7 +58,7 @@ __decorate([
53
58
  __decorate([
54
59
  (0, core_1.column)(),
55
60
  (0, db_decorators_1.readonly)(),
56
- (0, decorator_validation_1.pattern)(constants_1.BatchPattern),
61
+ (0, decorator_validation_1.pattern)(constants_js_1.BatchPattern),
57
62
  (0, core_1.index)([core_1.OrderDirection.ASC, core_1.OrderDirection.DSC]),
58
63
  (0, decoration_1.description)("Batch number assigned to the product."),
59
64
  (0, core_1.defaultQueryAttr)(),
@@ -61,7 +66,7 @@ __decorate([
61
66
  ], OtherBatchShared.prototype, "batchNumber", void 0);
62
67
  __decorate([
63
68
  (0, decorator_validation_1.required)(),
64
- (0, decorator_validation_1.date)(constants_1.DatePattern),
69
+ (0, decorator_validation_1.date)(constants_js_1.DatePattern),
65
70
  (0, core_1.column)(),
66
71
  (0, core_1.index)([core_1.OrderDirection.ASC, core_1.OrderDirection.DSC]),
67
72
  (0, decoration_1.description)("Date when the batch expires."),
@@ -74,7 +79,7 @@ __decorate([
74
79
  ], OtherBatchShared.prototype, "importLicenseNumber", void 0);
75
80
  __decorate([
76
81
  (0, core_1.column)(),
77
- (0, decorator_validation_1.date)(constants_1.DatePattern),
82
+ (0, decorator_validation_1.date)(constants_js_1.DatePattern),
78
83
  (0, decoration_1.description)("Date when the batch was manufactured."),
79
84
  __metadata("design:type", String)
80
85
  ], OtherBatchShared.prototype, "dateOfManufacturing", void 0);
@@ -116,12 +121,13 @@ __decorate([
116
121
  __metadata("design:type", Boolean)
117
122
  ], OtherBatchShared.prototype, "batchRecall", void 0);
118
123
  exports.OtherBatchShared = OtherBatchShared = __decorate([
119
- (0, index_1.sharedData)((0, index_1.NamespaceCollection)("decaf-namespace")),
124
+ (0, index_js_1.sharedData)((0, index_js_1.NamespaceCollection)("decaf-namespace")),
120
125
  (0, decoration_1.description)("Represents a product batch"),
121
- (0, decoration_1.uses)(index_1.FabricFlavour),
126
+ (0, decoration_1.uses)(index_js_1.FabricFlavour),
122
127
  (0, db_decorators_1.BlockOperations)([db_decorators_1.OperationKeys.DELETE]),
123
128
  (0, core_1.table)("other_batch_shared"),
124
129
  (0, decorator_validation_1.model)(),
125
130
  __metadata("design:paramtypes", [Object])
126
131
  ], OtherBatchShared);
132
+ //# sourceMappingURL=OtherBatchShared.js.map
127
133
  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AAM,GAAE;IACR,IAAA,wBAAW,EAAC,8BAA8B,CAAC;IAC3C,UAAU,CAAC,aAAa,EAAE,MAAM,CAAC;CACpC,EAAE,gBAAgB,CAAC,SAAS,EAAE,sBAAsB,EAAE,KAAK,CAAC,CAAC,CAAC;AAC/D,UAAU,CAAC;IACP,IAAA,aAAM,GAAE;IACR,IAAA,YAAK,EAAC,CAAC,qBAAc,CAAC,GAAG,EAAE,qBAAc,CAAC,GAAG,CAAC,CAAC;IAC/C,IAAA,wBAAW,EAAC,iDAAiD,CAAC;IAC9D,UAAU,CAAC,aAAa,EAAE,OAAO,CAAC;CACrC,EAAE,gBAAgB,CAAC,SAAS,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC,CAAC;AACtD,2BAAA,gBAAgB,GAAG,UAAU,CAAC;IAC1B,IAAA,qBAAU,EAAC,IAAA,8BAAmB,EAAC,iBAAiB,CAAC,CAAC;IAClD,IAAA,wBAAW,EAAC,4BAA4B,CAAC;IACzC,IAAA,iBAAI,EAAC,wBAAa,CAAC;IACnB,IAAA,+BAAe,EAAC,CAAC,6BAAa,CAAC,MAAM,CAAC,CAAC;IACvC,IAAA,YAAK,EAAC,oBAAoB,CAAC;IAC3B,IAAA,4BAAK,GAAE;IACP,UAAU,CAAC,mBAAmB,EAAE,CAAC,MAAM,CAAC,CAAC;CAC5C,EAAE,gBAAgB,CAAC,CAAC;AAErB,4CAA4C"}
@@ -1,26 +1,31 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Leaflet = void 0;
2
4
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
5
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
7
+ r = Reflect.decorate(decorators, target, key, desc);
8
+ else
9
+ for (var i = decorators.length - 1; i >= 0; i--)
10
+ if (d = decorators[i])
11
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
12
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
13
  };
8
14
  var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
15
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
16
+ return Reflect.metadata(k, v);
10
17
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Leaflet = void 0;
13
18
  const decorator_validation_1 = require("@decaf-ts/decorator-validation");
14
19
  const core_1 = require("@decaf-ts/core");
15
20
  const db_decorators_1 = require("@decaf-ts/db-decorators");
16
21
  const decoration_1 = require("@decaf-ts/decoration");
17
- const BaseIdentifiedModel_1 = require("./BaseIdentifiedModel.cjs");
18
- const index_1 = require("./../../shared/index.cjs");
19
- const decorators_private_1 = require("./decorators-private.cjs");
20
- const history_dec_1 = require("./history-dec.cjs");
21
- const gtin_1 = require("./gtin.cjs");
22
- const OtherLeafletFile_1 = require("./OtherLeafletFile.cjs");
23
- let Leaflet = class Leaflet extends BaseIdentifiedModel_1.BaseIdentifiedModel {
22
+ const BaseIdentifiedModel_js_1 = require("./BaseIdentifiedModel.cjs");
23
+ const index_js_1 = require("./../../shared/index.cjs");
24
+ const decorators_private_js_1 = require("./decorators-private.cjs");
25
+ const history_dec_js_1 = require("./history-dec.cjs");
26
+ const gtin_js_1 = require("./gtin.cjs");
27
+ const OtherLeafletFile_js_1 = require("./OtherLeafletFile.cjs");
28
+ let Leaflet = class Leaflet extends BaseIdentifiedModel_js_1.BaseIdentifiedModel {
24
29
  constructor(model) {
25
30
  super(model);
26
31
  this.leafletType = "leaflet";
@@ -40,15 +45,15 @@ let Leaflet = class Leaflet extends BaseIdentifiedModel_1.BaseIdentifiedModel {
40
45
  exports.Leaflet = Leaflet;
41
46
  __decorate([
42
47
  (0, core_1.pk)(),
43
- (0, history_dec_1.historyDec)(),
44
- (0, index_1.mirror)("mirror-collection", "org-b"),
45
- (0, decorators_private_1.audit)(Leaflet),
48
+ (0, history_dec_js_1.historyDec)(),
49
+ (0, index_js_1.mirror)("mirror-collection", "org-b"),
50
+ (0, decorators_private_js_1.audit)(Leaflet),
46
51
  (0, db_decorators_1.composed)(["productCode", "batchNumber", "leafletType", "lang", "epiMarket"], ":", ["batchNumber", "epiMarket"]),
47
52
  (0, decoration_1.description)("Unique identifier composed of product code, batch number, and language."),
48
53
  __metadata("design:type", String)
49
54
  ], Leaflet.prototype, "id", void 0);
50
55
  __decorate([
51
- (0, gtin_1.gtin)(),
56
+ (0, gtin_js_1.gtin)(),
52
57
  (0, core_1.column)(),
53
58
  (0, decorator_validation_1.required)(),
54
59
  (0, db_decorators_1.readonly)(),
@@ -90,26 +95,27 @@ __decorate([
90
95
  (0, core_1.column)(),
91
96
  (0, decorator_validation_1.required)(),
92
97
  (0, decoration_1.description)("Main XML content of the electronic leaflet."),
93
- (0, core_1.oneToOne)(() => OtherLeafletFile_1.OtherLeafletFile, { update: core_1.Cascade.CASCADE, delete: core_1.Cascade.CASCADE }, false),
98
+ (0, core_1.oneToOne)(() => OtherLeafletFile_js_1.OtherLeafletFile, { update: core_1.Cascade.CASCADE, delete: core_1.Cascade.CASCADE }, false),
94
99
  (0, decoration_1.description)("file with the xml content of the leaflet"),
95
100
  __metadata("design:type", Object)
96
101
  ], Leaflet.prototype, "xmlFileContent", void 0);
97
102
  __decorate([
98
- (0, core_1.oneToMany)(() => OtherLeafletFile_1.OtherLeafletFile, { update: core_1.Cascade.CASCADE, delete: core_1.Cascade.CASCADE }, false),
103
+ (0, core_1.oneToMany)(() => OtherLeafletFile_js_1.OtherLeafletFile, { update: core_1.Cascade.CASCADE, delete: core_1.Cascade.CASCADE }, false),
99
104
  (0, decoration_1.description)("List of additional files linked to the leaflet, such as PDFs or images."),
100
105
  __metadata("design:type", Array)
101
106
  ], Leaflet.prototype, "otherFilesContent", void 0);
102
107
  __decorate([
103
- (0, index_1.ownedBy)(),
108
+ (0, index_js_1.ownedBy)(),
104
109
  (0, decoration_1.description)("the owner (msp) of the leaflet"),
105
110
  __metadata("design:type", String)
106
111
  ], Leaflet.prototype, "owner", void 0);
107
112
  exports.Leaflet = Leaflet = __decorate([
108
113
  (0, decoration_1.description)("Represents the ePI leaflet linked to a specific product, batch, and language."),
109
- (0, decoration_1.uses)(index_1.FabricFlavour),
114
+ (0, decoration_1.uses)(index_js_1.FabricFlavour),
110
115
  (0, core_1.table)("other_leaflet"),
111
- (0, index_1.sharedData)((0, index_1.NamespaceCollection)("decaf-namespace")),
116
+ (0, index_js_1.sharedData)((0, index_js_1.NamespaceCollection)("decaf-namespace")),
112
117
  (0, decorator_validation_1.model)(),
113
118
  __metadata("design:paramtypes", [Object])
114
119
  ], Leaflet);
120
+ //# sourceMappingURL=OtherLeaflet.js.map
115
121
  //# sourceMappingURL=OtherLeaflet.js.map