@fantastic.dev/better-stripe 0.62.0 → 0.64.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 (217) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +22 -2
  3. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +550 -0
  4. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  5. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +275 -0
  6. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  7. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +550 -0
  8. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  9. package/dist/client/connect/payoutSyncTestHelpers.d.ts +275 -0
  10. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  11. package/dist/client/financialOwnership.d.ts +2 -2
  12. package/dist/client/financialOwnership.d.ts.map +1 -1
  13. package/dist/client/financialOwnership.js +2 -2
  14. package/dist/client/financialOwnership.js.map +1 -1
  15. package/dist/client/paymentSource/resolver.d.ts +1 -0
  16. package/dist/client/paymentSource/resolver.d.ts.map +1 -1
  17. package/dist/client/paymentSource/resolver.js +11 -2
  18. package/dist/client/paymentSource/resolver.js.map +1 -1
  19. package/dist/client/paymentSource/zeroTierLines.d.ts +4 -0
  20. package/dist/client/paymentSource/zeroTierLines.d.ts.map +1 -0
  21. package/dist/client/paymentSource/zeroTierLines.js +35 -0
  22. package/dist/client/paymentSource/zeroTierLines.js.map +1 -0
  23. package/dist/client/payoutRevisionMigration.d.ts +37 -0
  24. package/dist/client/payoutRevisionMigration.d.ts.map +1 -0
  25. package/dist/client/payoutRevisionMigration.js +49 -0
  26. package/dist/client/payoutRevisionMigration.js.map +1 -0
  27. package/dist/client/publicTypes.d.ts +2 -0
  28. package/dist/client/publicTypes.d.ts.map +1 -1
  29. package/dist/client/reversalObservations.d.ts +62 -0
  30. package/dist/client/reversalObservations.d.ts.map +1 -0
  31. package/dist/client/reversalObservations.js +79 -0
  32. package/dist/client/reversalObservations.js.map +1 -0
  33. package/dist/client/usage/configuration.d.ts +13 -0
  34. package/dist/client/usage/configuration.d.ts.map +1 -0
  35. package/dist/client/usage/configuration.js +2 -0
  36. package/dist/client/usage/configuration.js.map +1 -0
  37. package/dist/client/usage/deliveryProvider.d.ts.map +1 -1
  38. package/dist/client/usage/deliveryProvider.js +16 -0
  39. package/dist/client/usage/deliveryProvider.js.map +1 -1
  40. package/dist/client/usage/index.d.ts +2 -0
  41. package/dist/client/usage/index.d.ts.map +1 -1
  42. package/dist/client/usage/invoiceSale.d.ts.map +1 -1
  43. package/dist/client/usage/invoiceSale.js +15 -2
  44. package/dist/client/usage/invoiceSale.js.map +1 -1
  45. package/dist/client/usage/observationClient.d.ts +2 -2
  46. package/dist/client/usage/observationClient.d.ts.map +1 -1
  47. package/dist/client/usage/views.d.ts +24 -0
  48. package/dist/client/usage/views.d.ts.map +1 -0
  49. package/dist/client/usage/views.js +2 -0
  50. package/dist/client/usage/views.js.map +1 -0
  51. package/dist/component/_generated/api.d.ts +28 -0
  52. package/dist/component/_generated/api.d.ts.map +1 -1
  53. package/dist/component/_generated/api.js.map +1 -1
  54. package/dist/component/_generated/component.d.ts +354 -0
  55. package/dist/component/_generated/component.d.ts.map +1 -1
  56. package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
  57. package/dist/component/balanceFunding/stateHandlers.d.ts +8 -8
  58. package/dist/component/connect/mutations.d.ts.map +1 -1
  59. package/dist/component/connect/mutations.js +2 -0
  60. package/dist/component/connect/mutations.js.map +1 -1
  61. package/dist/component/connect/reversalClaims.d.ts.map +1 -1
  62. package/dist/component/connect/reversalClaims.js +10 -1
  63. package/dist/component/connect/reversalClaims.js.map +1 -1
  64. package/dist/component/earnings/triggers.d.ts +408 -16
  65. package/dist/component/earnings/triggers.d.ts.map +1 -1
  66. package/dist/component/financialObservations/transferSchema.d.ts +1 -0
  67. package/dist/component/financialObservations/transferSchema.d.ts.map +1 -1
  68. package/dist/component/financialObservations/transferSchema.js +1 -0
  69. package/dist/component/financialObservations/transferSchema.js.map +1 -1
  70. package/dist/component/payoutRevisionJournal/mutations.d.ts +15 -0
  71. package/dist/component/payoutRevisionJournal/mutations.d.ts.map +1 -0
  72. package/dist/component/payoutRevisionJournal/mutations.js +11 -0
  73. package/dist/component/payoutRevisionJournal/mutations.js.map +1 -0
  74. package/dist/component/payoutRevisionJournal/schema.d.ts +45 -0
  75. package/dist/component/payoutRevisionJournal/schema.d.ts.map +1 -0
  76. package/dist/component/payoutRevisionJournal/schema.js +22 -0
  77. package/dist/component/payoutRevisionJournal/schema.js.map +1 -0
  78. package/dist/component/payoutRevisionJournal/state.d.ts +36 -0
  79. package/dist/component/payoutRevisionJournal/state.d.ts.map +1 -0
  80. package/dist/component/payoutRevisionJournal/state.js +111 -0
  81. package/dist/component/payoutRevisionJournal/state.js.map +1 -0
  82. package/dist/component/payoutRevisionMigration/mutations.d.ts +36 -0
  83. package/dist/component/payoutRevisionMigration/mutations.d.ts.map +1 -0
  84. package/dist/component/payoutRevisionMigration/mutations.js +126 -0
  85. package/dist/component/payoutRevisionMigration/mutations.js.map +1 -0
  86. package/dist/component/payoutRevisionMigration/queries.d.ts +38 -0
  87. package/dist/component/payoutRevisionMigration/queries.d.ts.map +1 -0
  88. package/dist/component/payoutRevisionMigration/queries.js +39 -0
  89. package/dist/component/payoutRevisionMigration/queries.js.map +1 -0
  90. package/dist/component/payoutRevisionMigration/schema.d.ts +115 -0
  91. package/dist/component/payoutRevisionMigration/schema.d.ts.map +1 -0
  92. package/dist/component/payoutRevisionMigration/schema.js +52 -0
  93. package/dist/component/payoutRevisionMigration/schema.js.map +1 -0
  94. package/dist/component/payoutSnapshots/legacyRevisionWriter.d.ts +4 -0
  95. package/dist/component/payoutSnapshots/legacyRevisionWriter.d.ts.map +1 -0
  96. package/dist/component/payoutSnapshots/legacyRevisionWriter.js +33 -0
  97. package/dist/component/payoutSnapshots/legacyRevisionWriter.js.map +1 -0
  98. package/dist/component/payoutSnapshots/revisions.d.ts.map +1 -1
  99. package/dist/component/payoutSnapshots/revisions.js +23 -29
  100. package/dist/component/payoutSnapshots/revisions.js.map +1 -1
  101. package/dist/component/processingCostReconciliation/rollback.d.ts +1 -1
  102. package/dist/component/refundSync/mutations.d.ts +1 -1
  103. package/dist/component/refundSync/mutations.d.ts.map +1 -1
  104. package/dist/component/reversalObservations/capture.d.ts +6 -0
  105. package/dist/component/reversalObservations/capture.d.ts.map +1 -0
  106. package/dist/component/reversalObservations/capture.js +96 -0
  107. package/dist/component/reversalObservations/capture.js.map +1 -0
  108. package/dist/component/reversalObservations/indexSlice.d.ts +29 -0
  109. package/dist/component/reversalObservations/indexSlice.d.ts.map +1 -0
  110. package/dist/component/reversalObservations/indexSlice.js +101 -0
  111. package/dist/component/reversalObservations/indexSlice.js.map +1 -0
  112. package/dist/component/reversalObservations/integrity.d.ts +25 -0
  113. package/dist/component/reversalObservations/integrity.d.ts.map +1 -0
  114. package/dist/component/reversalObservations/integrity.js +19 -0
  115. package/dist/component/reversalObservations/integrity.js.map +1 -0
  116. package/dist/component/reversalObservations/mutations.d.ts +37 -0
  117. package/dist/component/reversalObservations/mutations.d.ts.map +1 -0
  118. package/dist/component/reversalObservations/mutations.js +181 -0
  119. package/dist/component/reversalObservations/mutations.js.map +1 -0
  120. package/dist/component/reversalObservations/pagination.d.ts +34 -0
  121. package/dist/component/reversalObservations/pagination.d.ts.map +1 -0
  122. package/dist/component/reversalObservations/pagination.js +31 -0
  123. package/dist/component/reversalObservations/pagination.js.map +1 -0
  124. package/dist/component/reversalObservations/queries.d.ts +221 -0
  125. package/dist/component/reversalObservations/queries.d.ts.map +1 -0
  126. package/dist/component/reversalObservations/queries.js +114 -0
  127. package/dist/component/reversalObservations/queries.js.map +1 -0
  128. package/dist/component/reversalObservations/references.d.ts +17 -0
  129. package/dist/component/reversalObservations/references.d.ts.map +1 -0
  130. package/dist/component/reversalObservations/references.js +95 -0
  131. package/dist/component/reversalObservations/references.js.map +1 -0
  132. package/dist/component/reversalObservations/schema.d.ts +525 -0
  133. package/dist/component/reversalObservations/schema.d.ts.map +1 -0
  134. package/dist/component/reversalObservations/schema.js +92 -0
  135. package/dist/component/reversalObservations/schema.js.map +1 -0
  136. package/dist/component/reversalObservations/selectors.d.ts +3 -0
  137. package/dist/component/reversalObservations/selectors.d.ts.map +1 -0
  138. package/dist/component/reversalObservations/selectors.js +8 -0
  139. package/dist/component/reversalObservations/selectors.js.map +1 -0
  140. package/dist/component/reversalObservations/state.d.ts +34 -0
  141. package/dist/component/reversalObservations/state.d.ts.map +1 -0
  142. package/dist/component/reversalObservations/state.js +34 -0
  143. package/dist/component/reversalObservations/state.js.map +1 -0
  144. package/dist/component/schema.d.ts +275 -0
  145. package/dist/component/schema.js +10 -0
  146. package/dist/component/schema.js.map +1 -1
  147. package/dist/component/usage/allowance.fixtures.d.ts +291 -16
  148. package/dist/component/usage/allowance.fixtures.d.ts.map +1 -1
  149. package/dist/component/usageCredits/accounting.fixtures.d.ts +275 -0
  150. package/dist/component/usageCredits/accounting.fixtures.d.ts.map +1 -1
  151. package/dist/react/workflows/Usage.types.d.ts +2 -23
  152. package/dist/react/workflows/Usage.types.d.ts.map +1 -1
  153. package/dist/react/workflows/Usage.types.js.map +1 -1
  154. package/dist/react/workflows/UsageConfiguration.types.d.ts +3 -11
  155. package/dist/react/workflows/UsageConfiguration.types.d.ts.map +1 -1
  156. package/docs/README.md +4 -1
  157. package/docs/client-api.md +6 -0
  158. package/docs/financial-observations.md +51 -8
  159. package/docs/payout-revision-migration.md +54 -0
  160. package/docs/react-workflows-audit.md +73 -2
  161. package/docs/usage-configuration.md +4 -0
  162. package/docs/usage-delivery.md +4 -0
  163. package/docs/usage-example.md +250 -0
  164. package/docs/usage-react.md +4 -0
  165. package/docs/usage-settlement.md +8 -3
  166. package/package.json +4 -2
  167. package/src/client/financialOwnership.ts +2 -2
  168. package/src/client/paymentSource/resolver.ts +14 -2
  169. package/src/client/paymentSource/zeroTierLines.ts +42 -0
  170. package/src/client/payoutRevisionMigration.test.ts +40 -0
  171. package/src/client/payoutRevisionMigration.ts +96 -0
  172. package/src/client/publicTypes.ts +15 -0
  173. package/src/client/reversalObservations.test.ts +69 -0
  174. package/src/client/reversalObservations.ts +151 -0
  175. package/src/client/usage/configuration.ts +9 -0
  176. package/src/client/usage/deliveryProvider.test.ts +77 -37
  177. package/src/client/usage/deliveryProvider.ts +19 -0
  178. package/src/client/usage/index.ts +4 -0
  179. package/src/client/usage/invoiceSale.test.ts +68 -0
  180. package/src/client/usage/invoiceSale.ts +20 -2
  181. package/src/client/usage/views.ts +23 -0
  182. package/src/component/_generated/api.ts +28 -0
  183. package/src/component/_generated/component.ts +423 -0
  184. package/src/component/connect/mutations.ts +2 -0
  185. package/src/component/connect/reversalClaims.ts +13 -1
  186. package/src/component/financialObservations/transferSchema.ts +1 -0
  187. package/src/component/payoutRevisionJournal/mutations.ts +11 -0
  188. package/src/component/payoutRevisionJournal/schema.ts +34 -0
  189. package/src/component/payoutRevisionJournal/state.ts +141 -0
  190. package/src/component/payoutRevisionMigration/mutations.ts +135 -0
  191. package/src/component/payoutRevisionMigration/queries.ts +50 -0
  192. package/src/component/payoutRevisionMigration/schema.ts +51 -0
  193. package/src/component/payoutSnapshots/legacy-revisions.test.ts +246 -0
  194. package/src/component/payoutSnapshots/legacyRevisionWriter.ts +39 -0
  195. package/src/component/payoutSnapshots/revision-journal-callbacks.test.ts +160 -0
  196. package/src/component/payoutSnapshots/revision-journal-held.test.ts +94 -0
  197. package/src/component/payoutSnapshots/revision-journal.test.ts +310 -0
  198. package/src/component/payoutSnapshots/revision-migration.test.ts +128 -0
  199. package/src/component/payoutSnapshots/revisions.ts +22 -30
  200. package/src/component/reversalObservations/boundaries.test.ts +62 -0
  201. package/src/component/reversalObservations/capture-integrity.test.ts +119 -0
  202. package/src/component/reversalObservations/capture.ts +129 -0
  203. package/src/component/reversalObservations/continuation.test.ts +131 -0
  204. package/src/component/reversalObservations/indexSlice.ts +124 -0
  205. package/src/component/reversalObservations/integrity.ts +31 -0
  206. package/src/component/reversalObservations/lifecycle.test.ts +81 -0
  207. package/src/component/reversalObservations/mutations.ts +211 -0
  208. package/src/component/reversalObservations/pagination.ts +40 -0
  209. package/src/component/reversalObservations/provenance.test.ts +167 -0
  210. package/src/component/reversalObservations/queries.ts +121 -0
  211. package/src/component/reversalObservations/references.ts +134 -0
  212. package/src/component/reversalObservations/schema.ts +100 -0
  213. package/src/component/reversalObservations/selectors.ts +9 -0
  214. package/src/component/reversalObservations/state.ts +42 -0
  215. package/src/component/schema.ts +18 -0
  216. package/src/react/workflows/Usage.types.ts +5 -29
  217. package/src/react/workflows/UsageConfiguration.types.ts +3 -11
