@fantastic.dev/better-stripe 0.38.0 → 0.40.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 (167) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/MIGRATION.md +9 -0
  3. package/README.md +21 -1
  4. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +506 -2
  5. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  6. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +253 -1
  7. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  8. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +506 -2
  9. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  10. package/dist/client/connect/payoutSyncTestHelpers.d.ts +253 -1
  11. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  12. package/dist/client/costRecovery-invoices.d.ts.map +1 -1
  13. package/dist/client/costRecovery-invoices.js +3 -5
  14. package/dist/client/costRecovery-invoices.js.map +1 -1
  15. package/dist/client/costRecovery.d.ts +18 -0
  16. package/dist/client/costRecovery.d.ts.map +1 -1
  17. package/dist/client/costRecovery.js +4 -0
  18. package/dist/client/costRecovery.js.map +1 -1
  19. package/dist/client/index.d.ts +4 -2
  20. package/dist/client/index.d.ts.map +1 -1
  21. package/dist/client/index.js +3 -2
  22. package/dist/client/index.js.map +1 -1
  23. package/dist/client/paymentSource/client.d.ts +21 -0
  24. package/dist/client/paymentSource/client.d.ts.map +1 -0
  25. package/dist/client/paymentSource/client.js +8 -0
  26. package/dist/client/paymentSource/client.js.map +1 -0
  27. package/dist/client/paymentSource/contracts.d.ts +30 -0
  28. package/dist/client/paymentSource/contracts.d.ts.map +1 -0
  29. package/dist/client/paymentSource/contracts.js +16 -0
  30. package/dist/client/paymentSource/contracts.js.map +1 -0
  31. package/dist/client/paymentSource/economics.d.ts +12 -0
  32. package/dist/client/paymentSource/economics.d.ts.map +1 -0
  33. package/dist/client/paymentSource/economics.js +13 -0
  34. package/dist/client/paymentSource/economics.js.map +1 -0
  35. package/dist/client/paymentSource/funding.d.ts +10 -0
  36. package/dist/client/paymentSource/funding.d.ts.map +1 -0
  37. package/dist/client/paymentSource/funding.js +12 -0
  38. package/dist/client/paymentSource/funding.js.map +1 -0
  39. package/dist/client/paymentSource/history.d.ts +13 -0
  40. package/dist/client/paymentSource/history.d.ts.map +1 -0
  41. package/dist/client/paymentSource/history.js +41 -0
  42. package/dist/client/paymentSource/history.js.map +1 -0
  43. package/dist/client/paymentSource/resolver.d.ts +6 -0
  44. package/dist/client/paymentSource/resolver.d.ts.map +1 -0
  45. package/dist/client/paymentSource/resolver.js +222 -0
  46. package/dist/client/paymentSource/resolver.js.map +1 -0
  47. package/dist/client/processingCostDeficit/index.d.ts +27 -0
  48. package/dist/client/processingCostDeficit/index.d.ts.map +1 -0
  49. package/dist/client/processingCostDeficit/index.js +54 -0
  50. package/dist/client/processingCostDeficit/index.js.map +1 -0
  51. package/dist/client/settlement/verifiedSale.d.ts.map +1 -1
  52. package/dist/client/settlement/verifiedSale.js +4 -6
  53. package/dist/client/settlement/verifiedSale.js.map +1 -1
  54. package/dist/component/_generated/api.d.ts +284 -0
  55. package/dist/component/_generated/api.d.ts.map +1 -0
  56. package/dist/component/_generated/api.js +31 -0
  57. package/dist/component/_generated/api.js.map +1 -0
  58. package/dist/component/_generated/component.d.ts +527 -0
  59. package/dist/component/_generated/component.d.ts.map +1 -1
  60. package/dist/component/balanceFunding/helpers.d.ts +86 -0
  61. package/dist/component/balanceFunding/helpers.d.ts.map +1 -0
  62. package/dist/component/balanceFunding/helpers.js +68 -0
  63. package/dist/component/balanceFunding/helpers.js.map +1 -0
  64. package/dist/component/balanceFunding/importHandler.d.ts +13 -0
  65. package/dist/component/balanceFunding/importHandler.d.ts.map +1 -0
  66. package/dist/component/balanceFunding/importHandler.js +130 -0
  67. package/dist/component/balanceFunding/importHandler.js.map +1 -0
  68. package/dist/component/balanceFunding/lifecycleHandlers.d.ts +85 -0
  69. package/dist/component/balanceFunding/lifecycleHandlers.d.ts.map +1 -0
  70. package/dist/component/balanceFunding/lifecycleHandlers.js +60 -0
  71. package/dist/component/balanceFunding/lifecycleHandlers.js.map +1 -0
  72. package/dist/component/balanceFunding/mutationValidators.d.ts +238 -0
  73. package/dist/component/balanceFunding/mutationValidators.d.ts.map +1 -0
  74. package/dist/component/balanceFunding/mutationValidators.js +55 -0
  75. package/dist/component/balanceFunding/mutationValidators.js.map +1 -0
  76. package/dist/component/balanceFunding/mutations.d.ts +335 -0
  77. package/dist/component/balanceFunding/mutations.d.ts.map +1 -0
  78. package/dist/component/balanceFunding/mutations.js +106 -0
  79. package/dist/component/balanceFunding/mutations.js.map +1 -0
  80. package/dist/component/balanceFunding/preparationHandlers.d.ts +55 -0
  81. package/dist/component/balanceFunding/preparationHandlers.d.ts.map +1 -0
  82. package/dist/component/balanceFunding/preparationHandlers.js +165 -0
  83. package/dist/component/balanceFunding/preparationHandlers.js.map +1 -0
  84. package/dist/component/balanceFunding/queries.d.ts +151 -0
  85. package/dist/component/balanceFunding/queries.d.ts.map +1 -0
  86. package/dist/component/balanceFunding/queries.js +180 -0
  87. package/dist/component/balanceFunding/queries.js.map +1 -0
  88. package/dist/component/balanceFunding/schema.d.ts +748 -0
  89. package/dist/component/balanceFunding/schema.d.ts.map +1 -0
  90. package/dist/component/balanceFunding/schema.js +124 -0
  91. package/dist/component/balanceFunding/schema.js.map +1 -0
  92. package/dist/component/balanceFunding/stateHandlers.d.ts +58 -0
  93. package/dist/component/balanceFunding/stateHandlers.d.ts.map +1 -0
  94. package/dist/component/balanceFunding/stateHandlers.js +160 -0
  95. package/dist/component/balanceFunding/stateHandlers.js.map +1 -0
  96. package/dist/component/convex.config.d.ts.map +1 -1
  97. package/dist/component/convex.config.js +2 -0
  98. package/dist/component/convex.config.js.map +1 -1
  99. package/dist/component/costRecovery/completion.d.ts +1 -0
  100. package/dist/component/costRecovery/completion.d.ts.map +1 -1
  101. package/dist/component/costRecovery/helpers.d.ts +1 -0
  102. package/dist/component/costRecovery/helpers.d.ts.map +1 -1
  103. package/dist/component/costRecovery/mutations.d.ts +5 -0
  104. package/dist/component/costRecovery/mutations.d.ts.map +1 -1
  105. package/dist/component/costRecovery/preparation.d.ts +50 -0
  106. package/dist/component/costRecovery/preparation.d.ts.map +1 -0
  107. package/dist/component/costRecovery/preparation.js +108 -0
  108. package/dist/component/costRecovery/preparation.js.map +1 -0
  109. package/dist/component/costRecovery/queries.d.ts +1 -0
  110. package/dist/component/costRecovery/queries.d.ts.map +1 -1
  111. package/dist/component/costRecovery/reservations.d.ts +2 -0
  112. package/dist/component/costRecovery/reservations.d.ts.map +1 -1
  113. package/dist/component/costRecovery/schema.d.ts +7 -2
  114. package/dist/component/costRecovery/schema.d.ts.map +1 -1
  115. package/dist/component/costRecovery/schema.js +1 -0
  116. package/dist/component/costRecovery/schema.js.map +1 -1
  117. package/dist/component/durableExecution/runtime.d.ts +3 -0
  118. package/dist/component/durableExecution/runtime.d.ts.map +1 -0
  119. package/dist/component/durableExecution/runtime.js +12 -0
  120. package/dist/component/durableExecution/runtime.js.map +1 -0
  121. package/dist/component/earnings/triggers.d.ts +242 -2
  122. package/dist/component/earnings/triggers.d.ts.map +1 -1
  123. package/dist/component/schema.d.ts +253 -1
  124. package/dist/component/schema.js +4 -0
  125. package/dist/component/schema.js.map +1 -1
  126. package/docs/settlement.md +48 -0
  127. package/package.json +4 -2
  128. package/src/client/costRecovery-invoices.ts +3 -7
  129. package/src/client/costRecovery.test.ts +34 -0
  130. package/src/client/costRecovery.ts +21 -0
  131. package/src/client/index.ts +7 -2
  132. package/src/client/paymentSource/client.ts +13 -0
  133. package/src/client/paymentSource/contracts.ts +33 -0
  134. package/src/client/paymentSource/economics.ts +20 -0
  135. package/src/client/paymentSource/funding.ts +23 -0
  136. package/src/client/paymentSource/history.ts +48 -0
  137. package/src/client/paymentSource/resolver.test.ts +582 -0
  138. package/src/client/paymentSource/resolver.ts +350 -0
  139. package/src/client/processingCostDeficit/README.md +35 -0
  140. package/src/client/processingCostDeficit/calculator.test.ts +176 -0
  141. package/src/client/processingCostDeficit/index.ts +91 -0
  142. package/src/client/settlement/verifiedSale.ts +4 -10
  143. package/src/component/_generated/api.ts +23 -1
  144. package/src/component/_generated/component.ts +693 -0
  145. package/src/component/balanceFunding/failure.test.ts +116 -0
  146. package/src/component/balanceFunding/helpers.ts +102 -0
  147. package/src/component/balanceFunding/import.test.ts +221 -0
  148. package/src/component/balanceFunding/importHandler.ts +146 -0
  149. package/src/component/balanceFunding/lifecycleHandlers.ts +90 -0
  150. package/src/component/balanceFunding/lookup.test.ts +113 -0
  151. package/src/component/balanceFunding/mutationValidators.ts +63 -0
  152. package/src/component/balanceFunding/mutations.ts +136 -0
  153. package/src/component/balanceFunding/preparation.test.ts +146 -0
  154. package/src/component/balanceFunding/preparationHandlers.ts +204 -0
  155. package/src/component/balanceFunding/queries.ts +221 -0
  156. package/src/component/balanceFunding/requestLookup.test.ts +160 -0
  157. package/src/component/balanceFunding/schema.ts +169 -0
  158. package/src/component/balanceFunding/state.test.ts +352 -0
  159. package/src/component/balanceFunding/stateHandlers.ts +198 -0
  160. package/src/component/balanceFunding/validation.test.ts +100 -0
  161. package/src/component/convex.config.ts +2 -0
  162. package/src/component/costRecovery/preparation.test.ts +355 -0
  163. package/src/component/costRecovery/preparation.ts +124 -0
  164. package/src/component/costRecovery/schema.ts +1 -0
  165. package/src/component/durableExecution/composition.test.ts +568 -0
  166. package/src/component/durableExecution/runtime.ts +12 -0
  167. package/src/component/schema.ts +8 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preparation.js","sourceRoot":"","sources":["../../../src/component/costRecovery/preparation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,QAAQ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AE,MAAM,EAAE,MAAM,EAAE,CAAC;IAChE,CAAC;CACF,CAAC,CAAC"}
