@cardano-sdk/projection-typeorm 0.2.0-nightly.4 → 0.2.0-nightly.6

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 (216) hide show
  1. package/README.md +10 -1
  2. package/dist/cjs/TypeormStabilityWindowBuffer.d.ts +6 -6
  3. package/dist/cjs/TypeormStabilityWindowBuffer.d.ts.map +1 -1
  4. package/dist/cjs/TypeormStabilityWindowBuffer.js +42 -21
  5. package/dist/cjs/TypeormStabilityWindowBuffer.js.map +1 -1
  6. package/dist/cjs/createDataSource.d.ts +9 -4
  7. package/dist/cjs/createDataSource.d.ts.map +1 -1
  8. package/dist/cjs/createDataSource.js +49 -34
  9. package/dist/cjs/createDataSource.js.map +1 -1
  10. package/dist/cjs/entity/Asset.entity.d.ts +8 -0
  11. package/dist/cjs/entity/Asset.entity.d.ts.map +1 -0
  12. package/dist/cjs/entity/Asset.entity.js +40 -0
  13. package/dist/cjs/entity/Asset.entity.js.map +1 -0
  14. package/dist/cjs/entity/Block.entity.d.ts.map +1 -1
  15. package/dist/cjs/entity/Block.entity.js +3 -3
  16. package/dist/cjs/entity/Block.entity.js.map +1 -1
  17. package/dist/cjs/entity/BlockData.entity.js +1 -1
  18. package/dist/cjs/entity/BlockData.entity.js.map +1 -1
  19. package/dist/cjs/entity/Output.entity.d.ts +17 -0
  20. package/dist/cjs/entity/Output.entity.d.ts.map +1 -0
  21. package/dist/cjs/entity/Output.entity.js +72 -0
  22. package/dist/cjs/entity/Output.entity.js.map +1 -0
  23. package/dist/cjs/entity/PoolMetadata.entity.d.ts +15 -0
  24. package/dist/cjs/entity/PoolMetadata.entity.d.ts.map +1 -0
  25. package/dist/cjs/entity/PoolMetadata.entity.js +63 -0
  26. package/dist/cjs/entity/PoolMetadata.entity.js.map +1 -0
  27. package/dist/cjs/entity/Tokens.entity.d.ts +9 -0
  28. package/dist/cjs/entity/Tokens.entity.d.ts.map +1 -0
  29. package/dist/cjs/entity/Tokens.entity.js +41 -0
  30. package/dist/cjs/entity/Tokens.entity.js.map +1 -0
  31. package/dist/cjs/entity/index.d.ts +4 -0
  32. package/dist/cjs/entity/index.d.ts.map +1 -1
  33. package/dist/cjs/entity/index.js +4 -0
  34. package/dist/cjs/entity/index.js.map +1 -1
  35. package/dist/cjs/index.d.ts +6 -1
  36. package/dist/cjs/index.d.ts.map +1 -1
  37. package/dist/cjs/index.js +9 -1
  38. package/dist/cjs/index.js.map +1 -1
  39. package/dist/cjs/{util.d.ts → isRecoverableTypeormError.d.ts} +1 -1
  40. package/dist/cjs/isRecoverableTypeormError.d.ts.map +1 -0
  41. package/dist/cjs/{util.js → isRecoverableTypeormError.js} +1 -1
  42. package/dist/cjs/isRecoverableTypeormError.js.map +1 -0
  43. package/dist/cjs/operators/index.d.ts +9 -0
  44. package/dist/cjs/operators/index.d.ts.map +1 -0
  45. package/dist/cjs/operators/index.js +25 -0
  46. package/dist/cjs/operators/index.js.map +1 -0
  47. package/dist/cjs/operators/storeAssets.d.ts +3 -0
  48. package/dist/cjs/operators/storeAssets.d.ts.map +1 -0
  49. package/dist/cjs/operators/storeAssets.js +27 -0
  50. package/dist/cjs/operators/storeAssets.js.map +1 -0
  51. package/dist/cjs/operators/storeBlock.d.ts +2 -0
  52. package/dist/cjs/operators/storeBlock.d.ts.map +1 -0
  53. package/dist/cjs/operators/storeBlock.js +23 -0
  54. package/dist/cjs/operators/storeBlock.js.map +1 -0
  55. package/dist/cjs/operators/storeStakeKeys.d.ts +3 -0
  56. package/dist/cjs/operators/storeStakeKeys.d.ts.map +1 -0
  57. package/dist/cjs/operators/storeStakeKeys.js +12 -0
  58. package/dist/cjs/operators/storeStakeKeys.js.map +1 -0
  59. package/dist/cjs/operators/storeStakePoolMetadataJob.d.ts +4 -0
  60. package/dist/cjs/operators/storeStakePoolMetadataJob.d.ts.map +1 -0
  61. package/dist/cjs/operators/storeStakePoolMetadataJob.js +22 -0
  62. package/dist/cjs/operators/storeStakePoolMetadataJob.js.map +1 -0
  63. package/dist/cjs/operators/storeStakePools.d.ts +4 -0
  64. package/dist/cjs/operators/storeStakePools.d.ts.map +1 -0
  65. package/dist/cjs/{sinks/stakePools.sink.js → operators/storeStakePools.js} +13 -13
  66. package/dist/cjs/operators/storeStakePools.js.map +1 -0
  67. package/dist/cjs/operators/storeUtxo.d.ts +3 -0
  68. package/dist/cjs/operators/storeUtxo.d.ts.map +1 -0
  69. package/dist/cjs/operators/storeUtxo.js +41 -0
  70. package/dist/cjs/operators/storeUtxo.js.map +1 -0
  71. package/dist/cjs/operators/util.d.ts +7 -0
  72. package/dist/cjs/operators/util.d.ts.map +1 -0
  73. package/dist/cjs/operators/util.js +12 -0
  74. package/dist/cjs/operators/util.js.map +1 -0
  75. package/dist/cjs/operators/withTypeormTransaction.d.ts +23 -0
  76. package/dist/cjs/operators/withTypeormTransaction.d.ts.map +1 -0
  77. package/dist/cjs/operators/withTypeormTransaction.js +49 -0
  78. package/dist/cjs/operators/withTypeormTransaction.js.map +1 -0
  79. package/dist/cjs/pgBoss.d.ts +26 -0
  80. package/dist/cjs/pgBoss.d.ts.map +1 -0
  81. package/dist/cjs/pgBoss.js +169 -0
  82. package/dist/cjs/pgBoss.js.map +1 -0
  83. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  84. package/dist/esm/TypeormStabilityWindowBuffer.d.ts +6 -6
  85. package/dist/esm/TypeormStabilityWindowBuffer.d.ts.map +1 -1
  86. package/dist/esm/TypeormStabilityWindowBuffer.js +42 -21
  87. package/dist/esm/TypeormStabilityWindowBuffer.js.map +1 -1
  88. package/dist/esm/createDataSource.d.ts +9 -4
  89. package/dist/esm/createDataSource.d.ts.map +1 -1
  90. package/dist/esm/createDataSource.js +47 -10
  91. package/dist/esm/createDataSource.js.map +1 -1
  92. package/dist/esm/entity/Asset.entity.d.ts +8 -0
  93. package/dist/esm/entity/Asset.entity.d.ts.map +1 -0
  94. package/dist/esm/entity/Asset.entity.js +37 -0
  95. package/dist/esm/entity/Asset.entity.js.map +1 -0
  96. package/dist/esm/entity/Block.entity.d.ts.map +1 -1
  97. package/dist/esm/entity/Block.entity.js +3 -3
  98. package/dist/esm/entity/Block.entity.js.map +1 -1
  99. package/dist/esm/entity/BlockData.entity.js +1 -1
  100. package/dist/esm/entity/BlockData.entity.js.map +1 -1
  101. package/dist/esm/entity/Output.entity.d.ts +17 -0
  102. package/dist/esm/entity/Output.entity.d.ts.map +1 -0
  103. package/dist/esm/entity/Output.entity.js +69 -0
  104. package/dist/esm/entity/Output.entity.js.map +1 -0
  105. package/dist/esm/entity/PoolMetadata.entity.d.ts +15 -0
  106. package/dist/esm/entity/PoolMetadata.entity.d.ts.map +1 -0
  107. package/dist/esm/entity/PoolMetadata.entity.js +60 -0
  108. package/dist/esm/entity/PoolMetadata.entity.js.map +1 -0
  109. package/dist/esm/entity/Tokens.entity.d.ts +9 -0
  110. package/dist/esm/entity/Tokens.entity.d.ts.map +1 -0
  111. package/dist/esm/entity/Tokens.entity.js +38 -0
  112. package/dist/esm/entity/Tokens.entity.js.map +1 -0
  113. package/dist/esm/entity/index.d.ts +4 -0
  114. package/dist/esm/entity/index.d.ts.map +1 -1
  115. package/dist/esm/entity/index.js +4 -0
  116. package/dist/esm/entity/index.js.map +1 -1
  117. package/dist/esm/index.d.ts +6 -1
  118. package/dist/esm/index.d.ts.map +1 -1
  119. package/dist/esm/index.js +6 -1
  120. package/dist/esm/index.js.map +1 -1
  121. package/dist/esm/{util.d.ts → isRecoverableTypeormError.d.ts} +1 -1
  122. package/dist/esm/isRecoverableTypeormError.d.ts.map +1 -0
  123. package/dist/esm/{util.js → isRecoverableTypeormError.js} +1 -1
  124. package/dist/esm/isRecoverableTypeormError.js.map +1 -0
  125. package/dist/esm/operators/index.d.ts +9 -0
  126. package/dist/esm/operators/index.d.ts.map +1 -0
  127. package/dist/esm/operators/index.js +9 -0
  128. package/dist/esm/operators/index.js.map +1 -0
  129. package/dist/esm/operators/storeAssets.d.ts +3 -0
  130. package/dist/esm/operators/storeAssets.d.ts.map +1 -0
  131. package/dist/esm/operators/storeAssets.js +24 -0
  132. package/dist/esm/operators/storeAssets.js.map +1 -0
  133. package/dist/esm/operators/storeBlock.d.ts +2 -0
  134. package/dist/esm/operators/storeBlock.d.ts.map +1 -0
  135. package/dist/esm/operators/storeBlock.js +20 -0
  136. package/dist/esm/operators/storeBlock.js.map +1 -0
  137. package/dist/esm/operators/storeStakeKeys.d.ts +3 -0
  138. package/dist/esm/operators/storeStakeKeys.d.ts.map +1 -0
  139. package/dist/esm/operators/storeStakeKeys.js +9 -0
  140. package/dist/esm/operators/storeStakeKeys.js.map +1 -0
  141. package/dist/esm/operators/storeStakePoolMetadataJob.d.ts +4 -0
  142. package/dist/esm/operators/storeStakePoolMetadataJob.d.ts.map +1 -0
  143. package/dist/esm/operators/storeStakePoolMetadataJob.js +19 -0
  144. package/dist/esm/operators/storeStakePoolMetadataJob.js.map +1 -0
  145. package/dist/esm/operators/storeStakePools.d.ts +4 -0
  146. package/dist/esm/operators/storeStakePools.d.ts.map +1 -0
  147. package/dist/esm/{sinks/stakePools.sink.js → operators/storeStakePools.js} +13 -13
  148. package/dist/esm/operators/storeStakePools.js.map +1 -0
  149. package/dist/esm/operators/storeUtxo.d.ts +3 -0
  150. package/dist/esm/operators/storeUtxo.d.ts.map +1 -0
  151. package/dist/esm/operators/storeUtxo.js +38 -0
  152. package/dist/esm/operators/storeUtxo.js.map +1 -0
  153. package/dist/esm/operators/util.d.ts +7 -0
  154. package/dist/esm/operators/util.d.ts.map +1 -0
  155. package/dist/esm/operators/util.js +7 -0
  156. package/dist/esm/operators/util.js.map +1 -0
  157. package/dist/esm/operators/withTypeormTransaction.d.ts +23 -0
  158. package/dist/esm/operators/withTypeormTransaction.d.ts.map +1 -0
  159. package/dist/esm/operators/withTypeormTransaction.js +41 -0
  160. package/dist/esm/operators/withTypeormTransaction.js.map +1 -0
  161. package/dist/esm/pgBoss.d.ts +26 -0
  162. package/dist/esm/pgBoss.d.ts.map +1 -0
  163. package/dist/esm/pgBoss.js +161 -0
  164. package/dist/esm/pgBoss.js.map +1 -0
  165. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  166. package/package.json +12 -11
  167. package/dist/cjs/createSinks.d.ts +0 -19
  168. package/dist/cjs/createSinks.d.ts.map +0 -1
  169. package/dist/cjs/createSinks.js +0 -101
  170. package/dist/cjs/createSinks.js.map +0 -1
  171. package/dist/cjs/sinks/index.d.ts +0 -3
  172. package/dist/cjs/sinks/index.d.ts.map +0 -1
  173. package/dist/cjs/sinks/index.js +0 -8
  174. package/dist/cjs/sinks/index.js.map +0 -1
  175. package/dist/cjs/sinks/stakeKeys.sink.d.ts +0 -4
  176. package/dist/cjs/sinks/stakeKeys.sink.d.ts.map +0 -1
  177. package/dist/cjs/sinks/stakeKeys.sink.js +0 -15
  178. package/dist/cjs/sinks/stakeKeys.sink.js.map +0 -1
  179. package/dist/cjs/sinks/stakePools.sink.d.ts +0 -4
  180. package/dist/cjs/sinks/stakePools.sink.d.ts.map +0 -1
  181. package/dist/cjs/sinks/stakePools.sink.js.map +0 -1
  182. package/dist/cjs/sinks/util.d.ts +0 -5
  183. package/dist/cjs/sinks/util.d.ts.map +0 -1
  184. package/dist/cjs/sinks/util.js +0 -8
  185. package/dist/cjs/sinks/util.js.map +0 -1
  186. package/dist/cjs/types.d.ts +0 -16
  187. package/dist/cjs/types.d.ts.map +0 -1
  188. package/dist/cjs/types.js +0 -3
  189. package/dist/cjs/types.js.map +0 -1
  190. package/dist/cjs/util.d.ts.map +0 -1
  191. package/dist/cjs/util.js.map +0 -1
  192. package/dist/esm/createSinks.d.ts +0 -19
  193. package/dist/esm/createSinks.d.ts.map +0 -1
  194. package/dist/esm/createSinks.js +0 -70
  195. package/dist/esm/createSinks.js.map +0 -1
  196. package/dist/esm/sinks/index.d.ts +0 -3
  197. package/dist/esm/sinks/index.d.ts.map +0 -1
  198. package/dist/esm/sinks/index.js +0 -3
  199. package/dist/esm/sinks/index.js.map +0 -1
  200. package/dist/esm/sinks/stakeKeys.sink.d.ts +0 -4
  201. package/dist/esm/sinks/stakeKeys.sink.d.ts.map +0 -1
  202. package/dist/esm/sinks/stakeKeys.sink.js +0 -12
  203. package/dist/esm/sinks/stakeKeys.sink.js.map +0 -1
  204. package/dist/esm/sinks/stakePools.sink.d.ts +0 -4
  205. package/dist/esm/sinks/stakePools.sink.d.ts.map +0 -1
  206. package/dist/esm/sinks/stakePools.sink.js.map +0 -1
  207. package/dist/esm/sinks/util.d.ts +0 -5
  208. package/dist/esm/sinks/util.d.ts.map +0 -1
  209. package/dist/esm/sinks/util.js +0 -4
  210. package/dist/esm/sinks/util.js.map +0 -1
  211. package/dist/esm/types.d.ts +0 -16
  212. package/dist/esm/types.d.ts.map +0 -1
  213. package/dist/esm/types.js +0 -2
  214. package/dist/esm/types.js.map +0 -1
  215. package/dist/esm/util.d.ts.map +0 -1
  216. package/dist/esm/util.js.map +0 -1