@@ -372,6 +372,14 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
372
372
  preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
373
373
  requestKey: string;
374
374
  result?: {
375
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
376
+ retryable: false;
377
+ status: "conflict";
378
+ } | {
379
+ reason: "policy_invalid";
380
+ retryable: false;
381
+ status: "rejected";
382
+ } | {
375
383
  operation: {
376
384
  accountId: string;
377
385
  operationId: import("convex/values").GenericId<"balanceFundingOperations">;
@@ -382,14 +390,6 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
382
390
  } | {
383
391
  enabled: boolean;
384
392
  status: "unchanged";
385
- } | {
386
- reason: "identity_changed" | "revision_changed" | "scope_busy";
387
- retryable: false;
388
- status: "conflict";
389
- } | {
390
- reason: "policy_invalid";
391
- retryable: false;
392
- status: "rejected";
393
393
  } | {
394
394
  reason: "provider_pending";
395
395
  retryable: true;
@@ -739,6 +739,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
739
739
  by_creation_time: ["_creationTime"];
740
740
  by_bucket_key: ["bucketKey", "_creationTime"];
741
741
  by_owner: ["userId", "orgId", "_creationTime"];
742
+ by_source_charge_id: ["sourceChargeId", "_creationTime"];
742
743
  by_transfer_id: ["transferId", "_creationTime"];
743
744
  };
744
745
  searchIndexes: {};
@@ -1089,6 +1090,75 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
1089
1090
  searchIndexes: {};
1090
1091
  vectorIndexes: {};
1091
1092
  };