@@ -69,6 +69,7 @@ export declare const group: import("convex/server").RegisteredQuery<"public", {
69
69
  maxCredit: number;
70
70
  maxDebit: number;
71
71
  pendingOperations: number;
72
+ preparationSequence?: number | undefined;
72
73
  scopeKey: string;
73
74
  sourceGross?: number | undefined;
74
75
  sourceId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/costRecovery/queries.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,OAAO;;;;;;;;;;;;;GAiBlB,CAAC;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BrB,CAAC;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;UAQhB,CAAC;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;UAQtB,CAAC;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;UAQhB,CAAC;AAEH,mGAAmG;AACnG,eAAO,MAAM,WAAW;;;;;;;GAiBtB,CAAC"}
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/costRecovery/queries.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,OAAO;;;;;;;;;;;;;GAiBlB,CAAC;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BrB,CAAC;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;UAQhB,CAAC;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;UAQtB,CAAC;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;UAQhB,CAAC;AAEH,mGAAmG;AACnG,eAAO,MAAM,WAAW;;;;;;;GAiBtB,CAAC"}
@@ -58,6 +58,7 @@ export declare function reserveGroup(ctx: MutationCtx, args: Infer<typeof _reser
58
58
  maxCredit: number;
59
59
  maxDebit: number;
60
60
  pendingOperations: number;
61
+ preparationSequence?: number | undefined;
61
62
  scopeKey: string;
62
63
  sourceGross?: number | undefined;
63
64
  sourceId: string;
@@ -84,6 +85,7 @@ export declare function sealGroup(ctx: MutationCtx, args: {
84
85
  maxCredit: number;
85
86
  maxDebit: number;
86
87
  pendingOperations: number;
88
+ preparationSequence?: number | undefined;
87
89
  scopeKey: string;
88
90
  sourceGross?: number | undefined;
89
91
  sourceId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"reservations.d.ts","sourceRoot":"","sources":["../../../src/component/costRecovery/reservations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAY3D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;4LAAwB,CAAC;AAC3C,wBAAsB,YAAY,CAChC,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,KAAK,CAAC,OAAO,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyIjC;AACD,wBAAsB,SAAS,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;GAQ3E"}
1
+ {"version":3,"file":"reservations.d.ts","sourceRoot":"","sources":["../../../src/component/costRecovery/reservations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAY3D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;4LAAwB,CAAC;AAC3C,wBAAsB,YAAY,CAChC,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,KAAK,CAAC,OAAO,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyIjC;AACD,wBAAsB,SAAS,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;GAQ3E"}
@@ -156,6 +156,7 @@ export declare const groupFields: {
156
156
  maxCredit: import("convex/values").VFloat64<number, "required">;
157
157
  amount: import("convex/values").VFloat64<number, "required">;
158
158
  pendingOperations: import("convex/values").VFloat64<number, "required">;
159
+ preparationSequence: import("convex/values").VFloat64<number | undefined, "optional">;
159
160
  invoiceItemId: import("convex/values").VString<string | undefined, "optional">;
160
161
  invoiceFunding: import("convex/values").VObject<{
161
162
  sourceChargeId: string;
@@ -184,6 +185,7 @@ export declare const groupDoc: import("convex/values").VObject<{
184
185
  maxCredit: number;
185
186
  maxDebit: number;
186
187
  pendingOperations: number;
188
+ preparationSequence?: number | undefined;
187
189
  scopeKey: string;
188
190
  sourceGross?: number | undefined;
189
191
  sourceId: string;
@@ -203,6 +205,7 @@ export declare const groupDoc: import("convex/values").VObject<{
203
205
  maxCredit: import("convex/values").VFloat64<number, "required">;
204
206
  amount: import("convex/values").VFloat64<number, "required">;
205
207
  pendingOperations: import("convex/values").VFloat64<number, "required">;
208
+ preparationSequence: import("convex/values").VFloat64<number | undefined, "optional">;
206
209
  invoiceItemId: import("convex/values").VString<string | undefined, "optional">;
207
210
  invoiceFunding: import("convex/values").VObject<{
208
211
  sourceChargeId: string;
@@ -216,7 +219,7 @@ export declare const groupDoc: import("convex/values").VObject<{
216
219
  status: import("convex/values").VUnion<"collected" | "collecting" | "open" | "released" | "releasing" | "sealed", [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"sealed", "required">, import("convex/values").VLiteral<"collecting", "required">, import("convex/values").VLiteral<"releasing", "required">, import("convex/values").VLiteral<"collected", "required">, import("convex/values").VLiteral<"released", "required">], "required", never>;
217
220
  _id: import("convex/values").VId<import("convex/values").GenericId<"recoveryGroups">, "required">;
218
221
  _creationTime: import("convex/values").VFloat64<number, "required">;
219
- }, "required", "_creationTime" | "_id" | "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status">;
222
+ }, "required", "_creationTime" | "_id" | "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "preparationSequence" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status">;
220
223
  export declare const reservationFields: {
221
224
  operationKey: import("convex/values").VString<string, "required">;
222
225
  groupKey: import("convex/values").VString<string, "required">;
@@ -358,6 +361,7 @@ export declare const groupsTable: import("convex/server").TableDefinition<import
358
361
  maxCredit: number;
359
362
  maxDebit: number;
360
363
  pendingOperations: number;
364
+ preparationSequence?: number | undefined;
361
365
  scopeKey: string;
362
366
  sourceGross?: number | undefined;
363
367
  sourceId: string;
@@ -377,6 +381,7 @@ export declare const groupsTable: import("convex/server").TableDefinition<import
377
381
  maxCredit: import("convex/values").VFloat64<number, "required">;
378
382
  amount: import("convex/values").VFloat64<number, "required">;
379
383
  pendingOperations: import("convex/values").VFloat64<number, "required">;
384
+ preparationSequence: import("convex/values").VFloat64<number | undefined, "optional">;
380
385
  invoiceItemId: import("convex/values").VString<string | undefined, "optional">;
381
386
  invoiceFunding: import("convex/values").VObject<{
382
387
  sourceChargeId: string;
@@ -388,7 +393,7 @@ export declare const groupsTable: import("convex/server").TableDefinition<import
388
393
  sourceProcessingFee: import("convex/values").VFloat64<number, "required">;
389
394
  }, "optional", "sourceChargeId" | "sourceGross" | "sourceProcessingFee">;
390
395
  status: import("convex/values").VUnion<"collected" | "collecting" | "open" | "released" | "releasing" | "sealed", [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"sealed", "required">, import("convex/values").VLiteral<"collecting", "required">, import("convex/values").VLiteral<"releasing", "required">, import("convex/values").VLiteral<"collected", "required">, import("convex/values").VLiteral<"released", "required">], "required", never>;
391
- }, "required", "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status">, {
396
+ }, "required", "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "preparationSequence" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status">, {
392
397
  by_key: ["groupKey", "_creationTime"];
393
398
  }, {}, {}>;
394
399
  export declare const reservationsTable: import("convex/server").TableDefinition<import("convex/values").VObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/costRecovery/schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;IACtB,SAAS;IACT,QAAQ;IACR,QAAQ;CACT,CAAC;AACF,eAAO,MAAM,YAAY;IACvB,SAAS;IACT,eAAe;IACf,cAAc;IACd,WAAW;CACZ,CAAC;AACF,eAAO,MAAM,aAAa,iQAIzB,CAAC;AACF,eAAO,MAAM,iBAAiB;;;;;;;;;;CAQ7B,CAAC;AACF,eAAO,MAAM,iBAAiB;;;;;;;;;;6EAK5B,CAAC;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;CAItB,CAAC;AACF,eAAO,MAAM,WAAW;;;;;;;;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AAO,MAAM,WAAW;;;;;;;;;;;;;CAIvB,CAAC;AACF,eAAO,MAAM,UAAU;IACrB,QAAQ;IACR,OAAO;IACP,KAAK;CACN,CAAC;AACF,eAAO,MAAM,YAAY;IACvB,QAAQ;IACR,iBAAiB;IACjB,QAAQ;CACT,CAAC"}
@@ -64,6 +64,7 @@ export const groupFields = {
64
64
  ...groupInput,
65
65
  amount: v.number(),
66
66
  pendingOperations: v.number(),
67
+ preparationSequence: v.optional(v.number()),
67
68
  invoiceItemId: v.optional(v.string()),
68
69
  invoiceFunding: v.optional(v.object({
69
70
  sourceChargeId: v.string(),
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/component/costRecovery/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC;AACF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC;AACF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAClC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EACrB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EACrB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAClB,CAAC;AACF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,GAAG,WAAW;IACd,QAAQ,EAAE,CAAC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ime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/component/durableExecution/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAMvD,eAAO,MAAM,iBAAiB,iBAK5B,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { WorkflowManager } from "@convex-dev/workflow";
2
+ import { components } from "../_generated/api.js";
3
+ // Workflow owns its Workpool. Do not enqueue workflow steps in a second pool.
4
+ // Provider writes require phase-specific reconciliation before any replay;
5
+ // throwing from an action does not prove the provider rejected its effect.
6
+ export const executionWorkflow = new WorkflowManager(components.workflow, {
7
+ workpoolOptions: {
8
+ maxParallelism: 2,
9
+ retryActionsByDefault: false,
10
+ },
11
+ });
12
+ //# sourceMappingURL=runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/component/durableExecution/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,8EAA8E;AAC9E,2EAA2E;AAC3E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,eAAe,CAAC,UAAU,CAAC,QAAQ,EAAE;IACxE,eAAe,EAAE;QACf,cAAc,EAAE,CAAC;QACjB,qBAAqB,EAAE,KAAK;KAC7B;CACF,CAAC,CAAC"}
@@ -244,6 +244,125 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
244
244
  searchIndexes: {};
245
245
  vectorIndexes: {};
246
246
  };
247
+ balanceFundingOperations: {
248
+ document: {
249
+ _creationTime: number;
250
+ _id: import("convex/values").GenericId<"balanceFundingOperations">;
251
+ accountId: string;
252
+ cancelRequested: boolean;
253
+ enabled: boolean;
254
+ failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
255
+ kind: "apply" | "prepare";
256
+ preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
257
+ providerKey: string;
258
+ providerKeys: {
259
+ attach?: string | undefined;
260
+ create?: string | undefined;
261
+ disable: string;
262
+ enable: string;
263
+ };
264
+ receipt?: {
265
+ customerAccount: string;
266
+ paymentMethodId: string | null;
267
+ paymentMethodTypes: string[] | null;
268
+ providerApiVersion: string;
269
+ stripeSubscriptionId: string;
270
+ } | undefined;
271
+ scopeKey: string;
272
+ state: "canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown";
273
+ version: number;
274
+ };
275
+ fieldPaths: "_id" | ("_creationTime" | "accountId" | "cancelRequested" | "enabled" | "failureCode" | "kind" | "preparationId" | "providerKey" | "providerKeys" | "providerKeys.attach" | "providerKeys.create" | "providerKeys.disable" | "providerKeys.enable" | "receipt" | "receipt.customerAccount" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "scopeKey" | "state" | "version");
276
+ indexes: {
277
+ by_id: ["_id"];
278
+ by_creation_time: ["_creationTime"];
279
+ by_preparation_version: ["preparationId", "version", "_creationTime"];
280
+ };
281
+ searchIndexes: {};
282
+ vectorIndexes: {};
283
+ };
284
+ balanceFundingPreparations: {
285
+ document: {
286
+ _creationTime: number;
287
+ _id: import("convex/values").GenericId<"balanceFundingPreparations">;
288
+ accountId: string;
289
+ activeOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
290
+ consentAt: number;
291
+ consentReference: string;
292
+ enabled: boolean;
293
+ operationVersion: number;
294
+ preparation: {
295
+ customerAccount: string;
296
+ paymentMethodId?: string | undefined;
297
+ previousPaymentMethodId: string | null;
298
+ previousPaymentMethodTypes: string[] | null;
299
+ stripeSubscriptionId: string;
300
+ };
301
+ preparationOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
302
+ providerApiVersion: string;
303
+ scopeKey: string;
304
+ startsPaused: boolean;
305
+ verified: boolean;
306
+ };
307
+ fieldPaths: "_id" | ("_creationTime" | "accountId" | "activeOperationId" | "consentAt" | "consentReference" | "enabled" | "operationVersion" | "preparation" | "preparation.customerAccount" | "preparation.paymentMethodId" | "preparation.previousPaymentMethodId" | "preparation.previousPaymentMethodTypes" | "preparation.stripeSubscriptionId" | "preparationOperationId" | "providerApiVersion" | "scopeKey" | "startsPaused" | "verified");
308
+ indexes: {
309
+ by_id: ["_id"];
310
+ by_creation_time: ["_creationTime"];
311
+ by_account_subscription: ["accountId", "preparation.stripeSubscriptionId", "_creationTime"];
312
+ };
313
+ searchIndexes: {};
314
+ vectorIndexes: {};
315
+ };
316
+ balanceFundingRequests: {
317
+ document: {
318
+ _creationTime: number;
319
+ _id: import("convex/values").GenericId<"balanceFundingRequests">;
320
+ imported?: {
321
+ operation?: {
322
+ accountId: string;
323
+ operationId: import("convex/values").GenericId<"balanceFundingOperations">;
324
+ scopeKey: string;
325
+ version: number;
326
+ } | undefined;
327
+ preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
328
+ } | undefined;
329
+ payload: string;
330
+ preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
331
+ requestKey: string;
332
+ result?: {
333
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
334
+ retryable: false;
335
+ status: "conflict";
336
+ } | {
337
+ reason: "policy_invalid";
338
+ retryable: false;
339
+ status: "rejected";
340
+ } | {
341
+ operation: {
342
+ accountId: string;
343
+ operationId: import("convex/values").GenericId<"balanceFundingOperations">;
344
+ scopeKey: string;
345
+ version: number;
346
+ };
347
+ status: "accepted";
348
+ } | {
349
+ enabled: boolean;
350
+ status: "unchanged";
351
+ } | {
352
+ reason: "provider_pending";
353
+ retryable: true;
354
+ status: "not_ready";
355
+ } | undefined;
356
+ };
357
+ fieldPaths: "_id" | ("_creationTime" | "imported" | "imported.operation" | "imported.operation.accountId" | "imported.operation.operationId" | "imported.operation.scopeKey" | "imported.operation.version" | "imported.preparationId" | "payload" | "preparationId" | "requestKey" | "result" | "result.enabled" | "result.operation" | "result.operation.accountId" | "result.operation.operationId" | "result.operation.scopeKey" | "result.operation.version" | "result.reason" | "result.retryable" | "result.status");
358
+ indexes: {
359
+ by_id: ["_id"];
360
+ by_creation_time: ["_creationTime"];
361
+ by_request: ["requestKey", "_creationTime"];
362
+ };
363
+ searchIndexes: {};
364
+ vectorIndexes: {};
365
+ };
247
366
  checkoutSessions: {
248
367
  document: {
249
368
  _creationTime: number;
@@ -1336,6 +1455,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
1336
1455
  maxCredit: number;
1337
1456
  maxDebit: number;
1338
1457
  pendingOperations: number;
1458
+ preparationSequence?: number | undefined;
1339
1459
  scopeKey: string;
1340
1460
  sourceGross?: number | undefined;
1341
1461
  sourceId: string;
@@ -1343,7 +1463,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
1343
1463
  sourceProcessingFee?: number | undefined;
1344
1464
  status: "collected" | "collecting" | "open" | "released" | "releasing" | "sealed";
1345
1465
  };
1346
- fieldPaths: "_id" | ("_creationTime" | "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status");
1466
+ fieldPaths: "_id" | ("_creationTime" | "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "preparationSequence" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status");
1347
1467
  indexes: {
1348
1468
  by_id: ["_id"];
1349
1469
  by_creation_time: ["_creationTime"];
@@ -1822,6 +1942,125 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
1822
1942
  searchIndexes: {};
1823
1943
  vectorIndexes: {};
1824
1944
  };
1945
+ balanceFundingOperations: {
1946
+ document: {
1947
+ _creationTime: number;
1948
+ _id: import("convex/values").GenericId<"balanceFundingOperations">;
1949
+ accountId: string;
1950
+ cancelRequested: boolean;
1951
+ enabled: boolean;
1952
+ failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
1953
+ kind: "apply" | "prepare";
1954
+ preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
1955
+ providerKey: string;
1956
+ providerKeys: {
1957
+ attach?: string | undefined;
1958
+ create?: string | undefined;
1959
+ disable: string;
1960
+ enable: string;
1961
+ };
1962
+ receipt?: {
1963
+ customerAccount: string;
1964
+ paymentMethodId: string | null;
1965
+ paymentMethodTypes: string[] | null;
1966
+ providerApiVersion: string;
1967
+ stripeSubscriptionId: string;
1968
+ } | undefined;
1969
+ scopeKey: string;
1970
+ state: "canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown";
1971
+ version: number;
1972
+ };
1973
+ fieldPaths: "_id" | ("_creationTime" | "accountId" | "cancelRequested" | "enabled" | "failureCode" | "kind" | "preparationId" | "providerKey" | "providerKeys" | "providerKeys.attach" | "providerKeys.create" | "providerKeys.disable" | "providerKeys.enable" | "receipt" | "receipt.customerAccount" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "scopeKey" | "state" | "version");
1974
+ indexes: {
1975
+ by_id: ["_id"];
1976
+ by_creation_time: ["_creationTime"];
1977
+ by_preparation_version: ["preparationId", "version", "_creationTime"];
1978
+ };
1979
+ searchIndexes: {};
1980
+ vectorIndexes: {};
1981
+ };
1982
+ balanceFundingPreparations: {
1983
+ document: {
1984
+ _creationTime: number;
1985
+ _id: import("convex/values").GenericId<"balanceFundingPreparations">;
1986
+ accountId: string;
1987
+ activeOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
1988
+ consentAt: number;
1989
+ consentReference: string;
1990
+ enabled: boolean;
1991
+ operationVersion: number;
1992
+ preparation: {
1993
+ customerAccount: string;
1994
+ paymentMethodId?: string | undefined;
1995
+ previousPaymentMethodId: string | null;
1996
+ previousPaymentMethodTypes: string[] | null;
1997
+ stripeSubscriptionId: string;
1998
+ };
1999
+ preparationOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
2000
+ providerApiVersion: string;
2001
+ scopeKey: string;
2002
+ startsPaused: boolean;
2003
+ verified: boolean;
2004
+ };
2005
+ fieldPaths: "_id" | ("_creationTime" | "accountId" | "activeOperationId" | "consentAt" | "consentReference" | "enabled" | "operationVersion" | "preparation" | "preparation.customerAccount" | "preparation.paymentMethodId" | "preparation.previousPaymentMethodId" | "preparation.previousPaymentMethodTypes" | "preparation.stripeSubscriptionId" | "preparationOperationId" | "providerApiVersion" | "scopeKey" | "startsPaused" | "verified");
2006
+ indexes: {
2007
+ by_id: ["_id"];
2008
+ by_creation_time: ["_creationTime"];
2009
+ by_account_subscription: ["accountId", "preparation.stripeSubscriptionId", "_creationTime"];
2010
+ };
2011
+ searchIndexes: {};
2012
+ vectorIndexes: {};
2013
+ };
2014
+ balanceFundingRequests: {
2015
+ document: {
2016
+ _creationTime: number;
2017
+ _id: import("convex/values").GenericId<"balanceFundingRequests">;
2018
+ imported?: {
2019
+ operation?: {
2020
+ accountId: string;
2021
+ operationId: import("convex/values").GenericId<"balanceFundingOperations">;
2022
+ scopeKey: string;
2023
+ version: number;
2024
+ } | undefined;
2025
+ preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
2026
+ } | undefined;
2027
+ payload: string;
2028
+ preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
2029
+ requestKey: string;
2030
+ result?: {
2031
+ reason: "identity_changed" | "revision_changed" | "scope_busy";
2032
+ retryable: false;
2033
+ status: "conflict";
2034
+ } | {
2035
+ reason: "policy_invalid";
2036
+ retryable: false;
2037
+ status: "rejected";
2038
+ } | {
2039
+ operation: {
2040
+ accountId: string;
2041
+ operationId: import("convex/values").GenericId<"balanceFundingOperations">;
2042
+ scopeKey: string;
2043
+ version: number;
2044
+ };
2045
+ status: "accepted";
2046
+ } | {
2047
+ enabled: boolean;
2048
+ status: "unchanged";
2049
+ } | {
2050
+ reason: "provider_pending";
2051
+ retryable: true;
2052
+ status: "not_ready";
2053
+ } | undefined;
2054
+ };
2055
+ fieldPaths: "_id" | ("_creationTime" | "imported" | "imported.operation" | "imported.operation.accountId" | "imported.operation.operationId" | "imported.operation.scopeKey" | "imported.operation.version" | "imported.preparationId" | "payload" | "preparationId" | "requestKey" | "result" | "result.enabled" | "result.operation" | "result.operation.accountId" | "result.operation.operationId" | "result.operation.scopeKey" | "result.operation.version" | "result.reason" | "result.retryable" | "result.status");
2056
+ indexes: {
2057
+ by_id: ["_id"];
2058
+ by_creation_time: ["_creationTime"];
2059
+ by_request: ["requestKey", "_creationTime"];
2060
+ };
2061
+ searchIndexes: {};
2062
+ vectorIndexes: {};
2063
+ };
1825
2064
  checkoutSessions: {
1826
2065
  document: {
1827
2066
  _creationTime: number;
@@ -2914,6 +3153,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
2914
3153
  maxCredit: number;
2915
3154
  maxDebit: number;
2916
3155
  pendingOperations: number;
3156
+ preparationSequence?: number | undefined;
2917
3157
  scopeKey: string;
2918
3158
  sourceGross?: number | undefined;
2919
3159
  sourceId: string;
@@ -2921,7 +3161,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
2921
3161
  sourceProcessingFee?: number | undefined;
2922
3162
  status: "collected" | "collecting" | "open" | "released" | "releasing" | "sealed";
2923
3163
  };
2924
- fieldPaths: "_id" | ("_creationTime" | "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status");
3164
+ fieldPaths: "_id" | ("_creationTime" | "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "preparationSequence" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status");
2925
3165
  indexes: {
2926
3166
  by_id: ["_id"];
2927
3167
  by_creation_time: ["_creationTime"];
@@ -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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