@fantastic.dev/better-stripe 0.37.1 → 0.39.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.
- package/CHANGELOG.md +53 -0
- package/MIGRATION.md +9 -0
- package/README.md +25 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +506 -2
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +253 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +506 -2
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +253 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/core/accountCapabilities.d.ts +20 -0
- package/dist/client/core/accountCapabilities.d.ts.map +1 -0
- package/dist/client/core/accountCapabilities.js +7 -0
- package/dist/client/core/accountCapabilities.js.map +1 -0
- package/dist/client/core/accountConfigurations.d.ts +46 -0
- package/dist/client/core/accountConfigurations.d.ts.map +1 -0
- package/dist/client/core/accountConfigurations.js +99 -0
- package/dist/client/core/accountConfigurations.js.map +1 -0
- package/dist/client/core/accountLinks.d.ts +29 -2
- package/dist/client/core/accountLinks.d.ts.map +1 -1
- package/dist/client/core/accountLinks.js +56 -4
- package/dist/client/core/accountLinks.js.map +1 -1
- package/dist/client/core/accounts.d.ts +2 -36
- package/dist/client/core/accounts.d.ts.map +1 -1
- package/dist/client/core/accounts.js +3 -73
- package/dist/client/core/accounts.js.map +1 -1
- package/dist/client/core/billingPortalClient.d.ts +14 -0
- package/dist/client/core/billingPortalClient.d.ts.map +1 -0
- package/dist/client/core/billingPortalClient.js +18 -0
- package/dist/client/core/billingPortalClient.js.map +1 -0
- package/dist/client/costRecovery-invoices.d.ts +4 -4
- package/dist/client/costRecovery.d.ts +19 -1
- package/dist/client/costRecovery.d.ts.map +1 -1
- package/dist/client/costRecovery.js +4 -0
- package/dist/client/costRecovery.js.map +1 -1
- package/dist/client/financialOutcomes/adapters.d.ts +18 -0
- package/dist/client/financialOutcomes/adapters.d.ts.map +1 -0
- package/dist/client/financialOutcomes/adapters.js +60 -0
- package/dist/client/financialOutcomes/adapters.js.map +1 -0
- package/dist/client/financialOutcomes/contracts.d.ts +42 -0
- package/dist/client/financialOutcomes/contracts.d.ts.map +1 -0
- package/dist/client/financialOutcomes/contracts.js +39 -0
- package/dist/client/financialOutcomes/contracts.js.map +1 -0
- package/dist/client/financialOutcomes/errors.d.ts +6 -0
- package/dist/client/financialOutcomes/errors.d.ts.map +1 -0
- package/dist/client/financialOutcomes/errors.js +22 -0
- package/dist/client/financialOutcomes/errors.js.map +1 -0
- package/dist/client/financialOutcomes/index.d.ts +6 -0
- package/dist/client/financialOutcomes/index.d.ts.map +1 -0
- package/dist/client/financialOutcomes/index.js +4 -0
- package/dist/client/financialOutcomes/index.js.map +1 -0
- package/dist/client/financialOutcomes/retry.d.ts +24 -0
- package/dist/client/financialOutcomes/retry.d.ts.map +1 -0
- package/dist/client/financialOutcomes/retry.js +31 -0
- package/dist/client/financialOutcomes/retry.js.map +1 -0
- package/dist/client/index.d.ts +21 -111
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +11 -85
- package/dist/client/index.js.map +1 -1
- package/dist/client/processingCostDeficit/index.d.ts +27 -0
- package/dist/client/processingCostDeficit/index.d.ts.map +1 -0
- package/dist/client/processingCostDeficit/index.js +54 -0
- package/dist/client/processingCostDeficit/index.js.map +1 -0
- package/dist/client/products/catalog.d.ts +26 -0
- package/dist/client/products/catalog.d.ts.map +1 -0
- package/dist/client/products/catalog.js +140 -0
- package/dist/client/products/catalog.js.map +1 -0
- package/dist/client/products/catalogClient.d.ts +109 -0
- package/dist/client/products/catalogClient.d.ts.map +1 -0
- package/dist/client/products/catalogClient.js +84 -0
- package/dist/client/products/catalogClient.js.map +1 -0
- package/dist/client/products/prices.d.ts +1 -0
- package/dist/client/products/prices.d.ts.map +1 -1
- package/dist/client/products/prices.js +1 -0
- package/dist/client/products/prices.js.map +1 -1
- package/dist/client/publicTypes.d.ts +2 -0
- package/dist/client/publicTypes.d.ts.map +1 -1
- package/dist/component/_generated/api.d.ts +284 -0
- package/dist/component/_generated/api.d.ts.map +1 -0
- package/dist/component/_generated/api.js +31 -0
- package/dist/component/_generated/api.js.map +1 -0
- package/dist/component/_generated/component.d.ts +535 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/balanceFunding/helpers.d.ts +86 -0
- package/dist/component/balanceFunding/helpers.d.ts.map +1 -0
- package/dist/component/balanceFunding/helpers.js +68 -0
- package/dist/component/balanceFunding/helpers.js.map +1 -0
- package/dist/component/balanceFunding/importHandler.d.ts +13 -0
- package/dist/component/balanceFunding/importHandler.d.ts.map +1 -0
- package/dist/component/balanceFunding/importHandler.js +130 -0
- package/dist/component/balanceFunding/importHandler.js.map +1 -0
- package/dist/component/balanceFunding/lifecycleHandlers.d.ts +85 -0
- package/dist/component/balanceFunding/lifecycleHandlers.d.ts.map +1 -0
- package/dist/component/balanceFunding/lifecycleHandlers.js +60 -0
- package/dist/component/balanceFunding/lifecycleHandlers.js.map +1 -0
- package/dist/component/balanceFunding/mutationValidators.d.ts +238 -0
- package/dist/component/balanceFunding/mutationValidators.d.ts.map +1 -0
- package/dist/component/balanceFunding/mutationValidators.js +55 -0
- package/dist/component/balanceFunding/mutationValidators.js.map +1 -0
- package/dist/component/balanceFunding/mutations.d.ts +335 -0
- package/dist/component/balanceFunding/mutations.d.ts.map +1 -0
- package/dist/component/balanceFunding/mutations.js +106 -0
- package/dist/component/balanceFunding/mutations.js.map +1 -0
- package/dist/component/balanceFunding/preparationHandlers.d.ts +55 -0
- package/dist/component/balanceFunding/preparationHandlers.d.ts.map +1 -0
- package/dist/component/balanceFunding/preparationHandlers.js +165 -0
- package/dist/component/balanceFunding/preparationHandlers.js.map +1 -0
- package/dist/component/balanceFunding/queries.d.ts +151 -0
- package/dist/component/balanceFunding/queries.d.ts.map +1 -0
- package/dist/component/balanceFunding/queries.js +180 -0
- package/dist/component/balanceFunding/queries.js.map +1 -0
- package/dist/component/balanceFunding/schema.d.ts +748 -0
- package/dist/component/balanceFunding/schema.d.ts.map +1 -0
- package/dist/component/balanceFunding/schema.js +124 -0
- package/dist/component/balanceFunding/schema.js.map +1 -0
- package/dist/component/balanceFunding/stateHandlers.d.ts +58 -0
- package/dist/component/balanceFunding/stateHandlers.d.ts.map +1 -0
- package/dist/component/balanceFunding/stateHandlers.js +160 -0
- package/dist/component/balanceFunding/stateHandlers.js.map +1 -0
- package/dist/component/convex.config.d.ts.map +1 -1
- package/dist/component/convex.config.js +2 -0
- package/dist/component/convex.config.js.map +1 -1
- package/dist/component/costRecovery/completion.d.ts +1 -0
- package/dist/component/costRecovery/completion.d.ts.map +1 -1
- package/dist/component/costRecovery/helpers.d.ts +1 -0
- package/dist/component/costRecovery/helpers.d.ts.map +1 -1
- package/dist/component/costRecovery/mutations.d.ts +5 -0
- package/dist/component/costRecovery/mutations.d.ts.map +1 -1
- package/dist/component/costRecovery/preparation.d.ts +50 -0
- package/dist/component/costRecovery/preparation.d.ts.map +1 -0
- package/dist/component/costRecovery/preparation.js +108 -0
- package/dist/component/costRecovery/preparation.js.map +1 -0
- package/dist/component/costRecovery/queries.d.ts +1 -0
- package/dist/component/costRecovery/queries.d.ts.map +1 -1
- package/dist/component/costRecovery/reservations.d.ts +2 -0
- package/dist/component/costRecovery/reservations.d.ts.map +1 -1
- package/dist/component/costRecovery/schema.d.ts +7 -2
- package/dist/component/costRecovery/schema.d.ts.map +1 -1
- package/dist/component/costRecovery/schema.js +1 -0
- package/dist/component/costRecovery/schema.js.map +1 -1
- package/dist/component/durableExecution/runtime.d.ts +3 -0
- package/dist/component/durableExecution/runtime.d.ts.map +1 -0
- package/dist/component/durableExecution/runtime.js +12 -0
- package/dist/component/durableExecution/runtime.js.map +1 -0
- package/dist/component/earnings/triggers.d.ts +242 -2
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/products/mutations.d.ts +9 -0
- package/dist/component/products/mutations.d.ts.map +1 -1
- package/dist/component/products/mutations.js +31 -2
- package/dist/component/products/mutations.js.map +1 -1
- package/dist/component/schema.d.ts +253 -1
- package/dist/component/schema.js +4 -0
- package/dist/component/schema.js.map +1 -1
- package/docs/read-contracts.md +33 -0
- package/package.json +4 -2
- package/src/client/core/account-session-client.test.ts +74 -0
- package/src/client/core/accountCapabilities.ts +22 -0
- package/src/client/core/accountConfigurations.test.ts +183 -0
- package/src/client/core/accountConfigurations.ts +161 -0
- package/src/client/core/accountLinks.test.ts +6 -2
- package/src/client/core/accountLinks.ts +122 -5
- package/src/client/core/accounts.ts +8 -115
- package/src/client/core/billingPortal.test.ts +247 -0
- package/src/client/core/billingPortalClient.ts +35 -0
- package/src/client/costRecovery.test.ts +34 -0
- package/src/client/costRecovery.ts +21 -0
- package/src/client/financialOutcomes/adapters.ts +88 -0
- package/src/client/financialOutcomes/contracts.ts +43 -0
- package/src/client/financialOutcomes/errors.ts +29 -0
- package/src/client/financialOutcomes/index.ts +5 -0
- package/src/client/financialOutcomes/outcomes.test.ts +254 -0
- package/src/client/financialOutcomes/retry.ts +52 -0
- package/src/client/index.test.ts +0 -64
- package/src/client/index.ts +35 -185
- package/src/client/processingCostDeficit/README.md +35 -0
- package/src/client/processingCostDeficit/calculator.test.ts +176 -0
- package/src/client/processingCostDeficit/index.ts +91 -0
- package/src/client/products/catalog.test.ts +389 -0
- package/src/client/products/catalog.ts +225 -0
- package/src/client/products/catalogClient.ts +172 -0
- package/src/client/products/prices.test.ts +24 -0
- package/src/client/products/prices.ts +2 -0
- package/src/client/publicTypes.ts +13 -0
- package/src/component/_generated/api.ts +27 -1
- package/src/component/_generated/component.ts +707 -0
- package/src/component/balanceFunding/failure.test.ts +116 -0
- package/src/component/balanceFunding/helpers.ts +102 -0
- package/src/component/balanceFunding/import.test.ts +221 -0
- package/src/component/balanceFunding/importHandler.ts +146 -0
- package/src/component/balanceFunding/lifecycleHandlers.ts +90 -0
- package/src/component/balanceFunding/lookup.test.ts +113 -0
- package/src/component/balanceFunding/mutationValidators.ts +63 -0
- package/src/component/balanceFunding/mutations.ts +136 -0
- package/src/component/balanceFunding/preparation.test.ts +146 -0
- package/src/component/balanceFunding/preparationHandlers.ts +204 -0
- package/src/component/balanceFunding/queries.ts +221 -0
- package/src/component/balanceFunding/requestLookup.test.ts +160 -0
- package/src/component/balanceFunding/schema.ts +169 -0
- package/src/component/balanceFunding/state.test.ts +352 -0
- package/src/component/balanceFunding/stateHandlers.ts +198 -0
- package/src/component/balanceFunding/validation.test.ts +100 -0
- package/src/component/convex.config.ts +2 -0
- package/src/component/costRecovery/preparation.test.ts +355 -0
- package/src/component/costRecovery/preparation.ts +124 -0
- package/src/component/costRecovery/schema.ts +1 -0
- package/src/component/durableExecution/composition.test.ts +568 -0
- package/src/component/durableExecution/runtime.ts +12 -0
- package/src/component/products/mutations.ts +39 -2
- 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,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EACL,OAAO,EACP,UAAU,EACV,WAAW,EACX,OAAO,EACP,WAAW,EACX,aAAa,GACd,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE5D,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CACzB,CAAC,CAAC,MAAM,CAAC;IACP,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;I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AAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;aAC9D,MAAM,EAAE,CAAC;QACZ,IAAI,SAAS;YAAE,OAAO,QAAQ,CAAC,kBAAkB,CAAC,CAAC;QACnD,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,YAAY,CAAC,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC;QACrE,MAAM,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,gBAAgB,EAAE,KAAK,CAAC,GAAG,EAAE;YAC9C,mBAAmB,EAAE,QAAQ;SAC9B,CAAC,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACxC,MAAM,MAAM,GAAG,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,KAAK,KAAK,CAAC,MAAM,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM;YACnB,CAAC,CAAC,MAAM,SAAS,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnD,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,gBAAgB,EAAE,KAAK,CAAC,GAAG,CAAC,CAAE,CAAC;QACrD,OAAO,EAAE,MAAM,EAAE,UAAmB,EAAE,KAAK,EAAE,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
|
|
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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;CAOvB,CAAC;AACF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gZAInB,CAAC;AACH,eAAO,MAAM,aAAa;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eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;UAIxB,CAAC;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAEtB,CAAC;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAEqB,CAAC;AAEpD,eAAO,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,CAA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AAC;CAC9B,CAAC;AACF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC7B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC"}
|
|
@@ -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
|
+
operation: {
|
|
334
|
+
accountId: string;
|
|
335
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
336
|
+
scopeKey: string;
|
|
337
|
+
version: number;
|
|
338
|
+
};
|
|
339
|
+
status: "accepted";
|
|
340
|
+
} | {
|
|
341
|
+
enabled: boolean;
|
|
342
|
+
status: "unchanged";
|
|
343
|
+
} | {
|
|
344
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
345
|
+
retryable: false;
|
|
346
|
+
status: "conflict";
|
|
347
|
+
} | {
|
|
348
|
+
reason: "policy_invalid";
|
|
349
|
+
retryable: false;
|
|
350
|
+
status: "rejected";
|
|
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
|
+
operation: {
|
|
2032
|
+
accountId: string;
|
|
2033
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
2034
|
+
scopeKey: string;
|
|
2035
|
+
version: number;
|
|
2036
|
+
};
|
|
2037
|
+
status: "accepted";
|
|
2038
|
+
} | {
|
|
2039
|
+
enabled: boolean;
|
|
2040
|
+
status: "unchanged";
|
|
2041
|
+
} | {
|
|
2042
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2043
|
+
retryable: false;
|
|
2044
|
+
status: "conflict";
|
|
2045
|
+
} | {
|
|
2046
|
+
reason: "policy_invalid";
|
|
2047
|
+
retryable: false;
|
|
2048
|
+
status: "rejected";
|
|
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
|
|
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"}
|
|
@@ -6,6 +6,15 @@ export declare const upsertProduct: import("convex/server").RegisteredMutation<"
|
|
|
6
6
|
name: string;
|
|
7
7
|
stripeProductId: string;
|
|
8
8
|
}, Promise<null>>;
|
|
9
|
+
/** Atomically import provider fields without reassigning a claimed owner. */
|
|
10
|
+
export declare const adoptProduct: import("convex/server").RegisteredMutation<"public", {
|
|
11
|
+
accountId?: string | undefined;
|
|
12
|
+
active: boolean;
|
|
13
|
+
description?: string | undefined;
|
|
14
|
+
metadata?: any;
|
|
15
|
+
name: string;
|
|
16
|
+
stripeProductId: string;
|
|
17
|
+
}, Promise<null>>;
|
|
9
18
|
export declare const upsertPrice: import("convex/server").RegisteredMutation<"public", {
|
|
10
19
|
active: boolean;
|
|
11
20
|
currency: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/products/mutations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/products/mutations.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,aAAa;;;;;;;iBA0BxB,CAAC;AAEH,6EAA6E;AAC7E,eAAO,MAAM,YAAY;;;;;;;iBA8BvB,CAAC;AAMH,eAAO,MAAM,WAAW;;;;;;;;;;;;iBA+BtB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { v } from "convex/values";
|
|
1
|
+
import { ConvexError, v } from "convex/values";
|
|
2
2
|
import { mutation } from "../_generated/server";
|
|
3
|
-
import { priceIntervalValidator, priceTypeValidator } from "./validators";
|
|
3
|
+
import { priceIntervalValidator, priceTypeValidator, productFields, } from "./validators";
|
|
4
4
|
// =============================================================================
|
|
5
5
|
// PRODUCT MUTATIONS
|
|
6
6
|
// =============================================================================
|
|
@@ -28,6 +28,35 @@ export const upsertProduct = mutation({
|
|
|
28
28
|
return null;
|
|
29
29
|
},
|
|
30
30
|
});
|
|
31
|
+
/** Atomically import provider fields without reassigning a claimed owner. */
|
|
32
|
+
export const adoptProduct = mutation({
|
|
33
|
+
args: productFields,
|
|
34
|
+
returns: v.null(),
|
|
35
|
+
handler: async (ctx, args) => {
|
|
36
|
+
const existing = await ctx.db
|
|
37
|
+
.query("products")
|
|
38
|
+
.withIndex("by_stripe_product_id", (q) => q.eq("stripeProductId", args.stripeProductId))
|
|
39
|
+
.first();
|
|
40
|
+
if (existing?.accountId !== undefined &&
|
|
41
|
+
args.accountId !== undefined &&
|
|
42
|
+
existing.accountId !== args.accountId) {
|
|
43
|
+
throw new ConvexError({
|
|
44
|
+
code: "INVALID_CONFIGURATION",
|
|
45
|
+
message: "Product ownership cannot be reassigned by adoption",
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
if (existing) {
|
|
49
|
+
await ctx.db.patch("products", existing._id, {
|
|
50
|
+
...args,
|
|
51
|
+
accountId: existing.accountId ?? args.accountId,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
await ctx.db.insert("products", args);
|
|
56
|
+
}
|
|
57
|
+
return null;
|
|
58
|
+
},
|
|
59
|
+
});
|
|
31
60
|
// =============================================================================
|
|
32
61
|
// PRICE MUTATIONS
|
|
33
62
|
// =============================================================================
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.js","sourceRoot":"","sources":["../../../src/component/products/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"mutations.js","sourceRoot":"","sources":["../../../src/component/products/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,GACd,MAAM,cAAc,CAAC;AAEtB,gFAAgF;AAChF,oBAAoB;AACpB,gFAAgF;AAEhF,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC;IACpC,IAAI,EAAE;QACJ,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;QAC3B,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;QACjC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;QACnC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;QACnB,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG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