@@ -0,0 +1,60 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ 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;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { Column, Entity, Index, JoinColumn, ManyToOne, OneToOne, PrimaryGeneratedColumn } from 'typeorm';
11
+ import { DeleteCascadeRelationOptions } from './util';
12
+ import { PoolRegistrationEntity } from './PoolRegistration.entity';
13
+ import { StakePoolEntity } from './StakePool.entity';
14
+ let PoolMetadataEntity = class PoolMetadataEntity {
15
+ };
16
+ __decorate([
17
+ PrimaryGeneratedColumn(),
18
+ __metadata("design:type", Number)
19
+ ], PoolMetadataEntity.prototype, "id", void 0);
20
+ __decorate([
21
+ Column(),
22
+ Index(),
23
+ __metadata("design:type", String)
24
+ ], PoolMetadataEntity.prototype, "ticker", void 0);
25
+ __decorate([
26
+ Column(),
27
+ Index(),
28
+ __metadata("design:type", String)
29
+ ], PoolMetadataEntity.prototype, "name", void 0);
30
+ __decorate([
31
+ Column(),
32
+ __metadata("design:type", String)
33
+ ], PoolMetadataEntity.prototype, "description", void 0);
34
+ __decorate([
35
+ Column(),
36
+ __metadata("design:type", String)
37
+ ], PoolMetadataEntity.prototype, "homepage", void 0);
38
+ __decorate([
39
+ Column(),
40
+ __metadata("design:type", String)
41
+ ], PoolMetadataEntity.prototype, "hash", void 0);
42
+ __decorate([
43
+ Column('jsonb', { nullable: true }),
44
+ __metadata("design:type", Object)
45
+ ], PoolMetadataEntity.prototype, "ext", void 0);
46
+ __decorate([
47
+ JoinColumn({ referencedColumnName: 'id' }),
48
+ ManyToOne(() => StakePoolEntity),
49
+ __metadata("design:type", StakePoolEntity)
50
+ ], PoolMetadataEntity.prototype, "stakePool", void 0);
51
+ __decorate([
52
+ JoinColumn(),
53
+ OneToOne(() => PoolRegistrationEntity, DeleteCascadeRelationOptions),
54
+ __metadata("design:type", PoolRegistrationEntity)
55
+ ], PoolMetadataEntity.prototype, "poolUpdate", void 0);
56
+ PoolMetadataEntity = __decorate([
57
+ Entity()
58
+ ], PoolMetadataEntity);
59
+ export { PoolMetadataEntity };
60
+ //# sourceMappingURL=PoolMetadata.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PoolMetadata.entity.js","sourceRoot":"","sources":["../../../src/entity/PoolMetadata.entity.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACzG,OAAO,EAAE,4BAA4B,EAAE,MAAM,QAAQ,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG9C,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAuB9B,CAAA;AAtBC;IAAC,sBAAsB,EAAE;;8CACb;AACZ;IAAC,MAAM,EAAE;IACR,KAAK,EAAE;;kDACQ;AAChB;IAAC,MAAM,EAAE;IACR,KAAK,EAAE;;gDACM;AACd;IAAC,MAAM,EAAE;;uDACY;AACrB;IAAC,MAAM,EAAE;;oDACS;AAClB;IAAC,MAAM,EAAE;;gDACK;AACd;IAAC,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACuB;AAC3D;IAAC,UAAU,CAAC,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;IAC1C,SAAS,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC;8BACrB,eAAe;qDAAC;AAC5B;IAAC,UAAU,EAAE;IACZ,QAAQ,CAAC,GAAG,EAAE,CAAC,sBAAsB,EAAE,4BAA4B,CAAC;8BACxD,sBAAsB;sDAAC;AAtBzB,kBAAkB;IAD9B,MAAM,EAAE;GACI,kBAAkB,CAuB9B;SAvBY,kBAAkB"}
@@ -0,0 +1,9 @@
1
+ import { AssetEntity } from './Asset.entity';
2
+ import { OutputEntity } from './Output.entity';
3
+ export declare class TokensEntity {
4
+ id?: number;
5
+ asset?: AssetEntity;
6
+ output?: OutputEntity;
7
+ quantity?: bigint;
8
+ }
9
+ //# sourceMappingURL=Tokens.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tokens.entity.d.ts","sourceRoot":"","sources":["../../../src/entity/Tokens.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBACa,YAAY;IAEvB,EAAE,CAAC,EAAE,MAAM,CAAC;IAGZ,KAAK,CAAC,EAAE,WAAW,CAAC;IAGpB,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,38 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ 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;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { AssetEntity } from './Asset.entity';
11
+ import { BigIntColumnOptions, DeleteCascadeRelationOptions } from './util';
12
+ import { Column, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn } from 'typeorm';
13
+ import { OutputEntity } from './Output.entity';
14
+ let TokensEntity = class TokensEntity {
15
+ };
16
+ __decorate([
17
+ PrimaryGeneratedColumn(),
18
+ __metadata("design:type", Number)
19
+ ], TokensEntity.prototype, "id", void 0);
20
+ __decorate([
21
+ JoinColumn(),
22
+ ManyToOne(() => AssetEntity, DeleteCascadeRelationOptions),
23
+ __metadata("design:type", AssetEntity)
24
+ ], TokensEntity.prototype, "asset", void 0);
25
+ __decorate([
26
+ JoinColumn(),
27
+ ManyToOne(() => OutputEntity, (output) => output.tokens, DeleteCascadeRelationOptions),
28
+ __metadata("design:type", OutputEntity)
29
+ ], TokensEntity.prototype, "output", void 0);
30
+ __decorate([
31
+ Column(BigIntColumnOptions),
32
+ __metadata("design:type", BigInt)
33
+ ], TokensEntity.prototype, "quantity", void 0);
34
+ TokensEntity = __decorate([
35
+ Entity()
36
+ ], TokensEntity);
37
+ export { TokensEntity };
38
+ //# sourceMappingURL=Tokens.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tokens.entity.js","sourceRoot":"","sources":["../../../src/entity/Tokens.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,4BAA4B,EAAE,MAAM,QAAQ,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGxC,IAAM,YAAY,GAAlB,MAAM,YAAY;CAWxB,CAAA;AAVC;IAAC,sBAAsB,EAAE;;wCACb;AACZ;IAAC,UAAU,EAAE;IACZ,SAAS,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,4BAA4B,CAAC;8BACnD,WAAW;2CAAC;AACpB;IAAC,UAAU,EAAE;IACZ,SAAS,CAAC,GAAG,EAAE,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,4BAA4B,CAAC;8BAC9E,YAAY;4CAAC;AACtB;IAAC,MAAM,CAAC,mBAAmB,CAAC;;8CACV;AAVP,YAAY;IADxB,MAAM,EAAE;GACI,YAAY,CAWxB;SAXY,YAAY"}
@@ -4,4 +4,8 @@ export * from './StakeKey.entity';
4
4
  export * from './StakePool.entity';