1093
+ payoutRevisionJournal: {
1094
+ document: {
1095
+ _creationTime: number;
1096
+ _id: import("convex/values").GenericId<"payoutRevisionJournal">;
1097
+ accountId: string;
1098
+ fenceStream: boolean;
1099
+ financialPresent: boolean;
1100
+ financialRiskRevision: number;
1101
+ kind: "baseline" | "bump";
1102
+ legacyFinancialId?: import("convex/values").GenericId<"payoutFinancialRevisions"> | undefined;
1103
+ legacyRiskId?: import("convex/values").GenericId<"payoutRiskRevisions"> | undefined;
1104
+ revision: number;
1105
+ riskRevision: number;
1106
+ };
1107
+ fieldPaths: "_id" | ("_creationTime" | "accountId" | "fenceStream" | "financialPresent" | "financialRiskRevision" | "kind" | "legacyFinancialId" | "legacyRiskId" | "revision" | "riskRevision");
1108
+ indexes: {
1109
+ by_id: ["_id"];
1110
+ by_creation_time: ["_creationTime"];
1111
+ by_account_fence_revision: ["accountId", "fenceStream", "revision", "_creationTime"];
1112
+ by_account_revision: ["accountId", "revision", "_creationTime"];
1113
+ };
1114
+ searchIndexes: {};
1115
+ vectorIndexes: {};
1116
+ };
1117
+ payoutRevisionMigrationResults: {
1118
+ document: {
1119
+ _creationTime: number;
1120
+ _id: import("convex/values").GenericId<"payoutRevisionMigrationResults">;
1121
+ accountDigest: string;
1122
+ accountId?: string | undefined;
1123
+ jobId: import("convex/values").GenericId<"payoutRevisionMigrations">;
1124
+ reason?: "legacy_ambiguous" | "legacy_disagreement" | "legacy_invalid" | "representation_unavailable" | undefined;
1125
+ sourceId: string;
1126
+ sourceTable: string;
1127
+ status: "activated" | "held" | "unchanged";
1128
+ };
1129
+ fieldPaths: "_id" | ("_creationTime" | "accountDigest" | "accountId" | "jobId" | "reason" | "sourceId" | "sourceTable" | "status");
1130
+ indexes: {
1131
+ by_id: ["_id"];
1132
+ by_creation_time: ["_creationTime"];
1133
+ by_job_account: ["jobId", "accountDigest", "_creationTime"];
1134
+ };
1135
+ searchIndexes: {};
1136
+ vectorIndexes: {};
1137
+ };
1138
+ payoutRevisionMigrations: {
1139
+ document: {
1140
+ _creationTime: number;
1141
+ _id: import("convex/values").GenericId<"payoutRevisionMigrations">;
1142
+ activated: number;
1143
+ cursor: string | null;
1144
+ held: number;
1145
+ operationKey: string;
1146
+ phase: number;
1147
+ scanned: number;
1148
+ status: "finished" | "running";
1149
+ step: number;
1150
+ unchanged: number;
1151
+ visited: number;
1152
+ };
1153
+ fieldPaths: "_id" | ("_creationTime" | "activated" | "cursor" | "held" | "operationKey" | "phase" | "scanned" | "status" | "step" | "unchanged" | "visited");
1154
+ indexes: {
1155
+ by_id: ["_id"];
1156
+ by_creation_time: ["_creationTime"];
1157
+ by_operation: ["operationKey", "_creationTime"];
1158
+ };
1159
+ searchIndexes: {};
1160
+ vectorIndexes: {};
1161
+ };
1092
1162
  payoutRiskEvents: {
1093
1163
  document: {
1094
1164
  _creationTime: number;
@@ -1899,6 +1969,132 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
1899
1969
  searchIndexes: {};
1900
1970
  vectorIndexes: {};
1901
1971
  };
1972
+ reversalObservationPayloads: {
1973
+ document: {
1974
+ _creationTime: number;
1975
+ _id: import("convex/values").GenericId<"reversalObservationPayloads">;
1976
+ commissionExposure?: {
1977
+ chargeAmount: number;
1978
+ disputeId?: string | undefined;
1979
+ disputeState?: "lost" | "open" | "won" | undefined;
1980
+ finalized: boolean;
1981
+ kind: "dispute" | "refund";
1982
+ principal: number;
1983
+ refundId?: string | undefined;
1984
+ refundedPrincipal?: number | undefined;
1985
+ } | undefined;
1986
+ operationId: string;
1987
+ slices: {
1988
+ from: number;
1989
+ stripeTransferId: string;
1990
+ to: number;
1991
+ }[];
1992
+ sourceChargeId: string;
1993
+ };
1994
+ fieldPaths: "_id" | ("_creationTime" | "commissionExposure" | "commissionExposure.chargeAmount" | "commissionExposure.disputeId" | "commissionExposure.disputeState" | "commissionExposure.finalized" | "commissionExposure.kind" | "commissionExposure.principal" | "commissionExposure.refundId" | "commissionExposure.refundedPrincipal" | "operationId" | "slices" | "sourceChargeId");
1995
+ indexes: {
1996
+ by_id: ["_id"];
1997
+ by_creation_time: ["_creationTime"];
1998
+ };
1999
+ searchIndexes: {};
2000
+ vectorIndexes: {};
2001
+ };
2002
+ reversalObservationRefs: {
2003
+ document: {
2004
+ _creationTime: number;
2005
+ _id: import("convex/values").GenericId<"reversalObservationRefs">;
2006
+ chunkIndex: number;
2007
+ observationId: import("convex/values").GenericId<"reversalObservations">;
2008
+ refs: ({
2009
+ ambiguous: boolean;
2010
+ bucketDigest: string;
2011
+ identityFingerprint: string;
2012
+ markerGeneration?: number | undefined;
2013
+ markerId?: import("convex/values").GenericId<"financialTransferObservations"> | undefined;
2014
+ markerIdentityFingerprint?: string | undefined;
2015
+ ownerDigest?: string | undefined;
2016
+ ownershipFingerprint?: string | undefined;
2017
+ registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
2018
+ transferId: import("convex/values").GenericId<"transfers">;
2019
+ } | null)[];
2020
+ };
2021
+ fieldPaths: "_id" | ("_creationTime" | "chunkIndex" | "observationId" | "refs");
2022
+ indexes: {
2023
+ by_id: ["_id"];
2024
+ by_creation_time: ["_creationTime"];
2025
+ by_observation_chunk: ["observationId", "chunkIndex", "_creationTime"];
2026
+ };
2027
+ searchIndexes: {};
2028
+ vectorIndexes: {};
2029
+ };
2030
+ reversalObservationSlices: {
2031
+ document: {
2032
+ _creationTime: number;
2033
+ _id: import("convex/values").GenericId<"reversalObservationSlices">;
2034
+ bucketDigest?: string | undefined;
2035
+ bucketKey?: string | undefined;
2036
+ generation: number;
2037
+ identityStatus: "contradictory" | "matched" | "unknown";
2038
+ observationId: import("convex/values").GenericId<"reversalObservations">;
2039
+ orgId?: string | undefined;
2040
+ originalOperationId: import("convex/values").GenericId<"transferReversalOps">;
2041
+ ownerDigest?: string | undefined;
2042
+ ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
2043
+ registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
2044
+ sliceIndex: number;
2045
+ transferGeneration: number | null;
2046
+ transferId?: import("convex/values").GenericId<"transfers"> | undefined;
2047
+ userId?: string | undefined;
2048
+ };
2049
+ fieldPaths: "_id" | ("_creationTime" | "bucketDigest" | "bucketKey" | "generation" | "identityStatus" | "observationId" | "orgId" | "originalOperationId" | "ownerDigest" | "ownershipStatus" | "registrationId" | "sliceIndex" | "transferGeneration" | "transferId" | "userId");
2050
+ indexes: {
2051
+ by_id: ["_id"];
2052
+ by_creation_time: ["_creationTime"];
2053
+ by_bucket: ["bucketDigest", "_creationTime"];
2054
+ by_observation_slice: ["observationId", "sliceIndex", "_creationTime"];
2055
+ by_owner: ["ownerDigest", "_creationTime"];
2056
+ };
2057
+ searchIndexes: {};
2058
+ vectorIndexes: {};
2059
+ };
2060
+ reversalObservations: {
2061
+ document: {
2062
+ _creationTime: number;
2063
+ _id: import("convex/values").GenericId<"reversalObservations">;
2064
+ deleted: boolean;
2065
+ fingerprint: string;
2066
+ generation: number;
2067
+ indexTransferGeneration: number | null;
2068
+ indexedCount: number;
2069
+ isContradictory: boolean;
2070
+ latestIdentityFingerprint: string;
2071
+ latestPayloadId: import("convex/values").GenericId<"reversalObservationPayloads">;
2072
+ legacy: boolean;
2073
+ nextIndex: number;
2074
+ operationDigest: string;
2075
+ originalFingerprint: string;
2076
+ originalIdentityFingerprint: string;
2077
+ originalOperationId: import("convex/values").GenericId<"transferReversalOps">;
2078
+ originalPayloadId: import("convex/values").GenericId<"reversalObservationPayloads">;
2079
+ producer: "reversal_claim_lifecycle";
2080
+ producerVersion: 1;
2081
+ referenceFingerprints: string[];
2082
+ sliceCount: number;
2083
+ sourceChargeDigest: string;
2084
+ sourceCreatedAt: number;
2085
+ status: "complete" | "held" | "pending" | "validating";
2086
+ };
2087
+ fieldPaths: "_id" | ("_creationTime" | "deleted" | "fingerprint" | "generation" | "indexTransferGeneration" | "indexedCount" | "isContradictory" | "latestIdentityFingerprint" | "latestPayloadId" | "legacy" | "nextIndex" | "operationDigest" | "originalFingerprint" | "originalIdentityFingerprint" | "originalOperationId" | "originalPayloadId" | "producer" | "producerVersion" | "referenceFingerprints" | "sliceCount" | "sourceChargeDigest" | "sourceCreatedAt" | "status");
2088
+ indexes: {
2089
+ by_id: ["_id"];
2090
+ by_creation_time: ["_creationTime"];
2091
+ by_operation_digest: ["operationDigest", "_creationTime"];
2092
+ by_original_operation: ["originalOperationId", "_creationTime"];
2093
+ by_source_charge_digest: ["sourceChargeDigest", "_creationTime"];
2094
+ };
2095
+ searchIndexes: {};
2096
+ vectorIndexes: {};
2097
+ };
1902
2098
  settlementAllocations: {
1903
2099
  document: {
1904
2100
  _creationTime: number;
@@ -3020,6 +3216,14 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
3020
3216
  preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
3021
3217
  requestKey: string;
3022
3218
  result?: {
3219
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
3220
+ retryable: false;
3221
+ status: "conflict";
3222
+ } | {
3223
+ reason: "policy_invalid";
3224
+ retryable: false;
3225
+ status: "rejected";
3226
+ } | {
3023
3227
  operation: {
3024
3228
  accountId: string;
3025
3229
  operationId: import("convex/values").GenericId<"balanceFundingOperations">;
@@ -3030,14 +3234,6 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
3030
3234
  } | {
3031
3235
  enabled: boolean;
3032
3236
  status: "unchanged";
3033
- } | {
3034
- reason: "identity_changed" | "revision_changed" | "scope_busy";
3035
- retryable: false;
3036
- status: "conflict";
3037
- } | {
3038
- reason: "policy_invalid";
3039
- retryable: false;
3040
- status: "rejected";
3041
3237
  } | {
3042
3238
  reason: "provider_pending";
3043
3239
  retryable: true;
@@ -3387,6 +3583,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
3387
3583
  by_creation_time: ["_creationTime"];
3388
3584
  by_bucket_key: ["bucketKey", "_creationTime"];
3389
3585
  by_owner: ["userId", "orgId", "_creationTime"];
3586
+ by_source_charge_id: ["sourceChargeId", "_creationTime"];
3390
3587
  by_transfer_id: ["transferId", "_creationTime"];
3391
3588
  };
3392
3589
  searchIndexes: {};
@@ -3737,6 +3934,75 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
3737
3934
  searchIndexes: {};
3738
3935
  vectorIndexes: {};
3739
3936
  };
3937
+ payoutRevisionJournal: {
3938
+ document: {
3939
+ _creationTime: number;
3940
+ _id: import("convex/values").GenericId<"payoutRevisionJournal">;
3941
+ accountId: string;
3942
+ fenceStream: boolean;
3943
+ financialPresent: boolean;
3944
+ financialRiskRevision: number;
3945
+ kind: "baseline" | "bump";
3946
+ legacyFinancialId?: import("convex/values").GenericId<"payoutFinancialRevisions"> | undefined;
3947
+ legacyRiskId?: import("convex/values").GenericId<"payoutRiskRevisions"> | undefined;
3948
+ revision: number;
3949
+ riskRevision: number;
3950
+ };
3951
+ fieldPaths: "_id" | ("_creationTime" | "accountId" | "fenceStream" | "financialPresent" | "financialRiskRevision" | "kind" | "legacyFinancialId" | "legacyRiskId" | "revision" | "riskRevision");
3952
+ indexes: {
3953
+ by_id: ["_id"];
3954
+ by_creation_time: ["_creationTime"];
3955
+ by_account_fence_revision: ["accountId", "fenceStream", "revision", "_creationTime"];
3956
+ by_account_revision: ["accountId", "revision", "_creationTime"];
3957
+ };
3958
+ searchIndexes: {};
3959
+ vectorIndexes: {};
3960
+ };
3961
+ payoutRevisionMigrationResults: {
3962
+ document: {
3963
+ _creationTime: number;
3964
+ _id: import("convex/values").GenericId<"payoutRevisionMigrationResults">;
3965
+ accountDigest: string;
3966
+ accountId?: string | undefined;
3967
+ jobId: import("convex/values").GenericId<"payoutRevisionMigrations">;
3968
+ reason?: "legacy_ambiguous" | "legacy_disagreement" | "legacy_invalid" | "representation_unavailable" | undefined;
3969
+ sourceId: string;
3970
+ sourceTable: string;
3971
+ status: "activated" | "held" | "unchanged";
3972
+ };
3973
+ fieldPaths: "_id" | ("_creationTime" | "accountDigest" | "accountId" | "jobId" | "reason" | "sourceId" | "sourceTable" | "status");
3974
+ indexes: {
3975
+ by_id: ["_id"];
3976
+ by_creation_time: ["_creationTime"];
3977
+ by_job_account: ["jobId", "accountDigest", "_creationTime"];
3978
+ };
3979
+ searchIndexes: {};
3980
+ vectorIndexes: {};
3981
+ };
3982
+ payoutRevisionMigrations: {
3983
+ document: {
3984
+ _creationTime: number;
3985
+ _id: import("convex/values").GenericId<"payoutRevisionMigrations">;
3986
+ activated: number;
3987
+ cursor: string | null;
3988
+ held: number;
3989
+ operationKey: string;
3990
+ phase: number;
3991
+ scanned: number;
3992
+ status: "finished" | "running";
3993
+ step: number;
3994
+ unchanged: number;
3995
+ visited: number;
3996
+ };
3997
+ fieldPaths: "_id" | ("_creationTime" | "activated" | "cursor" | "held" | "operationKey" | "phase" | "scanned" | "status" | "step" | "unchanged" | "visited");
3998
+ indexes: {
3999
+ by_id: ["_id"];
4000
+ by_creation_time: ["_creationTime"];
4001
+ by_operation: ["operationKey", "_creationTime"];
4002
+ };
4003
+ searchIndexes: {};
4004
+ vectorIndexes: {};
4005
+ };
3740
4006
  payoutRiskEvents: {
3741
4007
  document: {
3742
4008
  _creationTime: number;
@@ -4547,6 +4813,132 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
4547
4813
  searchIndexes: {};
4548
4814
  vectorIndexes: {};
4549
4815
  };
4816
+ reversalObservationPayloads: {
4817
+ document: {
4818
+ _creationTime: number;
4819
+ _id: import("convex/values").GenericId<"reversalObservationPayloads">;
4820
+ commissionExposure?: {
4821
+ chargeAmount: number;
4822
+ disputeId?: string | undefined;
4823
+ disputeState?: "lost" | "open" | "won" | undefined;
4824
+ finalized: boolean;
4825
+ kind: "dispute" | "refund";
4826
+ principal: number;
4827
+ refundId?: string | undefined;
4828
+ refundedPrincipal?: number | undefined;
4829
+ } | undefined;
4830
+ operationId: string;
4831
+ slices: {
4832
+ from: number;
4833
+ stripeTransferId: string;
4834
+ to: number;
4835
+ }[];
4836
+ sourceChargeId: string;
4837
+ };
4838
+ fieldPaths: "_id" | ("_creationTime" | "commissionExposure" | "commissionExposure.chargeAmount" | "commissionExposure.disputeId" | "commissionExposure.disputeState" | "commissionExposure.finalized" | "commissionExposure.kind" | "commissionExposure.principal" | "commissionExposure.refundId" | "commissionExposure.refundedPrincipal" | "operationId" | "slices" | "sourceChargeId");
4839
+ indexes: {
4840
+ by_id: ["_id"];
4841
+ by_creation_time: ["_creationTime"];
4842
+ };
4843
+ searchIndexes: {};
4844
+ vectorIndexes: {};
4845
+ };
4846
+ reversalObservationRefs: {
4847
+ document: {
4848
+ _creationTime: number;
4849
+ _id: import("convex/values").GenericId<"reversalObservationRefs">;
4850
+ chunkIndex: number;
4851
+ observationId: import("convex/values").GenericId<"reversalObservations">;
4852
+ refs: ({
4853
+ ambiguous: boolean;
4854
+ bucketDigest: string;
4855
+ identityFingerprint: string;
4856
+ markerGeneration?: number | undefined;
4857
+ markerId?: import("convex/values").GenericId<"financialTransferObservations"> | undefined;
4858
+ markerIdentityFingerprint?: string | undefined;
4859
+ ownerDigest?: string | undefined;
4860
+ ownershipFingerprint?: string | undefined;
4861
+ registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
4862
+ transferId: import("convex/values").GenericId<"transfers">;
4863
+ } | null)[];
4864
+ };
4865
+ fieldPaths: "_id" | ("_creationTime" | "chunkIndex" | "observationId" | "refs");
4866
+ indexes: {
4867
+ by_id: ["_id"];
4868
+ by_creation_time: ["_creationTime"];
4869
+ by_observation_chunk: ["observationId", "chunkIndex", "_creationTime"];
4870
+ };
4871
+ searchIndexes: {};
4872
+ vectorIndexes: {};
4873
+ };
4874
+ reversalObservationSlices: {
4875
+ document: {
4876
+ _creationTime: number;
4877
+ _id: import("convex/values").GenericId<"reversalObservationSlices">;
4878
+ bucketDigest?: string | undefined;
4879
+ bucketKey?: string | undefined;
4880
+ generation: number;
4881
+ identityStatus: "contradictory" | "matched" | "unknown";
4882
+ observationId: import("convex/values").GenericId<"reversalObservations">;
4883
+ orgId?: string | undefined;
4884
+ originalOperationId: import("convex/values").GenericId<"transferReversalOps">;
4885
+ ownerDigest?: string | undefined;
4886
+ ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
4887
+ registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
4888
+ sliceIndex: number;
4889
+ transferGeneration: number | null;
4890
+ transferId?: import("convex/values").GenericId<"transfers"> | undefined;
4891
+ userId?: string | undefined;
4892
+ };
4893
+ fieldPaths: "_id" | ("_creationTime" | "bucketDigest" | "bucketKey" | "generation" | "identityStatus" | "observationId" | "orgId" | "originalOperationId" | "ownerDigest" | "ownershipStatus" | "registrationId" | "sliceIndex" | "transferGeneration" | "transferId" | "userId");
4894
+ indexes: {
4895
+ by_id: ["_id"];
4896
+ by_creation_time: ["_creationTime"];
4897
+ by_bucket: ["bucketDigest", "_creationTime"];
4898
+ by_observation_slice: ["observationId", "sliceIndex", "_creationTime"];
4899
+ by_owner: ["ownerDigest", "_creationTime"];
4900
+ };
4901
+ searchIndexes: {};
4902
+ vectorIndexes: {};
4903
+ };
4904
+ reversalObservations: {
4905
+ document: {
4906
+ _creationTime: number;
4907
+ _id: import("convex/values").GenericId<"reversalObservations">;
4908
+ deleted: boolean;
4909
+ fingerprint: string;
4910
+ generation: number;
4911
+ indexTransferGeneration: number | null;
4912
+ indexedCount: number;
4913
+ isContradictory: boolean;
4914
+ latestIdentityFingerprint: string;
4915
+ latestPayloadId: import("convex/values").GenericId<"reversalObservationPayloads">;
4916
+ legacy: boolean;
4917
+ nextIndex: number;
4918
+ operationDigest: string;
4919
+ originalFingerprint: string;
4920
+ originalIdentityFingerprint: string;
4921
+ originalOperationId: import("convex/values").GenericId<"transferReversalOps">;
4922
+ originalPayloadId: import("convex/values").GenericId<"reversalObservationPayloads">;
4923
+ producer: "reversal_claim_lifecycle";
4924
+ producerVersion: 1;
4925
+ referenceFingerprints: string[];
4926
+ sliceCount: number;
4927
+ sourceChargeDigest: string;
4928
+ sourceCreatedAt: number;
4929
+ status: "complete" | "held" | "pending" | "validating";
4930
+ };
4931
+ fieldPaths: "_id" | ("_creationTime" | "deleted" | "fingerprint" | "generation" | "indexTransferGeneration" | "indexedCount" | "isContradictory" | "latestIdentityFingerprint" | "latestPayloadId" | "legacy" | "nextIndex" | "operationDigest" | "originalFingerprint" | "originalIdentityFingerprint" | "originalOperationId" | "originalPayloadId" | "producer" | "producerVersion" | "referenceFingerprints" | "sliceCount" | "sourceChargeDigest" | "sourceCreatedAt" | "status");
4932
+ indexes: {
4933
+ by_id: ["_id"];
4934
+ by_creation_time: ["_creationTime"];
4935
+ by_operation_digest: ["operationDigest", "_creationTime"];
4936
+ by_original_operation: ["originalOperationId", "_creationTime"];
4937
+ by_source_charge_digest: ["sourceChargeDigest", "_creationTime"];
4938
+ };
4939
+ searchIndexes: {};
4940
+ vectorIndexes: {};
4941
+ };
4550
4942
  settlementAllocations: {
4551
4943
  document: {
4552
4944
  _creationTime: number;
@@ -1 +1 @@
1
- {"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/component/earnings/triggers.ts"],"names":[],"mappings":"AA6GA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAA0D,CAAC"}
@@ -97,6 +97,7 @@ export declare const transferObservationsTable: import("convex/server").TableDef
97
97
  }, "required", "bucketKey" | "fingerprint" | "generation" | "isContradictory" | "observedFingerprint" | "orgId" | "ownershipFingerprint" | "ownershipStatus" | "producer" | "producerVersion" | "registrationId" | "role" | "sourceChargeId" | "sourceInvoiceId" | "stripeTransferId" | "transferId" | "userId">, {
98
98
  by_bucket_key: ["bucketKey", "_creationTime"];
99
99
  by_owner: ["userId", "orgId", "_creationTime"];
100
+ by_source_charge_id: ["sourceChargeId", "_creationTime"];
100
101
  by_transfer_id: ["transferId", "_creationTime"];
101
102
  }, {}, {}>;
102
103
  export declare const transferBatchFields: {
@@ -1 +1 @@
1
- {"version":3,"file":"transferSchema.d.ts","sourceRoot":"","sources":["../../../src/component/financialObservations/transferSchema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;IACzB,UAAU;IACV,gBAAgB;IAChB,cAAc;IACd,eAAe;IACf,SAAS;IACT,IAAI;IACJ,cAAc;IACd,MAAM;IACN,KAAK;IACL,eAAe;IACf,QAAQ;IACR,eAAe;IACf,WAAW;IACX,mBAAmB;IACnB,oBAAoB;IACpB,UAAU;IACV,eAAe;CAChB,CAAC;AACF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0UAIjC,CAAC;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAGG,CAAC;AAC1C,eAAO,MAAM,mBAAmB;IAC9B,mBAAmB;IACnB,WAAW;IACX,cAAc;IACd,QAAQ;IAIR,eAAe;IACf,WAAW;IACX,UAAU;IACV,mBAAmB;IACnB,eAAe;IACf,cAAc;IACd,WAAW;IACX,UAAU;IACV,KAAK;IACL,YAAY;;;;;;;;;;;;;CAcb,CAAC;AACF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6bAI3B,CAAC;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAIF,CAAC"}
1
+ {"version":3,"file":"transferSchema.d.ts","sourceRoot":"","sources":["../../../src/component/financialObservations/transferSchema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;IACzB,UAAU;IACV,gBAAgB;IAChB,cAAc;IACd,eAAe;IACf,SAAS;IACT,IAAI;IACJ,cAAc;IACd,MAAM;IACN,KAAK;IACL,eAAe;IACf,QAAQ;IACR,eAAe;IACf,WAAW;IACX,mBAAmB;IACnB,oBAAoB;IACpB,UAAU;IACV,eAAe;CAChB,CAAC;AACF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0UAIjC,CAAC;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAIG,CAAC;AAC1C,eAAO,MAAM,mBAAmB;IAC9B,mBAAmB;IACnB,WAAW;IACX,cAAc;IACd,QAAQ;IAIR,eAAe;IACf,WAAW;IACX,UAAU;IACV,mBAAmB;IACnB,eAAe;IACf,cAAc;IACd,WAAW;IACX,UAAU;IACV,KAAK;IACL,YAAY;;;;;;;;;;;;;CAcb,CAAC;AACF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6bAI3B,CAAC;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAIF,CAAC"}
@@ -28,6 +28,7 @@ export const transferObservationDoc = v.object({
28
28
  });
29
29
  export const transferObservationsTable = defineTable(transferFields)
30
30
  .index("by_transfer_id", ["transferId"])
31
+ .index("by_source_charge_id", ["sourceChargeId"])
31
32
  .index("by_bucket_key", ["bucketKey"])
32
33
  .index("by_owner", ["userId", "orgId"]);
33
34
  export const transferBatchFields = {
@@ -1 +1 @@
1
- {"version":3,"file":"transferSchema.js","sourceRoot":"","sources":["../../../src/component/financialObservations/transferSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC;IAC7B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACtC,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CA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C,0BAA0B,EAAE,CAAC,qBAAqB,CAAC,CAAC;KAC1D,KAAK,CAAC,gCAAgC,EAAE,CAAC,qBAAqB,EAAE,UAAU,CAAC,CAAC;KAC5E,KAAK,CAAC,iBAAiB,EAAE,CAAC,aAAa,CAAC,CAAC;KACzC,KAAK,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ /** Trusted-host schema migration only. Authorize the account before calling. */
2
+ export declare const activateAccount: import("convex/server").RegisteredMutation<"public", {
3
+ accountId: string;
4
+ }, Promise<{
5
+ accountId: string;
6
+ status: "held";
7
+ reason: "legacy_ambiguous" | "legacy_disagreement" | "legacy_invalid" | "representation_unavailable";
8
+ } | {
9
+ accountId: string;
10
+ status: "unchanged";
11
+ } | {
12
+ accountId: string;
13
+ status: "activated";
14
+ }>>;
15
+ //# sourceMappingURL=mutations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/payoutRevisionJournal/mutations.ts"],"names":[],"mappings":"AAKA,gFAAgF;AAChF,eAAO,MAAM,eAAe;;;;;;;;;;;;GAI1B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { v } from "convex/values";
2
+ import { mutation } from "../_generated/server.js";
3
+ import { activateRevisionAccount } from "./state.js";
4
+ import { activationResult } from "./schema.js";
5
+ /** Trusted-host schema migration only. Authorize the account before calling. */
6
+ export const activateAccount = mutation({
7
+ args: { accountId: v.string() },
8
+ returns: activationResult,
9
+ handler: async (ctx, args) => activateRevisionAccount(ctx, args.accountId),
10
+ });
11
+ //# sourceMappingURL=mutations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mutations.js","sourceRoot":"","sources":["../../../src/component/payoutRevisionJournal/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,gFAAgF;AAChF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC;IACtC,IAAI,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE;IAC/B,OAAO,EAAE,gBAAgB;IACzB,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,uBAAuB,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC;CAC3E,CAAC,CAAC"}
@@ -0,0 +1,45 @@
1
+ export declare const journalFields: {
2
+ accountId: import("convex/values").VString<string, "required">;
3
+ revision: import("convex/values").VFloat64<number, "required">;
4
+ riskRevision: import("convex/values").VFloat64<number, "required">;
5
+ financialRiskRevision: import("convex/values").VFloat64<number, "required">;
6
+ financialPresent: import("convex/values").VBoolean<boolean, "required">;
7
+ fenceStream: import("convex/values").VBoolean<boolean, "required">;
8
+ kind: import("convex/values").VUnion<"baseline" | "bump", [import("convex/values").VLiteral<"baseline", "required">, import("convex/values").VLiteral<"bump", "required">], "required", never>;
9
+ legacyFinancialId: import("convex/values").VId<import("convex/values").GenericId<"payoutFinancialRevisions"> | undefined, "optional">;
10
+ legacyRiskId: import("convex/values").VId<import("convex/values").GenericId<"payoutRiskRevisions"> | undefined, "optional">;
11
+ };
12
+ export declare const journalTable: import("convex/server").TableDefinition<import("convex/values").VObject<{
13
+ accountId: string;
14
+ fenceStream: boolean;
15
+ financialPresent: boolean;
16
+ financialRiskRevision: number;
17
+ kind: "baseline" | "bump";
18
+ legacyFinancialId?: import("convex/values").GenericId<"payoutFinancialRevisions"> | undefined;
19
+ legacyRiskId?: import("convex/values").GenericId<"payoutRiskRevisions"> | undefined;
20
+ revision: number;
21
+ riskRevision: number;
22
+ }, {
23
+ accountId: import("convex/values").VString<string, "required">;
24
+ revision: import("convex/values").VFloat64<number, "required">;
25
+ riskRevision: import("convex/values").VFloat64<number, "required">;
26
+ financialRiskRevision: import("convex/values").VFloat64<number, "required">;
27
+ financialPresent: import("convex/values").VBoolean<boolean, "required">;
28
+ fenceStream: import("convex/values").VBoolean<boolean, "required">;
29
+ kind: import("convex/values").VUnion<"baseline" | "bump", [import("convex/values").VLiteral<"baseline", "required">, import("convex/values").VLiteral<"bump", "required">], "required", never>;
30
+ legacyFinancialId: import("convex/values").VId<import("convex/values").GenericId<"payoutFinancialRevisions"> | undefined, "optional">;
31
+ legacyRiskId: import("convex/values").VId<import("convex/values").GenericId<"payoutRiskRevisions"> | undefined, "optional">;
32
+ }, "required", "accountId" | "fenceStream" | "financialPresent" | "financialRiskRevision" | "kind" | "legacyFinancialId" | "legacyRiskId" | "revision" | "riskRevision">, {
33
+ by_account_fence_revision: ["accountId", "fenceStream", "revision", "_creationTime"];
34
+ by_account_revision: ["accountId", "revision", "_creationTime"];
35
+ }, {}, {}>;
36
+ export declare const activationResult: import("convex/values").VObject<{
37
+ accountId: string;
38
+ reason?: "legacy_ambiguous" | "legacy_disagreement" | "legacy_invalid" | "representation_unavailable" | undefined;
39
+ status: "activated" | "held" | "unchanged";
40
+ }, {
41
+ accountId: import("convex/values").VString<string, "required">;
42
+ status: import("convex/values").VUnion<"activated" | "held" | "unchanged", [import("convex/values").VLiteral<"activated", "required">, import("convex/values").VLiteral<"unchanged", "required">, import("convex/values").VLiteral<"held", "required">], "required", never>;
43
+ reason: import("convex/values").VUnion<"legacy_ambiguous" | "legacy_disagreement" | "legacy_invalid" | "representation_unavailable" | undefined, [import("convex/values").VLiteral<"legacy_ambiguous", "required">, import("convex/values").VLiteral<"legacy_invalid", "required">, import("convex/values").VLiteral<"legacy_disagreement", "required">, import("convex/values").VLiteral<"representation_unavailable", "required">], "optional", never>;
44
+ }, "required", "accountId" | "reason" | "status">;
45
+ //# sourceMappingURL=schema.d.ts.map