@fantastic.dev/better-stripe 0.34.0 → 0.35.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 (258) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +1 -1
  3. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +486 -2
  4. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  5. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +243 -1
  6. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  7. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +486 -2
  8. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  9. package/dist/client/connect/payoutSyncTestHelpers.d.ts +243 -1
  10. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  11. package/dist/client/connect/refundCommandEvidence.d.ts +14 -0
  12. package/dist/client/connect/refundCommandEvidence.d.ts.map +1 -0
  13. package/dist/client/connect/refundCommandEvidence.js +20 -0
  14. package/dist/client/connect/refundCommandEvidence.js.map +1 -0
  15. package/dist/client/connect/refundCommandNormalization.d.ts +11 -0
  16. package/dist/client/connect/refundCommandNormalization.d.ts.map +1 -0
  17. package/dist/client/connect/refundCommandNormalization.js +12 -0
  18. package/dist/client/connect/refundCommandNormalization.js.map +1 -0
  19. package/dist/client/financialObservations.d.ts +42 -0
  20. package/dist/client/financialObservations.d.ts.map +1 -0
  21. package/dist/client/financialObservations.js +58 -0
  22. package/dist/client/financialObservations.js.map +1 -0
  23. package/dist/client/financialOwnership.d.ts +52 -0
  24. package/dist/client/financialOwnership.d.ts.map +1 -0
  25. package/dist/client/financialOwnership.js +72 -0
  26. package/dist/client/financialOwnership.js.map +1 -0
  27. package/dist/client/index.d.ts +2 -2
  28. package/dist/client/index.d.ts.map +1 -1
  29. package/dist/client/index.js +2 -2
  30. package/dist/client/index.js.map +1 -1
  31. package/dist/client/observationPagination.d.ts +10 -0
  32. package/dist/client/observationPagination.d.ts.map +1 -0
  33. package/dist/client/observationPagination.js +12 -0
  34. package/dist/client/observationPagination.js.map +1 -0
  35. package/dist/client/publicTypes.d.ts +5 -0
  36. package/dist/client/publicTypes.d.ts.map +1 -1
  37. package/dist/client/readContracts.d.ts +29 -0
  38. package/dist/client/readContracts.d.ts.map +1 -1
  39. package/dist/client/readContracts.js +10 -0
  40. package/dist/client/readContracts.js.map +1 -1
  41. package/dist/client/transferObservations.d.ts +59 -0
  42. package/dist/client/transferObservations.d.ts.map +1 -0
  43. package/dist/client/transferObservations.js +82 -0
  44. package/dist/client/transferObservations.js.map +1 -0
  45. package/dist/component/_generated/component.d.ts +506 -0
  46. package/dist/component/_generated/component.d.ts.map +1 -1
  47. package/dist/component/affiliateRecovery/mutations.d.ts.map +1 -1
  48. package/dist/component/affiliateRecovery/mutations.js +4 -1
  49. package/dist/component/affiliateRecovery/mutations.js.map +1 -1
  50. package/dist/component/connect/mutations.d.ts.map +1 -1
  51. package/dist/component/connect/mutations.js +18 -2
  52. package/dist/component/connect/mutations.js.map +1 -1
  53. package/dist/component/connect/queries.d.ts +8 -0
  54. package/dist/component/connect/queries.d.ts.map +1 -1
  55. package/dist/component/connect/reversalClaims.d.ts.map +1 -1
  56. package/dist/component/connect/reversalClaims.js +7 -1
  57. package/dist/component/connect/reversalClaims.js.map +1 -1
  58. package/dist/component/connect/reversalReceipts.d.ts.map +1 -1
  59. package/dist/component/connect/reversalReceipts.js +2 -0
  60. package/dist/component/connect/reversalReceipts.js.map +1 -1
  61. package/dist/component/connect/schema.d.ts +11 -1
  62. package/dist/component/connect/schema.d.ts.map +1 -1
  63. package/dist/component/connect/schema.js +9 -1
  64. package/dist/component/connect/schema.js.map +1 -1
  65. package/dist/component/connect/validators.d.ts +9 -1
  66. package/dist/component/connect/validators.d.ts.map +1 -1
  67. package/dist/component/connect/validators.js +2 -0
  68. package/dist/component/connect/validators.js.map +1 -1
  69. package/dist/component/earnings/triggers.d.ts +426 -2
  70. package/dist/component/earnings/triggers.d.ts.map +1 -1
  71. package/dist/component/earnings/triggers.js +7 -1
  72. package/dist/component/earnings/triggers.js.map +1 -1
  73. package/dist/component/financialObservations/continuation.d.ts +7 -0
  74. package/dist/component/financialObservations/continuation.d.ts.map +1 -0
  75. package/dist/component/financialObservations/continuation.js +131 -0
  76. package/dist/component/financialObservations/continuation.js.map +1 -0
  77. package/dist/component/financialObservations/generations.d.ts +6 -0
  78. package/dist/component/financialObservations/generations.d.ts.map +1 -0
  79. package/dist/component/financialObservations/generations.js +46 -0
  80. package/dist/component/financialObservations/generations.js.map +1 -0
  81. package/dist/component/financialObservations/mutations.d.ts +62 -0
  82. package/dist/component/financialObservations/mutations.d.ts.map +1 -0
  83. package/dist/component/financialObservations/mutations.js +69 -0
  84. package/dist/component/financialObservations/mutations.js.map +1 -0
  85. package/dist/component/financialObservations/queries.d.ts +307 -0
  86. package/dist/component/financialObservations/queries.d.ts.map +1 -0
  87. package/dist/component/financialObservations/queries.js +219 -0
  88. package/dist/component/financialObservations/queries.js.map +1 -0
  89. package/dist/component/financialObservations/schema.d.ts +182 -0
  90. package/dist/component/financialObservations/schema.d.ts.map +1 -0
  91. package/dist/component/financialObservations/schema.js +53 -0
  92. package/dist/component/financialObservations/schema.js.map +1 -0
  93. package/dist/component/financialObservations/settlement.d.ts +7 -0
  94. package/dist/component/financialObservations/settlement.d.ts.map +1 -0
  95. package/dist/component/financialObservations/settlement.js +118 -0
  96. package/dist/component/financialObservations/settlement.js.map +1 -0
  97. package/dist/component/financialObservations/settlementHelpers.d.ts +46 -0
  98. package/dist/component/financialObservations/settlementHelpers.d.ts.map +1 -0
  99. package/dist/component/financialObservations/settlementHelpers.js +70 -0
  100. package/dist/component/financialObservations/settlementHelpers.js.map +1 -0
  101. package/dist/component/financialObservations/transferBatches.d.ts +12 -0
  102. package/dist/component/financialObservations/transferBatches.d.ts.map +1 -0
  103. package/dist/component/financialObservations/transferBatches.js +76 -0
  104. package/dist/component/financialObservations/transferBatches.js.map +1 -0
  105. package/dist/component/financialObservations/transferContinuation.d.ts +5 -0
  106. package/dist/component/financialObservations/transferContinuation.d.ts.map +1 -0
  107. package/dist/component/financialObservations/transferContinuation.js +35 -0
  108. package/dist/component/financialObservations/transferContinuation.js.map +1 -0
  109. package/dist/component/financialObservations/transferContinuationState.d.ts +8 -0
  110. package/dist/component/financialObservations/transferContinuationState.d.ts.map +1 -0
  111. package/dist/component/financialObservations/transferContinuationState.js +69 -0
  112. package/dist/component/financialObservations/transferContinuationState.js.map +1 -0
  113. package/dist/component/financialObservations/transferContinuationSteps.d.ts +5 -0
  114. package/dist/component/financialObservations/transferContinuationSteps.d.ts.map +1 -0
  115. package/dist/component/financialObservations/transferContinuationSteps.js +174 -0
  116. package/dist/component/financialObservations/transferContinuationSteps.js.map +1 -0
  117. package/dist/component/financialObservations/transferHelpers.d.ts +18 -0
  118. package/dist/component/financialObservations/transferHelpers.d.ts.map +1 -0
  119. package/dist/component/financialObservations/transferHelpers.js +37 -0
  120. package/dist/component/financialObservations/transferHelpers.js.map +1 -0
  121. package/dist/component/financialObservations/transferReferenceSchema.d.ts +56 -0
  122. package/dist/component/financialObservations/transferReferenceSchema.d.ts.map +1 -0
  123. package/dist/component/financialObservations/transferReferenceSchema.js +21 -0
  124. package/dist/component/financialObservations/transferReferenceSchema.js.map +1 -0
  125. package/dist/component/financialObservations/transferSchema.d.ts +237 -0
  126. package/dist/component/financialObservations/transferSchema.d.ts.map +1 -0
  127. package/dist/component/financialObservations/transferSchema.js +65 -0
  128. package/dist/component/financialObservations/transferSchema.js.map +1 -0
  129. package/dist/component/financialObservations/transfers.d.ts +7 -0
  130. package/dist/component/financialObservations/transfers.d.ts.map +1 -0
  131. package/dist/component/financialObservations/transfers.js +79 -0
  132. package/dist/component/financialObservations/transfers.js.map +1 -0
  133. package/dist/component/financialOwnership/helpers.d.ts +37 -0
  134. package/dist/component/financialOwnership/helpers.d.ts.map +1 -0
  135. package/dist/component/financialOwnership/helpers.js +76 -0
  136. package/dist/component/financialOwnership/helpers.js.map +1 -0
  137. package/dist/component/financialOwnership/mutations.d.ts +28 -0
  138. package/dist/component/financialOwnership/mutations.d.ts.map +1 -0
  139. package/dist/component/financialOwnership/mutations.js +74 -0
  140. package/dist/component/financialOwnership/mutations.js.map +1 -0
  141. package/dist/component/financialOwnership/queries.d.ts +57 -0
  142. package/dist/component/financialOwnership/queries.d.ts.map +1 -0
  143. package/dist/component/financialOwnership/queries.js +50 -0
  144. package/dist/component/financialOwnership/queries.js.map +1 -0
  145. package/dist/component/financialOwnership/schema.d.ts +140 -0
  146. package/dist/component/financialOwnership/schema.d.ts.map +1 -0
  147. package/dist/component/financialOwnership/schema.js +35 -0
  148. package/dist/component/financialOwnership/schema.js.map +1 -0
  149. package/dist/component/payoutRelease/queries.d.ts +2 -2
  150. package/dist/component/payoutRelease/queries.d.ts.map +1 -1
  151. package/dist/component/refundHistory/commandBinding.d.ts +17 -0
  152. package/dist/component/refundHistory/commandBinding.d.ts.map +1 -0
  153. package/dist/component/refundHistory/commandBinding.js +41 -0
  154. package/dist/component/refundHistory/commandBinding.js.map +1 -0
  155. package/dist/component/refundHistory/commandEvidence.d.ts +50 -0
  156. package/dist/component/refundHistory/commandEvidence.d.ts.map +1 -0
  157. package/dist/component/refundHistory/commandEvidence.js +54 -0
  158. package/dist/component/refundHistory/commandEvidence.js.map +1 -0
  159. package/dist/component/refundHistory/commandEvidenceValidator.d.ts +89 -0
  160. package/dist/component/refundHistory/commandEvidenceValidator.d.ts.map +1 -0
  161. package/dist/component/refundHistory/commandEvidenceValidator.js +8 -0
  162. package/dist/component/refundHistory/commandEvidenceValidator.js.map +1 -0
  163. package/dist/component/refundHistory/commandFields.d.ts +8 -0
  164. package/dist/component/refundHistory/commandFields.d.ts.map +1 -0
  165. package/dist/component/refundHistory/commandFields.js +9 -0
  166. package/dist/component/refundHistory/commandFields.js.map +1 -0
  167. package/dist/component/refundHistory/mutations.d.ts +8 -0
  168. package/dist/component/refundHistory/mutations.d.ts.map +1 -0
  169. package/dist/component/refundHistory/mutations.js +25 -0
  170. package/dist/component/refundHistory/mutations.js.map +1 -0
  171. package/dist/component/refundHistory/queries.d.ts +51 -0
  172. package/dist/component/refundHistory/queries.d.ts.map +1 -1
  173. package/dist/component/refundHistory/queries.js +14 -0
  174. package/dist/component/refundHistory/queries.js.map +1 -1
  175. package/dist/component/schema.d.ts +243 -1
  176. package/dist/component/schema.js +12 -0
  177. package/dist/component/schema.js.map +1 -1
  178. package/dist/component/settlement/mutations.d.ts.map +1 -1
  179. package/dist/component/settlement/mutations.js +5 -1
  180. package/dist/component/settlement/mutations.js.map +1 -1
  181. package/dist/shared/refundCommandScope.d.ts +10 -0
  182. package/dist/shared/refundCommandScope.d.ts.map +1 -0
  183. package/dist/shared/refundCommandScope.js +9 -0
  184. package/dist/shared/refundCommandScope.js.map +1 -0
  185. package/docs/financial-observations.md +159 -0
  186. package/docs/financial-ownership.md +54 -0
  187. package/docs/refund-command-evidence.md +49 -0
  188. package/package.json +5 -2
  189. package/src/client/connect/refundCommandEvidence.ts +41 -0
  190. package/src/client/connect/refundCommandNormalization.ts +28 -0
  191. package/src/client/financialObservations.test.ts +109 -0
  192. package/src/client/financialObservations.ts +106 -0
  193. package/src/client/financialOwnership.test.ts +80 -0
  194. package/src/client/financialOwnership.ts +116 -0
  195. package/src/client/index.ts +2 -2
  196. package/src/client/observationPagination.ts +11 -0
  197. package/src/client/publicTypes.ts +37 -0
  198. package/src/client/readContracts.ts +21 -0
  199. package/src/client/refund-command-evidence.test.ts +68 -0
  200. package/src/client/refund-command-normalization.test.ts +61 -0
  201. package/src/client/transferContinuation.test.ts +94 -0
  202. package/src/client/transferObservations.test.ts +98 -0
  203. package/src/client/transferObservations.ts +180 -0
  204. package/src/component/_generated/api.ts +44 -0
  205. package/src/component/_generated/component.ts +590 -0
  206. package/src/component/affiliateRecovery/mutations.ts +10 -1
  207. package/src/component/connect/mutations.ts +29 -2
  208. package/src/component/connect/reversalClaims.ts +19 -1
  209. package/src/component/connect/reversalReceipts.ts +2 -0
  210. package/src/component/connect/schema.ts +9 -1
  211. package/src/component/connect/validators.ts +2 -0
  212. package/src/component/core/reset.test.ts +8 -1
  213. package/src/component/earnings/earnings-totals.test.ts +14 -10
  214. package/src/component/earnings/triggers.ts +9 -1
  215. package/src/component/financialObservations/continuation.test.ts +445 -0
  216. package/src/component/financialObservations/continuation.ts +159 -0
  217. package/src/component/financialObservations/generations.ts +53 -0
  218. package/src/component/financialObservations/mutations.ts +75 -0
  219. package/src/component/financialObservations/observation-boundaries.test.ts +466 -0
  220. package/src/component/financialObservations/queries.ts +246 -0
  221. package/src/component/financialObservations/schema.ts +68 -0
  222. package/src/component/financialObservations/settlement-observations.test.ts +86 -0
  223. package/src/component/financialObservations/settlement.ts +142 -0
  224. package/src/component/financialObservations/settlementHelpers.ts +92 -0
  225. package/src/component/financialObservations/transfer-batches.test.ts +61 -0
  226. package/src/component/financialObservations/transfer-boundaries.test.ts +116 -0
  227. package/src/component/financialObservations/transfer-continuation-guards.test.ts +428 -0
  228. package/src/component/financialObservations/transfer-continuation.test.ts +154 -0
  229. package/src/component/financialObservations/transfer-observations.test.ts +212 -0
  230. package/src/component/financialObservations/transfer-overflow.test.ts +181 -0
  231. package/src/component/financialObservations/transfer-writers.test.ts +162 -0
  232. package/src/component/financialObservations/transferBatches.ts +96 -0
  233. package/src/component/financialObservations/transferContinuation.ts +53 -0
  234. package/src/component/financialObservations/transferContinuationState.ts +85 -0
  235. package/src/component/financialObservations/transferContinuationSteps.ts +232 -0
  236. package/src/component/financialObservations/transferHelpers.ts +38 -0
  237. package/src/component/financialObservations/transferReferenceSchema.ts +20 -0
  238. package/src/component/financialObservations/transferSchema.ts +74 -0
  239. package/src/component/financialObservations/transfers.ts +99 -0
  240. package/src/component/financialOwnership/financial-ownership.test.ts +102 -0
  241. package/src/component/financialOwnership/helpers.ts +98 -0
  242. package/src/component/financialOwnership/mutations.ts +83 -0
  243. package/src/component/financialOwnership/ownership-boundaries.test.ts +308 -0
  244. package/src/component/financialOwnership/queries.ts +65 -0
  245. package/src/component/financialOwnership/schema.ts +35 -0
  246. package/src/component/refundHistory/command-evidence.test.ts +288 -0
  247. package/src/component/refundHistory/command-normalization-resource.test.ts +77 -0
  248. package/src/component/refundHistory/command-normalization.test.ts +229 -0
  249. package/src/component/refundHistory/command-provenance.test.ts +59 -0
  250. package/src/component/refundHistory/commandBinding.ts +54 -0
  251. package/src/component/refundHistory/commandEvidence.ts +71 -0
  252. package/src/component/refundHistory/commandEvidenceValidator.ts +18 -0
  253. package/src/component/refundHistory/commandFields.ts +9 -0
  254. package/src/component/refundHistory/mutations.ts +33 -0
  255. package/src/component/refundHistory/queries.ts +15 -0
  256. package/src/component/schema.ts +22 -0
  257. package/src/component/settlement/mutations.ts +5 -1
  258. package/src/shared/refundCommandScope.ts +19 -0