5
5
  export * from './PoolRetirement.entity';
6
6
  export * from './PoolRegistration.entity';
7
+ export * from './PoolMetadata.entity';
8
+ export * from './Asset.entity';
9
+ export * from './Tokens.entity';
10
+ export * from './Output.entity';
7
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
@@ -4,4 +4,8 @@ export * from './StakeKey.entity';
4
4
  export * from './StakePool.entity';
5
5
  export * from './PoolRetirement.entity';
6
6
  export * from './PoolRegistration.entity';
7
+ export * from './PoolMetadata.entity';
8
+ export * from './Asset.entity';
9
+ export * from './Tokens.entity';
10
+ export * from './Output.entity';
7
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
@@ -1,4 +1,9 @@
1
- export * from './createSinks';
1
+ import 'reflect-metadata';
2
+ export * from './operators/withTypeormTransaction';
2
3
  export * from './createDataSource';
3
4
  export * from './entity';
5
+ export * from './operators';
6
+ export * from './TypeormStabilityWindowBuffer';
7
+ export * from './isRecoverableTypeormError';
8
+ export { BossDb, STAKE_POOL_METADATA_QUEUE, StakePoolMetadataJob as StakePoolMetadataTask } from './pgBoss';
4
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,yBAAyB,EAAE,oBAAoB,IAAI,qBAAqB,EAAE,MAAM,UAAU,CAAC"}
package/dist/esm/index.js CHANGED
@@ -1,4 +1,9 @@
1
- export * from './createSinks';
1
+ import 'reflect-metadata';
2
+ export * from './operators/withTypeormTransaction';
2
3
  export * from './createDataSource';
3
4
  export * from './entity';
5
+ export * from './operators';
6
+ export * from './TypeormStabilityWindowBuffer';
7
+ export * from './isRecoverableTypeormError';
8
+ export { BossDb, STAKE_POOL_METADATA_QUEUE } from './pgBoss';
4
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,yBAAyB,EAAiD,MAAM,UAAU,CAAC"}
@@ -1,2 +1,2 @@
1
1
  export declare const isRecoverableTypeormError: (error: unknown) => boolean;
2
- //# sourceMappingURL=util.d.ts.map
2
+ //# sourceMappingURL=isRecoverableTypeormError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isRecoverableTypeormError.d.ts","sourceRoot":"","sources":["../../src/isRecoverableTypeormError.ts"],"names":[],"mappings":"AAuCA,eAAO,MAAM,yBAAyB,UAAW,OAAO,YACS,CAAC"}
@@ -18,4 +18,4 @@ const recoverableErrorClasses = [
18
18
  TransactionNotStartedError
19
19
  ];
20
20
  export const isRecoverableTypeormError = (error) => recoverableErrorClasses.some((Class) => error instanceof Class);
21
- //# sourceMappingURL=util.js.map
21
+ //# sourceMappingURL=isRecoverableTypeormError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isRecoverableTypeormError.js","sourceRoot":"","sources":["../../src/isRecoverableTypeormError.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,EAC/B,kCAAkC,EAClC,8BAA8B,EAC9B,uCAAuC,EACvC,uBAAuB,EACvB,uBAAuB,EACvB,8BAA8B,EAC9B,uBAAuB,EACvB,iCAAiC,EACjC,gCAAgC,EAChC,4BAA4B,EAC5B,uCAAuC,EACvC,+BAA+B,EAC/B,uCAAuC,EACvC,8BAA8B,EAC9B,0BAA0B,EAC3B,MAAM,SAAS,CAAC;AAGjB,MAAM,uBAAuB,GAAG;IAC9B,+BAA+B;IAC/B,kCAAkC;IAClC,8BAA8B;IAC9B,uCAAuC;IACvC,uBAAuB;IACvB,uBAAuB;IACvB,8BAA8B;IAC9B,uBAAuB;IACvB,iCAAiC;IACjC,gCAAgC;IAChC,4BAA4B;IAC5B,uCAAuC;IACvC,+BAA+B;IAC/B,uCAAuC;IACvC,8BAA8B;IAC9B,0BAA0B;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAc,EAAE,EAAE,CAC1D,uBAAuB,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ export * from './storeStakeKeys';
2
+ export * from './storeStakePools';
3
+ export * from './storeStakePoolMetadataJob';
4
+ export * from './withTypeormTransaction';
5
+ export * from './storeBlock';
6
+ export * from './storeAssets';
7
+ export * from './storeUtxo';
8
+ export * from './util';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operators/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,9 @@
1
+ export * from './storeStakeKeys';
2
+ export * from './storeStakePools';
3
+ export * from './storeStakePoolMetadataJob';
4
+ export * from './withTypeormTransaction';
5
+ export * from './storeBlock';
6
+ export * from './storeAssets';
7
+ export * from './storeUtxo';
8
+ export * from './util';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operators/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Mappers } from '@cardano-sdk/projection';
2
+ export declare const storeAssets: <SourceExtraRollForwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & import("./withTypeormTransaction").WithTypeormContext & Mappers.WithMint, SourceExtraRollBackwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & import("./withTypeormTransaction").WithTypeormContext & Mappers.WithMint & import("@cardano-sdk/projection").WithBlock>() => import("@cardano-sdk/projection").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, {}, {}>;
3
+ //# sourceMappingURL=storeAssets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storeAssets.d.ts","sourceRoot":"","sources":["../../../src/operators/storeAssets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGlD,eAAO,MAAM,WAAW,wsBAoBvB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { AssetEntity } from '../entity/Asset.entity';
2
+ import { ChainSyncEventType } from '@cardano-sdk/core';
3
+ import { typeormOperator } from './util';
4
+ export const storeAssets = typeormOperator(async ({ mint, block: { header }, eventType, queryRunner }) => {
5
+ const repository = queryRunner.manager.getRepository(AssetEntity);
6
+ if (eventType === ChainSyncEventType.RollForward) {
7
+ for (const { assetId, quantity } of mint) {
8
+ const storedAsset = await repository.findOne({ select: { supply: true }, where: { id: assetId } });
9
+ await (storedAsset
10
+ ? repository.increment({ id: assetId }, 'supply', quantity.toString())
11
+ : repository.insert({
12
+ firstMintBlock: { slot: header.slot },
13
+ id: assetId,
14
+ supply: quantity
15
+ }));
16
+ }
17
+ }
18
+ else {
19
+ for (const { assetId, quantity } of mint) {
20
+ await repository.increment({ id: assetId }, 'supply', (-quantity).toString());
21
+ }
22
+ }
23
+ });
24
+ //# sourceMappingURL=storeAssets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storeAssets.js","sourceRoot":"","sources":["../../../src/operators/storeAssets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEzC,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CACxC,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,EAAE;IAC5D,MAAM,UAAU,GAAG,WAAW,CAAC,OAAO,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAClE,IAAI,SAAS,KAAK,kBAAkB,CAAC,WAAW,EAAE;QAChD,KAAK,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,IAAI,EAAE;YACxC,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;YACnG,MAAM,CAAC,WAAW;gBAChB,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC;gBACtE,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC;oBAChB,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE;oBACrC,EAAE,EAAE,OAAO;oBACX,MAAM,EAAE,QAAQ;iBACjB,CAAC,CAAC,CAAC;SACT;KACF;SAAM;QACL,KAAK,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,IAAI,EAAE;YACxC,MAAM,UAAU,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;SAC/E;KACF;AACH,CAAC,CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const storeBlock: <SourceExtraRollForwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & import("./withTypeormTransaction").WithTypeormContext, SourceExtraRollBackwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & import("./withTypeormTransaction").WithTypeormContext & import("@cardano-sdk/projection").WithBlock>() => import("@cardano-sdk/projection").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, {}, {}>;
2
+ //# sourceMappingURL=storeBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storeBlock.d.ts","sourceRoot":"","sources":["../../../src/operators/storeBlock.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU,kqBAcrB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { BlockEntity } from '../entity';
2
+ import { ChainSyncEventType } from '@cardano-sdk/core';
3
+ import { typeormOperator } from './util';
4
+ export const storeBlock = typeormOperator(async (evt) => {
5
+ const repository = evt.queryRunner.manager.getRepository(BlockEntity);
6
+ if (evt.eventType === ChainSyncEventType.RollForward) {
7
+ const blockEntity = repository.create({
8
+ hash: evt.block.header.hash,
9
+ height: evt.block.header.blockNo,
10
+ slot: evt.block.header.slot
11
+ });
12
+ await repository.insert(blockEntity);
13
+ }
14
+ else {
15
+ await repository.delete({
16
+ slot: evt.block.header.slot
17
+ });
18
+ }
19
+ });
20
+ //# sourceMappingURL=storeBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storeBlock.js","sourceRoot":"","sources":["../../../src/operators/storeBlock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEzC,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACtD,MAAM,UAAU,GAAG,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IACtE,IAAI,GAAG,CAAC,SAAS,KAAK,kBAAkB,CAAC,WAAW,EAAE;QACpD,MAAM,WAAW,GAAG,UAAU,CAAC,MAAM,CAAC;YACpC,IAAI,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI;YAC3B,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO;YAChC,IAAI,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI;SAC5B,CAAC,CAAC;QACH,MAAM,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;KACtC;SAAM;QACL,MAAM,UAAU,CAAC,MAAM,CAAC;YACtB,IAAI,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI;SAC5B,CAAC,CAAC;KACJ;AACH,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Mappers } from '@cardano-sdk/projection';
2
+ export declare const storeStakeKeys: <SourceExtraRollForwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & import("./withTypeormTransaction").WithTypeormContext & Mappers.WithStakeKeys, SourceExtraRollBackwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & import("./withTypeormTransaction").WithTypeormContext & Mappers.WithStakeKeys & import("@cardano-sdk/projection").WithBlock>() => import("@cardano-sdk/projection").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, {}, {}>;
3
+ //# sourceMappingURL=storeStakeKeys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storeStakeKeys.d.ts","sourceRoot":"","sources":["../../../src/operators/storeStakeKeys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIlD,eAAO,MAAM,cAAc,ktBAO1B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { StakeKeyEntity } from '../entity/StakeKey.entity';
2
+ import { typeormOperator } from './util';
3
+ export const storeStakeKeys = typeormOperator(async ({ queryRunner, stakeKeys: { insert, del } }) => {
4
+ const repository = queryRunner.manager.getRepository(StakeKeyEntity);
5
+ const createAll = insert.length > 0 ? repository.insert(insert.map((hash) => ({ hash }))) : Promise.resolve();
6
+ const deleteAll = del.length > 0 ? repository.delete(del) : Promise.resolve();
7
+ return Promise.all([createAll, deleteAll]);
8
+ });
9
+ //# sourceMappingURL=storeStakeKeys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storeStakeKeys.js","sourceRoot":"","sources":["../../../src/operators/storeStakeKeys.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEzC,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAC3C,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE;IACpD,MAAM,UAAU,GAAG,WAAW,CAAC,OAAO,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;IACrE,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;IAC9G,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;IAC9E,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;AAC7C,CAAC,CACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Mappers } from '@cardano-sdk/projection';
2
+ import { WithPgBoss } from './withTypeormTransaction';
3
+ export declare const storeStakePoolMetadataJob: <SourceExtraRollForwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & import("./withTypeormTransaction").WithTypeormContext & Mappers.WithStakePools & WithPgBoss, SourceExtraRollBackwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & import("./withTypeormTransaction").WithTypeormContext & Mappers.WithStakePools & WithPgBoss & import("@cardano-sdk/projection").WithBlock>() => import("@cardano-sdk/projection").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, {}, {}>;
4
+ //# sourceMappingURL=storeStakePoolMetadataJob.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storeStakePoolMetadataJob.d.ts","sourceRoot":"","sources":["../../../src/operators/storeStakePoolMetadataJob.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAGtD,eAAO,MAAM,yBAAyB,8uBAmBrC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { ChainSyncEventType } from '@cardano-sdk/core';
2
+ import { STAKE_POOL_METADATA_QUEUE } from '../pgBoss';
3
+ import { certificatePointerToId, typeormOperator } from './util';
4
+ export const storeStakePoolMetadataJob = typeormOperator(async ({ eventType, stakePools, pgBoss, block: { header } }) => {
5
+ if (eventType === ChainSyncEventType.RollBackward) {
6
+ return;
7
+ }
8
+ const tasks = stakePools.updates
9
+ .filter(({ poolParameters: { metadataJson } }) => !!metadataJson)
10
+ .map(({ source, poolParameters: { id, metadataJson } }) => ({
11
+ metadataJson: metadataJson,
12
+ poolId: id,
13
+ poolRegistrationId: certificatePointerToId(source).toString()
14
+ }));
15
+ for (const task of tasks) {
16
+ await pgBoss.send(STAKE_POOL_METADATA_QUEUE, task, { slot: header.slot });
17
+ }
18
+ });
19
+ //# sourceMappingURL=storeStakePoolMetadataJob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storeStakePoolMetadataJob.js","sourceRoot":"","sources":["../../../src/operators/storeStakePoolMetadataJob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,yBAAyB,EAAwB,MAAM,WAAW,CAAC;AAE5E,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEjE,MAAM,CAAC,MAAM,yBAAyB,GAAG,eAAe,CACtD,KAAK,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE;IAC7D,IAAI,SAAS,KAAK,kBAAkB,CAAC,YAAY,EAAE;QAEjD,OAAO;KACR;IACD,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO;SAC7B,MAAM,CAAC,CAAC,EAAE,cAAc,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC;SAChE,GAAG,CACF,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAwB,EAAE,CAAC,CAAC;QAC3E,YAAY,EAAE,YAAa;QAC3B,MAAM,EAAE,EAAE;QACV,kBAAkB,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE;KAC9D,CAAC,CACH,CAAC;IACJ,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;QACxB,MAAM,MAAM,CAAC,IAAI,CAAC,yBAAyB,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;KAC3E;AACH,CAAC,CACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Mappers } from '@cardano-sdk/projection';
2
+ import { WithTypeormContext } from './withTypeormTransaction';
3
+ export declare const storeStakePools: <SourceExtraRollForwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & WithTypeormContext & Mappers.WithStakePools, SourceExtraRollBackwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & WithTypeormContext & Mappers.WithStakePools & import("@cardano-sdk/projection").WithBlock>() => import("@cardano-sdk/projection").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, {}, {}>;
4
+ //# sourceMappingURL=storeStakePools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storeStakePools.d.ts","sourceRoot":"","sources":["../../../src/operators/storeStakePools.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAmB,MAAM,yBAAyB,CAAC;AAQnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAuS9D,eAAO,MAAM,eAAe,8oBAE1B,CAAC"}
@@ -1,8 +1,7 @@
1
1
  import { Cardano, ChainSyncEventType, epochSlotsCalc } from '@cardano-sdk/core';