@@ -375,6 +375,212 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
375
375
  searchIndexes: {};
376
376
  vectorIndexes: {};
377
377
  };
378
+ financialObservationGenerations: {
379
+ document: {
380
+ _creationTime: number;
381
+ _id: import("convex/values").GenericId<"financialObservationGenerations">;
382
+ generation: number;
383
+ scopeKey: string;
384
+ };
385
+ fieldPaths: "_id" | ("_creationTime" | "generation" | "scopeKey");
386
+ indexes: {
387
+ by_id: ["_id"];
388
+ by_creation_time: ["_creationTime"];
389
+ by_scope_key: ["scopeKey", "_creationTime"];
390
+ };
391
+ searchIndexes: {};
392
+ vectorIndexes: {};
393
+ };
394
+ financialOwnership: {
395
+ document: {
396
+ _creationTime: number;
397
+ _id: import("convex/values").GenericId<"financialOwnership">;
398
+ bucketKey: string;
399
+ generation: number;
400
+ kind: "logical" | "stripe_account";
401
+ orgId?: string | undefined;
402
+ source: {
403
+ integration: string;
404
+ recordId: string;
405
+ };
406
+ userId: string;
407
+ };
408
+ fieldPaths: "_id" | ("_creationTime" | "bucketKey" | "generation" | "kind" | "orgId" | "source" | "source.integration" | "source.recordId" | "userId");
409
+ indexes: {
410
+ by_id: ["_id"];
411
+ by_creation_time: ["_creationTime"];
412
+ by_bucket_key: ["bucketKey", "_creationTime"];
413
+ by_owner: ["userId", "orgId", "_creationTime"];
414
+ };
415
+ searchIndexes: {};
416
+ vectorIndexes: {};
417
+ };
418
+ financialOwnershipGenerations: {
419
+ document: {
420
+ _creationTime: number;
421
+ _id: import("convex/values").GenericId<"financialOwnershipGenerations">;
422
+ generation: number;
423
+ orgId?: string | undefined;
424
+ userId: string;
425
+ };
426
+ fieldPaths: "_id" | ("_creationTime" | "generation" | "orgId" | "userId");
427
+ indexes: {
428
+ by_id: ["_id"];
429
+ by_creation_time: ["_creationTime"];
430
+ by_owner: ["userId", "orgId", "_creationTime"];
431
+ };
432
+ searchIndexes: {};
433
+ vectorIndexes: {};
434
+ };
435
+ financialSourceLegs: {
436
+ document: {
437
+ _creationTime: number;
438
+ _id: import("convex/values").GenericId<"financialSourceLegs">;
439
+ allocationId: import("convex/values").GenericId<"settlementAllocations">;
440
+ bucketKey: string;
441
+ legIndex: number;
442
+ orgId?: string | undefined;
443
+ ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
444
+ registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
445
+ role: "affiliate" | "other" | "store";
446
+ sourceChargeId: string;
447
+ userId?: string | undefined;
448
+ };
449
+ fieldPaths: "_id" | ("_creationTime" | "allocationId" | "bucketKey" | "legIndex" | "orgId" | "ownershipStatus" | "registrationId" | "role" | "sourceChargeId" | "userId");
450
+ indexes: {
451
+ by_id: ["_id"];
452
+ by_creation_time: ["_creationTime"];
453
+ by_allocation_id_and_leg_index: ["allocationId", "legIndex", "_creationTime"];
454
+ by_bucket_key: ["bucketKey", "_creationTime"];
455
+ by_owner: ["userId", "orgId", "_creationTime"];
456
+ };
457
+ searchIndexes: {};
458
+ vectorIndexes: {};
459
+ };
460
+ financialSourceObservations: {
461
+ document: {
462
+ _creationTime: number;
463
+ _id: import("convex/values").GenericId<"financialSourceObservations">;
464
+ allocationId: import("convex/values").GenericId<"settlementAllocations">;
465
+ continuation?: {
466
+ nextLeg: number;
467
+ state: "complete" | "held" | "indexing" | "validating";
468
+ validatedLegs: number;
469
+ } | undefined;
470
+ fingerprint: string;
471
+ generation: number;
472
+ indexedLegCount: number;
473
+ isContradictory: boolean;
474
+ isOverflow: boolean;
475
+ legCount: number;
476
+ observedFingerprint: string;
477
+ ownershipFingerprint: string;
478
+ producer: "settlement_allocation";
479
+ producerVersion: 1;
480
+ sourceChargeId: string;
481
+ };
482
+ fieldPaths: "_id" | ("_creationTime" | "allocationId" | "continuation" | "continuation.nextLeg" | "continuation.state" | "continuation.validatedLegs" | "fingerprint" | "generation" | "indexedLegCount" | "isContradictory" | "isOverflow" | "legCount" | "observedFingerprint" | "ownershipFingerprint" | "producer" | "producerVersion" | "sourceChargeId");
483
+ indexes: {
484
+ by_id: ["_id"];
485
+ by_creation_time: ["_creationTime"];
486
+ by_allocation_id: ["allocationId", "_creationTime"];
487
+ };
488
+ searchIndexes: {};
489
+ vectorIndexes: {};
490
+ };
491
+ financialTransferBatchReferences: {
492
+ document: {
493
+ _creationTime: number;
494
+ _id: import("convex/values").GenericId<"financialTransferBatchReferences">;
495
+ batchId: import("convex/values").GenericId<"financialTransferBatches">;
496
+ observationGeneration: number;
497
+ observationId: import("convex/values").GenericId<"financialTransferObservations">;
498
+ observedFingerprint: string;
499
+ ownershipFingerprint: string;
500
+ position: number;
501
+ sourceFingerprint: string;
502
+ transferId: import("convex/values").GenericId<"transfers">;
503
+ };
504
+ fieldPaths: "_id" | ("_creationTime" | "batchId" | "observationGeneration" | "observationId" | "observedFingerprint" | "ownershipFingerprint" | "position" | "sourceFingerprint" | "transferId");
505
+ indexes: {
506
+ by_id: ["_id"];
507
+ by_creation_time: ["_creationTime"];
508
+ by_batch_position: ["batchId", "position", "_creationTime"];
509
+ by_batch_transfer: ["batchId", "transferId", "_creationTime"];
510
+ };
511
+ searchIndexes: {};
512
+ vectorIndexes: {};
513
+ };
514
+ financialTransferBatches: {
515
+ document: {
516
+ _creationTime: number;
517
+ _id: import("convex/values").GenericId<"financialTransferBatches">;
518
+ continuation?: {
519
+ nextReference: number;
520
+ producerGeneration: number;
521
+ sourceFingerprint: string;
522
+ state: "complete" | "held" | "indexing" | "validating";
523
+ validatedReferences: number;
524
+ } | undefined;
525
+ fingerprint: string;
526
+ generation: number;
527
+ isContradictory: boolean;
528
+ isOverflow: true;
529
+ observedFingerprint: string;
530
+ operationId: string;
531
+ originalOperationId: import("convex/values").GenericId<"transferReversalOps">;
532
+ producer: "transfer_frontier_claim" | "transfer_frontier_release";
533
+ producerVersion: 1;
534
+ referenceCount: number;
535
+ sourceChargeId: string;
536
+ state: "complete" | "pending";
537
+ transferIds: import("convex/values").GenericId<"transfers">[];
538
+ };
539
+ fieldPaths: "_id" | ("_creationTime" | "continuation" | "continuation.nextReference" | "continuation.producerGeneration" | "continuation.sourceFingerprint" | "continuation.state" | "continuation.validatedReferences" | "fingerprint" | "generation" | "isContradictory" | "isOverflow" | "observedFingerprint" | "operationId" | "originalOperationId" | "producer" | "producerVersion" | "referenceCount" | "sourceChargeId" | "state" | "transferIds");
540
+ indexes: {
541
+ by_id: ["_id"];
542
+ by_creation_time: ["_creationTime"];
543
+ by_operation_id: ["operationId", "_creationTime"];
544
+ by_original_operation_id: ["originalOperationId", "_creationTime"];
545
+ by_original_operation_producer: ["originalOperationId", "producer", "_creationTime"];
546
+ by_state: ["state", "_creationTime"];
547
+ };
548
+ searchIndexes: {};
549
+ vectorIndexes: {};
550
+ };
551
+ financialTransferObservations: {
552
+ document: {
553
+ _creationTime: number;
554
+ _id: import("convex/values").GenericId<"financialTransferObservations">;
555
+ bucketKey: string;
556
+ fingerprint: string;
557
+ generation: number;
558
+ isContradictory: boolean;
559
+ observedFingerprint: string;
560
+ orgId?: string | undefined;
561
+ ownershipFingerprint: string;
562
+ ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
563
+ producer: "transfer_fact";
564
+ producerVersion: 1;
565
+ registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
566
+ role?: "affiliate" | "other" | "store" | undefined;
567
+ sourceChargeId?: string | undefined;
568
+ sourceInvoiceId?: string | undefined;
569
+ stripeTransferId: string;
570
+ transferId: import("convex/values").GenericId<"transfers">;
571
+ userId?: string | undefined;
572
+ };
573
+ fieldPaths: "_id" | ("_creationTime" | "bucketKey" | "fingerprint" | "generation" | "isContradictory" | "observedFingerprint" | "orgId" | "ownershipFingerprint" | "ownershipStatus" | "producer" | "producerVersion" | "registrationId" | "role" | "sourceChargeId" | "sourceInvoiceId" | "stripeTransferId" | "transferId" | "userId");
574
+ indexes: {
575
+ by_id: ["_id"];
576
+ by_creation_time: ["_creationTime"];
577
+ by_bucket_key: ["bucketKey", "_creationTime"];
578
+ by_owner: ["userId", "orgId", "_creationTime"];
579
+ by_transfer_id: ["transferId", "_creationTime"];
580
+ };
581
+ searchIndexes: {};
582
+ vectorIndexes: {};
583
+ };
378
584
  invoices: {
379
585
  document: {
380
586
  _creationTime: number;
@@ -1121,12 +1327,16 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
1121
1327
  failureReason?: string | undefined;
1122
1328
  metadata?: any;
1123
1329
  reason?: "duplicate" | "expired_uncaptured_charge" | "fraudulent" | "requested_by_customer" | undefined;
1330
+ refundCommandConflict?: boolean | undefined;
1331
+ refundCommandKey?: string | undefined;
1332
+ refundCommandNormalizationVersion?: 1 | undefined;
1333
+ refundCommandObservedAt?: number | undefined;
1124
1334
  status: "canceled" | "failed" | "pending" | "requires_action" | "succeeded";
1125
1335
  stripeChargeId?: string | undefined;
1126
1336
  stripePaymentIntentId?: string | undefined;
1127
1337
  stripeRefundId: string;
1128
1338
  };
1129
- fieldPaths: "_id" | ("_creationTime" | "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`);
1339
+ fieldPaths: "_id" | ("_creationTime" | "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "refundCommandConflict" | "refundCommandKey" | "refundCommandNormalizationVersion" | "refundCommandObservedAt" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`);
1130
1340
  indexes: {
1131
1341
  by_id: ["_id"];
1132
1342
  by_creation_time: ["_creationTime"];
@@ -1135,6 +1345,8 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
1135
1345
  by_account_id_and_stripe_payment_intent_id: ["accountId", "stripePaymentIntentId", "_creationTime"];
1136
1346
  by_account_id_and_stripe_payment_intent_id_and_status: ["accountId", "stripePaymentIntentId", "status", "_creationTime"];
1137
1347
  by_payment_intent_id_and_status: ["stripePaymentIntentId", "status", "_creationTime"];
1348
+ by_refund_command_key: ["refundCommandKey", "_creationTime"];
1349
+ by_refund_command_normalization_version: ["refundCommandNormalizationVersion", "_creationTime"];
1138
1350
  by_status: ["status", "_creationTime"];
1139
1351
  by_stripe_payment_intent_id: ["stripePaymentIntentId", "_creationTime"];
1140
1352
  by_stripe_refund_id: ["stripeRefundId", "_creationTime"];
@@ -1681,6 +1893,212 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
1681
1893
  searchIndexes: {};
1682
1894
  vectorIndexes: {};
1683
1895
  };
1896
+ financialObservationGenerations: {
1897
+ document: {
1898
+ _creationTime: number;
1899
+ _id: import("convex/values").GenericId<"financialObservationGenerations">;
1900
+ generation: number;
1901
+ scopeKey: string;
1902
+ };
1903
+ fieldPaths: "_id" | ("_creationTime" | "generation" | "scopeKey");
1904
+ indexes: {
1905
+ by_id: ["_id"];
1906
+ by_creation_time: ["_creationTime"];
1907
+ by_scope_key: ["scopeKey", "_creationTime"];
1908
+ };
1909
+ searchIndexes: {};
1910
+ vectorIndexes: {};
1911
+ };
1912
+ financialOwnership: {
1913
+ document: {
1914
+ _creationTime: number;
1915
+ _id: import("convex/values").GenericId<"financialOwnership">;
1916
+ bucketKey: string;
1917
+ generation: number;
1918
+ kind: "logical" | "stripe_account";
1919
+ orgId?: string | undefined;
1920
+ source: {
1921
+ integration: string;
1922
+ recordId: string;
1923
+ };
1924
+ userId: string;
1925
+ };
1926
+ fieldPaths: "_id" | ("_creationTime" | "bucketKey" | "generation" | "kind" | "orgId" | "source" | "source.integration" | "source.recordId" | "userId");
1927
+ indexes: {
1928
+ by_id: ["_id"];
1929
+ by_creation_time: ["_creationTime"];
1930
+ by_bucket_key: ["bucketKey", "_creationTime"];
1931
+ by_owner: ["userId", "orgId", "_creationTime"];
1932
+ };
1933
+ searchIndexes: {};
1934
+ vectorIndexes: {};
1935
+ };
1936
+ financialOwnershipGenerations: {
1937
+ document: {
1938
+ _creationTime: number;
1939
+ _id: import("convex/values").GenericId<"financialOwnershipGenerations">;
1940
+ generation: number;
1941
+ orgId?: string | undefined;
1942
+ userId: string;
1943
+ };
1944
+ fieldPaths: "_id" | ("_creationTime" | "generation" | "orgId" | "userId");
1945
+ indexes: {
1946
+ by_id: ["_id"];
1947
+ by_creation_time: ["_creationTime"];
1948
+ by_owner: ["userId", "orgId", "_creationTime"];
1949
+ };
1950
+ searchIndexes: {};
1951
+ vectorIndexes: {};
1952
+ };
1953
+ financialSourceLegs: {
1954
+ document: {
1955
+ _creationTime: number;
1956
+ _id: import("convex/values").GenericId<"financialSourceLegs">;
1957
+ allocationId: import("convex/values").GenericId<"settlementAllocations">;
1958
+ bucketKey: string;
1959
+ legIndex: number;
1960
+ orgId?: string | undefined;
1961
+ ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
1962
+ registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
1963
+ role: "affiliate" | "other" | "store";
1964
+ sourceChargeId: string;
1965
+ userId?: string | undefined;
1966
+ };
1967
+ fieldPaths: "_id" | ("_creationTime" | "allocationId" | "bucketKey" | "legIndex" | "orgId" | "ownershipStatus" | "registrationId" | "role" | "sourceChargeId" | "userId");
1968
+ indexes: {
1969
+ by_id: ["_id"];
1970
+ by_creation_time: ["_creationTime"];
1971
+ by_allocation_id_and_leg_index: ["allocationId", "legIndex", "_creationTime"];
1972
+ by_bucket_key: ["bucketKey", "_creationTime"];
1973
+ by_owner: ["userId", "orgId", "_creationTime"];
1974
+ };
1975
+ searchIndexes: {};
1976
+ vectorIndexes: {};
1977
+ };
1978
+ financialSourceObservations: {
1979
+ document: {
1980
+ _creationTime: number;
1981
+ _id: import("convex/values").GenericId<"financialSourceObservations">;
1982
+ allocationId: import("convex/values").GenericId<"settlementAllocations">;
1983
+ continuation?: {
1984
+ nextLeg: number;
1985
+ state: "complete" | "held" | "indexing" | "validating";
1986
+ validatedLegs: number;
1987
+ } | undefined;
1988
+ fingerprint: string;
1989
+ generation: number;
1990
+ indexedLegCount: number;
1991
+ isContradictory: boolean;
1992
+ isOverflow: boolean;
1993
+ legCount: number;
1994
+ observedFingerprint: string;
1995
+ ownershipFingerprint: string;
1996
+ producer: "settlement_allocation";
1997
+ producerVersion: 1;
1998
+ sourceChargeId: string;
1999
+ };
2000
+ fieldPaths: "_id" | ("_creationTime" | "allocationId" | "continuation" | "continuation.nextLeg" | "continuation.state" | "continuation.validatedLegs" | "fingerprint" | "generation" | "indexedLegCount" | "isContradictory" | "isOverflow" | "legCount" | "observedFingerprint" | "ownershipFingerprint" | "producer" | "producerVersion" | "sourceChargeId");
2001
+ indexes: {
2002
+ by_id: ["_id"];
2003
+ by_creation_time: ["_creationTime"];
2004
+ by_allocation_id: ["allocationId", "_creationTime"];
2005
+ };
2006
+ searchIndexes: {};
2007
+ vectorIndexes: {};
2008
+ };
2009
+ financialTransferBatchReferences: {
2010
+ document: {
2011
+ _creationTime: number;
2012
+ _id: import("convex/values").GenericId<"financialTransferBatchReferences">;
2013
+ batchId: import("convex/values").GenericId<"financialTransferBatches">;
2014
+ observationGeneration: number;
2015
+ observationId: import("convex/values").GenericId<"financialTransferObservations">;
2016
+ observedFingerprint: string;
2017
+ ownershipFingerprint: string;
2018
+ position: number;
2019
+ sourceFingerprint: string;
2020
+ transferId: import("convex/values").GenericId<"transfers">;
2021
+ };
2022
+ fieldPaths: "_id" | ("_creationTime" | "batchId" | "observationGeneration" | "observationId" | "observedFingerprint" | "ownershipFingerprint" | "position" | "sourceFingerprint" | "transferId");
2023
+ indexes: {
2024
+ by_id: ["_id"];
2025
+ by_creation_time: ["_creationTime"];
2026
+ by_batch_position: ["batchId", "position", "_creationTime"];
2027
+ by_batch_transfer: ["batchId", "transferId", "_creationTime"];
2028
+ };
2029
+ searchIndexes: {};
2030
+ vectorIndexes: {};
2031
+ };
2032
+ financialTransferBatches: {
2033
+ document: {
2034
+ _creationTime: number;
2035
+ _id: import("convex/values").GenericId<"financialTransferBatches">;
2036
+ continuation?: {
2037
+ nextReference: number;
2038
+ producerGeneration: number;
2039
+ sourceFingerprint: string;
2040
+ state: "complete" | "held" | "indexing" | "validating";
2041
+ validatedReferences: number;
2042
+ } | undefined;
2043
+ fingerprint: string;
2044
+ generation: number;
2045
+ isContradictory: boolean;
2046
+ isOverflow: true;
2047
+ observedFingerprint: string;
2048
+ operationId: string;
2049
+ originalOperationId: import("convex/values").GenericId<"transferReversalOps">;
2050
+ producer: "transfer_frontier_claim" | "transfer_frontier_release";
2051
+ producerVersion: 1;
2052
+ referenceCount: number;
2053
+ sourceChargeId: string;
2054
+ state: "complete" | "pending";
2055
+ transferIds: import("convex/values").GenericId<"transfers">[];
2056
+ };
2057
+ fieldPaths: "_id" | ("_creationTime" | "continuation" | "continuation.nextReference" | "continuation.producerGeneration" | "continuation.sourceFingerprint" | "continuation.state" | "continuation.validatedReferences" | "fingerprint" | "generation" | "isContradictory" | "isOverflow" | "observedFingerprint" | "operationId" | "originalOperationId" | "producer" | "producerVersion" | "referenceCount" | "sourceChargeId" | "state" | "transferIds");
2058
+ indexes: {
2059
+ by_id: ["_id"];
2060
+ by_creation_time: ["_creationTime"];
2061
+ by_operation_id: ["operationId", "_creationTime"];
2062
+ by_original_operation_id: ["originalOperationId", "_creationTime"];
2063
+ by_original_operation_producer: ["originalOperationId", "producer", "_creationTime"];
2064
+ by_state: ["state", "_creationTime"];
2065
+ };
2066
+ searchIndexes: {};
2067
+ vectorIndexes: {};
2068
+ };
2069
+ financialTransferObservations: {
2070
+ document: {
2071
+ _creationTime: number;
2072
+ _id: import("convex/values").GenericId<"financialTransferObservations">;
2073
+ bucketKey: string;
2074
+ fingerprint: string;
2075
+ generation: number;
2076
+ isContradictory: boolean;
2077
+ observedFingerprint: string;
2078
+ orgId?: string | undefined;
2079
+ ownershipFingerprint: string;
2080
+ ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
2081
+ producer: "transfer_fact";
2082
+ producerVersion: 1;
2083
+ registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
2084
+ role?: "affiliate" | "other" | "store" | undefined;
2085
+ sourceChargeId?: string | undefined;
2086
+ sourceInvoiceId?: string | undefined;
2087
+ stripeTransferId: string;
2088
+ transferId: import("convex/values").GenericId<"transfers">;
2089
+ userId?: string | undefined;
2090
+ };
2091
+ fieldPaths: "_id" | ("_creationTime" | "bucketKey" | "fingerprint" | "generation" | "isContradictory" | "observedFingerprint" | "orgId" | "ownershipFingerprint" | "ownershipStatus" | "producer" | "producerVersion" | "registrationId" | "role" | "sourceChargeId" | "sourceInvoiceId" | "stripeTransferId" | "transferId" | "userId");
2092
+ indexes: {
2093
+ by_id: ["_id"];
2094
+ by_creation_time: ["_creationTime"];
2095
+ by_bucket_key: ["bucketKey", "_creationTime"];
2096
+ by_owner: ["userId", "orgId", "_creationTime"];
2097
+ by_transfer_id: ["transferId", "_creationTime"];
2098
+ };
2099
+ searchIndexes: {};
2100
+ vectorIndexes: {};
2101
+ };
1684
2102
  invoices: {
1685
2103
  document: {
1686
2104
  _creationTime: number;
@@ -2427,12 +2845,16 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
2427
2845
  failureReason?: string | undefined;
2428
2846
  metadata?: any;
2429
2847
  reason?: "duplicate" | "expired_uncaptured_charge" | "fraudulent" | "requested_by_customer" | undefined;
2848
+ refundCommandConflict?: boolean | undefined;
2849
+ refundCommandKey?: string | undefined;
2850
+ refundCommandNormalizationVersion?: 1 | undefined;
2851
+ refundCommandObservedAt?: number | undefined;
2430
2852
  status: "canceled" | "failed" | "pending" | "requires_action" | "succeeded";
2431
2853
  stripeChargeId?: string | undefined;
2432
2854
  stripePaymentIntentId?: string | undefined;
2433
2855
  stripeRefundId: string;
2434
2856
  };
2435
- fieldPaths: "_id" | ("_creationTime" | "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`);
2857
+ fieldPaths: "_id" | ("_creationTime" | "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "refundCommandConflict" | "refundCommandKey" | "refundCommandNormalizationVersion" | "refundCommandObservedAt" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`);
2436
2858
  indexes: {
2437
2859
  by_id: ["_id"];
2438
2860
  by_creation_time: ["_creationTime"];
@@ -2441,6 +2863,8 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
2441
2863
  by_account_id_and_stripe_payment_intent_id: ["accountId", "stripePaymentIntentId", "_creationTime"];
2442
2864
  by_account_id_and_stripe_payment_intent_id_and_status: ["accountId", "stripePaymentIntentId", "status", "_creationTime"];
2443
2865
  by_payment_intent_id_and_status: ["stripePaymentIntentId", "status", "_creationTime"];
2866
+ by_refund_command_key: ["refundCommandKey", "_creationTime"];
2867
+ by_refund_command_normalization_version: ["refundCommandNormalizationVersion", "_creationTime"];
2444
2868
  by_status: ["status", "_creationTime"];
2445
2869
  by_stripe_payment_intent_id: ["stripePaymentIntentId", "_creationTime"];
2446
2870
  by_stripe_refund_id: ["stripeRefundId", "_creationTime"];
@@ -1 +1 @@
1
- {"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/component/earnings/triggers.ts"],"names":[],"mappings":"AAiGA,eAAO,MAAM,QA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAA0D,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { observeTransfer } from "../financialObservations/transfers.js";
1
2
  import { registerPayoutRevisions } from "../payoutSnapshots/revisions.js";
2
3
  import { Triggers } from "convex-helpers/server/triggers";
3
4
  import { customCtx, customMutation, } from "convex-helpers/server/customFunctions";
@@ -46,8 +47,13 @@ triggers.register("transfers", async (ctx, change) => {
46
47
  await adjust(ctx, "earnings", contribution(change.oldDoc), -1);
47
48
  if (change.newDoc) {
48
49
  await adjust(ctx, "earnings", contribution(change.newDoc), 1);
49
- if (!change.newDoc.totalsRecorded)
50
+ if (!change.newDoc.totalsRecorded) {
50
51
  await ctx.innerDb.patch("transfers", change.id, { totalsRecorded: true });
52
+ // Frontier producers own bounded batch observation, including oversized release deferral.
53
+ if (change.oldDoc?.reversalClaimedAmount ===
54
+ change.newDoc.reversalClaimedAmount)
55
+ await observeTransfer(ctx, { ...change.newDoc, totalsRecorded: true });
56
+ }
51
57
  }
52
58
  });
53
59
  triggers.register("payouts", async (ctx, change) => {
@@ -1 +1 @@
1
- {"version":3,"file":"triggers.js","sourceRoot":"","sources":["../../../src/component/earnings/triggers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EACL,SAAS,EACT,cAAc,GACf,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EACL,QAAQ,IAAI,WAAW,GAExB,MAAM,yBAAyB,CAAC;AAUjC,KAAK,UAAU,MAAM,CACnB,GAAgB,EAChB,IAA4B,EAC5B,KAAmB,EACnB,IAAY;IAEZ,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,EAAE;SACrB,KAAK,CAAC,gBAAgB,CAAC;SACvB,SAAS,CAAC,0BAA0B,EAAE,CAAC,CAAC,EAAE,EAAE,CAC3C,CAAC;SACE,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;SAChC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC;SAChB,EAAE,CAAC,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,CAClC;SACA,MAAM,EAAE,CAAC;IACZ,MAAM,MAAM,GAAG;QACb,KAAK,EAAE,iBAAiB,CAAC,GAAG,EAAE,KAAK,IAAI,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC;QAC7D,QAAQ,EAAE,iBAAiB,CAAC,GAAG,EAAE,QAAQ,IAAI,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC;QACtE,OAAO,EAAE,iBAAiB,CAAC,GAAG,EAAE,OAA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;YACtB,KAAK,EAAE,CAAC;YACR,QAAQ,EAAE,CAAC;YACX,OAAO,EAAE,GAAG,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAC3C,KAAK,EAAE,CAAC;SACT,CAAC;IACJ,CAAC,CAAC;IACF,IAAI,MAAM,CAAC,MAAM,EAAE,cAAc;QAC/B,MAAM,MAAM,CAAC,GAAG,EAAE,SAAS,EAAE,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAChE,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QAClB,MAAM,MAAM,CAAC,GAAG,EAAE,SAAS,EAAE,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;QAC7D,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,cAAc;YAC/B,MAAM,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5E,CAAC;AACH,CAAC,CAAC,CAAC;AACH,uBAAuB,CAAC,QAAQ,CAAC,CAAC;AAClC,MAAM,CAAC,MAAM,QAAQ,GAAG,cAAc,CAAC,WAAW,EAAE,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Doc } from "../_generated/dataModel.js";
2
+ import type { MutationCtx } from "../_generated/server.js";
3
+ type Observation = Doc<"financialSourceObservations">;
4
+ /** One atomic bounded step. Callers drain explicitly; a stale acknowledgement never advances twice. */
5
+ export declare function continueSettlementObservation(ctx: MutationCtx, marker: Observation, expectedGeneration: number): Promise<void>;
6
+ export {};
7
+ //# sourceMappingURL=continuation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"continuation.d.ts","sourceRoot":"","sources":["../../../src/component/financialObservations/continuation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAQ3D,KAAK,WAAW,GAAG,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAmGtD,uGAAuG;AACvG,wBAAsB,6BAA6B,CACjD,GAAG,EAAE,WAAW,EAChB,MAAM,EAAE,WAAW,EACnB,kBAAkB,EAAE,MAAM,iBA8C3B"}