2
2
  import { In, Not } from 'typeorm';
3
- import { MaxCertificatePointerIdCertificateIndex as MaxCertificatePointerIdCertIndex, MaxCertificatePointerIdTxIndex, certificatePointerToId } from './util';
3
+ import { MaxCertificatePointerIdCertificateIndex as MaxCertificatePointerIdCertIndex, MaxCertificatePointerIdTxIndex, certificatePointerToId, typeormOperator } from './util';
4
4
  import { PoolRegistrationEntity, PoolRetirementEntity, StakePoolEntity } from '../entity';
5
- import { from } from 'rxjs';
6
5
  import omit from 'lodash/omit';
7
6
  const insertMissingStakePools = async ({ stakePools: { updates }, queryRunner }) => {
8
7
  if (updates.length === 0)
@@ -16,14 +15,16 @@ const insertMissingStakePools = async ({ stakePools: { updates }, queryRunner })
16
15
  .filter((update) => !existingStakePoolEntities.some((existingEntity) => existingEntity.id === update.poolParameters.id))
17
16
  .map(({ poolParameters: { id } }) => stakePoolsRepository.create({ id, status: Cardano.StakePoolStatus.Activating })));
18
17
  };
19
- const insertPoolUpdates = async ({ stakePools: { updates }, queryRunner, blockEntity }) => {
18
+ const insertPoolUpdates = async ({ block: { header }, stakePools: { updates }, queryRunner }) => {
20
19
  if (updates.length === 0)
21
20
  return;
22
21
  const poolUpdatesRepository = queryRunner.manager.getRepository(PoolRegistrationEntity);
23
22
  const poolUpdateEntities = updates.map(({ poolParameters, source }) => poolUpdatesRepository.create({
24
23
  id: certificatePointerToId(source),
25
24
  ...omit(poolParameters, ['id', 'metadataJson']),
26
- block: blockEntity,
25
+ block: {
26
+ slot: header.slot
27
+ },
27
28
  marginPercent: poolParameters.margin.numerator / poolParameters.margin.denominator,
28
29
  metadataHash: poolParameters.metadataJson?.hash,
29
30
  metadataUrl: poolParameters.metadataJson?.url,
@@ -33,12 +34,14 @@ const insertPoolUpdates = async ({ stakePools: { updates }, queryRunner, blockEn
33
34
  }));
34
35
  await poolUpdatesRepository.insert(poolUpdateEntities);
35
36
  };
36
- const insertPoolRetirements = async ({ stakePools: { retirements }, queryRunner, blockEntity }) => {
37
+ const insertPoolRetirements = async ({ stakePools: { retirements }, queryRunner, block: { header } }) => {
37
38
  if (retirements.length === 0)
38
39
  return;
39
40
  const poolRetirementsRepository = queryRunner.manager.getRepository(PoolRetirementEntity);
40
41
  const poolRetirementEntities = retirements.map(({ epoch, poolId, source }) => poolRetirementsRepository.create({
41
- block: blockEntity,
42
+ block: {
43
+ slot: header.slot
44
+ },
42
45
  id: certificatePointerToId(source),
43
46
  retireAtEpoch: epoch,
44
47
  stakePool: { id: poolId }
@@ -209,10 +212,7 @@ const rollBackward = async (evt) => {
209
212
  await Promise.all([undoActivateOnRollover(evt), undoRetireOnRollover(evt)]);
210
213
  await undoUpdateLatestCertificatesAndDeletePoolsWithZeroRegistrations(evt);
211
214
  };
212
- export const stakePools = {
213
- entities: [StakePoolEntity, PoolRegistrationEntity, PoolRetirementEntity],
214
- sink(evt) {
215
- return from(evt.eventType === ChainSyncEventType.RollForward ? rollForward(evt) : rollBackward(evt));
216
- }
217
- };
218
- //# sourceMappingURL=stakePools.sink.js.map
215
+ export const storeStakePools = typeormOperator(async (evt) => {
216
+ await (evt.eventType === ChainSyncEventType.RollForward ? rollForward(evt) : rollBackward(evt));
217
+ });
218
+ //# sourceMappingURL=storeStakePools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storeStakePools.js","sourceRoot":"","sources":["../../../src/operators/storeStakePools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAc,cAAc,EAAE,MAAM,mB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AC,CAAC;IACxE,MAAM,wBAAwB,CAAC,GAAG,CAAC,CAAC;IACpC,MAAM,iBAAiB,CAAC,GAAG,CAAC,CAAC;AAC/B,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,KAAK,EAAE,GAAU,EAAE,EAAE;IAExC,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC5E,MAAM,+DAA+D,CAAC,GAAG,CAAC,CAAC;AAC7E,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAyB,KAAK,EAAE,GAAG,EAAE,EAAE;IACnF,MAAM,CAAC,GAAG,CAAC,SAAS,KAAK,kBAAkB,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;AAClG,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Mappers } from '@cardano-sdk/projection';
2
+ export declare const storeUtxo: <SourceExtraRollForwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & import("./withTypeormTransaction").WithTypeormContext & Mappers.WithUtxo, SourceExtraRollBackwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & import("./withTypeormTransaction").WithTypeormContext & Mappers.WithUtxo & import("@cardano-sdk/projection").WithBlock>() => import("@cardano-sdk/projection").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, {}, {}>;
3
+ //# sourceMappingURL=storeUtxo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storeUtxo.d.ts","sourceRoot":"","sources":["../../../src/operators/storeUtxo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIlD,eAAO,MAAM,SAAS,wsBAoDrB,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { ChainSyncEventType } from '@cardano-sdk/core';
2
+ import { OutputEntity, TokensEntity } from '../entity';
3
+ import { typeormOperator } from './util';
4
+ export const storeUtxo = typeormOperator(async ({ utxo: { consumed, produced }, block: { header }, eventType, queryRunner }) => {
5
+ const utxoRepository = queryRunner.manager.getRepository(OutputEntity);
6
+ const tokensRepository = queryRunner.manager.getRepository(TokensEntity);
7
+ if (eventType === ChainSyncEventType.RollForward) {
8
+ if (produced.length > 0) {
9
+ const { identifiers } = await utxoRepository.insert(produced.map(([{ index, txId }, { scriptReference, address, value, datum, datumHash }]) => ({
10
+ address,
11
+ block: { slot: header.slot },
12
+ coins: value.coins,
13
+ datum,
14
+ datumHash,
15
+ outputIndex: index,
16
+ scriptReference,
17
+ txId
18
+ })));
19
+ const tokens = produced.flatMap(([_, { value: { assets } }], producedIndex) => [...(assets?.entries() || [])].map(([assetId, quantity]) => ({
20
+ asset: { id: assetId },
21
+ output: identifiers[producedIndex],
22
+ quantity
23
+ })));
24
+ if (tokens.length > 0) {
25
+ await tokensRepository.insert(tokens);
26
+ }
27
+ }
28
+ for (const { index, txId } of consumed) {
29
+ await utxoRepository.update({ outputIndex: index, txId }, { consumedAtSlot: header.slot });
30
+ }
31
+ }
32
+ else {
33
+ for (const { index, txId } of consumed) {
34
+ await utxoRepository.update({ outputIndex: index, txId }, { consumedAtSlot: null });
35
+ }
36
+ }
37
+ });
38
+ //# sourceMappingURL=storeUtxo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storeUtxo.js","sourceRoot":"","sources":["../../../src/operators/storeUtxo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,E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AAK,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE;gBACtB,MAAM,EAAE,WAAW,CAAC,aAAa,CAAC;gBAClC,QAAQ;aACT,CAAC,CACH,CACJ,CAAC;YACF,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;gBACrB,MAAM,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;aACvC;SACF;QACD,KAAK,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,QAAQ,EAAE;YACtC,MAAM,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;SAC5F;KACF;SAAM;QAEL,KAAK,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,QAAQ,EAAE;YACtC,MAAM,cAAc,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC;SACrF;KACF;AACH,CAAC,CACF,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Mappers, ProjectionEvent } from '@cardano-sdk/projection';
2
+ import { WithTypeormContext } from './withTypeormTransaction';
3
+ export declare const certificatePointerToId: ({ slot, certIndex, txIndex }: Mappers.CertificatePointer) => bigint;
4
+ export declare const MaxCertificatePointerIdTxIndex = 99999;
5
+ export declare const MaxCertificatePointerIdCertificateIndex = 9999;
6
+ export declare const typeormOperator: <PropsIn = {}, PropsOut extends {} = {}>(op: (evt: ProjectionEvent<WithTypeormContext & PropsIn>) => Promise<void | PropsOut>) => <SourceExtraRollForwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & WithTypeormContext & PropsIn, SourceExtraRollBackwardPropsIn extends import("@cardano-sdk/projection").WithNetworkInfo & import("@cardano-sdk/projection").WithEpochNo & import("@cardano-sdk/projection").WithEpochBoundary & WithTypeormContext & PropsIn & import("@cardano-sdk/projection").WithBlock>() => import("@cardano-sdk/projection").ExtChainSyncOperator<SourceExtraRollForwardPropsIn, SourceExtraRollBackwardPropsIn, PropsOut, PropsOut>;
7
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/operators/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,OAAO,EAAE,eAAe,EAA4B,MAAM,yBAAyB,CAAC;AAClH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAO9D,eAAO,MAAM,sBAAsB,iCAAkC,QAAQ,kBAAkB,WACf,CAAC;AAEjF,eAAO,MAAM,8BAA8B,QAAS,CAAC;AACrD,eAAO,MAAM,uCAAuC,OAAO,CAAC;AAE5D,eAAO,MAAM,eAAe,8vBAKzB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { unifiedProjectorOperator } from '@cardano-sdk/projection';
2
+ import { from } from 'rxjs';
3
+ export const certificatePointerToId = ({ slot, certIndex, txIndex }) => BigInt(slot) * 10000000000n + BigInt(txIndex) * 10000n + BigInt(certIndex);
4
+ export const MaxCertificatePointerIdTxIndex = 99999;
5
+ export const MaxCertificatePointerIdCertificateIndex = 9999;
6
+ export const typeormOperator = (op) => unifiedProjectorOperator((evt) => from(op(evt).then((result) => (typeof result === 'object' ? { ...evt, ...result } : evt))));
7
+ //# sourceMappingURL=util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/operators/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiD,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAElH,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAM5B,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAA8B,EAAE,EAAE,CACjG,MAAM,CAAC,IAAI,CAAC,GAAG,YAAe,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,MAAO,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAEjF,MAAM,CAAC,MAAM,8BAA8B,GAAG,KAAM,CAAC;AACrD,MAAM,CAAC,MAAM,uCAAuC,GAAG,IAAI,CAAC;AAE5D,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,EAAoF,EACpF,EAAE,CACF,wBAAwB,CAA+D,CAAC,GAAG,EAAE,EAAE,CAC7F,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAC3F,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { DataSource, QueryRunner } from 'typeorm';
2
+ import { Observable, Subject } from 'rxjs';
3
+ import { PgBossExtension } from '../pgBoss';
4
+ import { ProjectionEvent, UnifiedExtChainSyncOperator } from '@cardano-sdk/projection';
5
+ import { WithLogger } from '@cardano-sdk/util';
6
+ export interface WithTypeormTransactionDependencies extends WithLogger {
7
+ dataSource$: Observable<DataSource>;
8
+ }
9
+ export interface WithTypeormContext {
10
+ queryRunner: QueryRunner;
11
+ transactionCommitted$: Subject<void>;
12
+ }
13
+ export interface WithPgBoss {
14
+ pgBoss: PgBossExtension;
15
+ }
16
+ declare type TypeormContextProp = keyof (WithTypeormContext & WithPgBoss);
17
+ export declare function withTypeormTransaction<Props>(dependencies: WithTypeormTransactionDependencies): UnifiedExtChainSyncOperator<Props, Props & WithTypeormContext>;
18
+ export declare function withTypeormTransaction<Props>(dependencies: WithTypeormTransactionDependencies, extensions: {
19
+ pgBoss: true;
20
+ }): UnifiedExtChainSyncOperator<Props, Props & WithTypeormContext & WithPgBoss>;
21
+ export declare const typeormTransactionCommit: <T extends WithTypeormContext>() => (evt$: Observable<ProjectionEvent<T>>) => Observable<ProjectionEvent<Omit<T, keyof WithTypeormContext | "pgBoss">>>;
22
+ export {};
23
+ //# sourceMappingURL=withTypeormTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withTypeormTransaction.d.ts","sourceRoot":"","sources":["../../../src/operators/withTypeormTransaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EAAS,UAAU,EAAE,OAAO,EAAsD,MAAM,MAAM,CAAC;AACtG,OAAO,EAAE,eAAe,EAAyB,MAAM,WAAW,CAAC;AACnE,OAAO,EACL,eAAe,EAEf,2BAA2B,EAG5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAI/C,MAAM,WAAW,kCAAmC,SAAQ,UAAU;IACpE,WAAW,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,WAAW,CAAC;IACzB,qBAAqB,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,eAAe,CAAC;CACzB;AAED,aAAK,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,GAAG,UAAU,CAAC,CAAC;AAGlE,wBAAgB,sBAAsB,CAAC,KAAK,EAC1C,YAAY,EAAE,kCAAkC,GAC/C,2BAA2B,CAAC,KAAK,EAAE,KAAK,GAAG,kBAAkB,CAAC,CAAC;AAClE,wBAAgB,sBAAsB,CAAC,KAAK,EAC1C,YAAY,EAAE,kCAAkC,EAChD,UAAU,EAAE;IAAE,MAAM,EAAE,IAAI,CAAA;CAAE,GAC3B,2BAA2B,CAAC,KAAK,EAAE,KAAK,GAAG,kBAAkB,GAAG,UAAU,CAAC,CAAC;AAsE/E,eAAO,MAAM,wBAAwB,yJAehC,CAAC"}