@fantastic.dev/better-stripe 0.41.0 → 0.43.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 +25 -0
- package/README.md +1 -1
- package/dist/client/balanceFundingWorkflow/client.d.ts +172 -0
- package/dist/client/balanceFundingWorkflow/client.d.ts.map +1 -0
- package/dist/client/balanceFundingWorkflow/client.js +289 -0
- package/dist/client/balanceFundingWorkflow/client.js.map +1 -0
- package/dist/client/billing/balanceFunding.d.ts +5 -0
- package/dist/client/billing/balanceFunding.d.ts.map +1 -1
- package/dist/client/billing/balanceFunding.js +30 -0
- package/dist/client/billing/balanceFunding.js.map +1 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +1388 -2
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +710 -17
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +1420 -34
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +694 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/costRecovery-invoices.d.ts +3 -2
- package/dist/client/costRecovery-invoices.d.ts.map +1 -1
- package/dist/client/costRecovery-invoices.js +10 -5
- package/dist/client/costRecovery-invoices.js.map +1 -1
- package/dist/client/costRecovery.d.ts +4 -2
- package/dist/client/costRecovery.d.ts.map +1 -1
- package/dist/client/costRecovery.js +2 -2
- package/dist/client/costRecovery.js.map +1 -1
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +4 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/processingCostReconciliation/client.d.ts +14 -0
- package/dist/client/processingCostReconciliation/client.d.ts.map +1 -0
- package/dist/client/processingCostReconciliation/client.js +35 -0
- package/dist/client/processingCostReconciliation/client.js.map +1 -0
- package/dist/client/processingCostReconciliation/contracts.d.ts +172 -0
- package/dist/client/processingCostReconciliation/contracts.d.ts.map +1 -0
- package/dist/client/processingCostReconciliation/contracts.js +55 -0
- package/dist/client/processingCostReconciliation/contracts.js.map +1 -0
- package/dist/client/processingCostReconciliation/invoiceFunding.d.ts +15 -0
- package/dist/client/processingCostReconciliation/invoiceFunding.d.ts.map +1 -0
- package/dist/client/processingCostReconciliation/invoiceFunding.js +195 -0
- package/dist/client/processingCostReconciliation/invoiceFunding.js.map +1 -0
- package/dist/client/processingCostReconciliation/provider.d.ts +9 -0
- package/dist/client/processingCostReconciliation/provider.d.ts.map +1 -0
- package/dist/client/processingCostReconciliation/provider.js +148 -0
- package/dist/client/processingCostReconciliation/provider.js.map +1 -0
- package/dist/client/settlement/processingCostHistory.d.ts +12 -0
- package/dist/client/settlement/processingCostHistory.d.ts.map +1 -0
- package/dist/client/settlement/processingCostHistory.js +20 -0
- package/dist/client/settlement/processingCostHistory.js.map +1 -0
- package/dist/client/settlement/processingCosts.d.ts +3 -0
- package/dist/client/settlement/processingCosts.d.ts.map +1 -1
- package/dist/client/settlement/processingCosts.js +27 -7
- package/dist/client/settlement/processingCosts.js.map +1 -1
- package/dist/component/_generated/api.d.ts +36 -0
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/api.js.map +1 -1
- package/dist/component/_generated/component.d.ts +988 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/balanceFunding/helpers.d.ts +42 -0
- package/dist/component/balanceFunding/helpers.d.ts.map +1 -1
- package/dist/component/balanceFunding/internal/actions.d.ts +39 -0
- package/dist/component/balanceFunding/internal/actions.d.ts.map +1 -0
- package/dist/component/balanceFunding/internal/actions.js +80 -0
- package/dist/component/balanceFunding/internal/actions.js.map +1 -0
- package/dist/component/balanceFunding/internal/mutations.d.ts +55 -0
- package/dist/component/balanceFunding/internal/mutations.d.ts.map +1 -0
- package/dist/component/balanceFunding/internal/mutations.js +54 -0
- package/dist/component/balanceFunding/internal/mutations.js.map +1 -0
- package/dist/component/balanceFunding/internal/queries.d.ts +116 -0
- package/dist/component/balanceFunding/internal/queries.d.ts.map +1 -0
- package/dist/component/balanceFunding/internal/queries.js +35 -0
- package/dist/component/balanceFunding/internal/queries.js.map +1 -0
- package/dist/component/balanceFunding/internal/workflow.d.ts +10 -0
- package/dist/component/balanceFunding/internal/workflow.d.ts.map +1 -0
- package/dist/component/balanceFunding/internal/workflow.js +31 -0
- package/dist/component/balanceFunding/internal/workflow.js.map +1 -0
- package/dist/component/balanceFunding/lifecycleHandlers.d.ts +126 -0
- package/dist/component/balanceFunding/lifecycleHandlers.d.ts.map +1 -1
- package/dist/component/balanceFunding/mutations.d.ts +419 -16
- package/dist/component/balanceFunding/mutations.d.ts.map +1 -1
- package/dist/component/balanceFunding/mutations.js +24 -0
- package/dist/component/balanceFunding/mutations.js.map +1 -1
- package/dist/component/balanceFunding/preparationHandlers.d.ts +42 -0
- package/dist/component/balanceFunding/preparationHandlers.d.ts.map +1 -1
- package/dist/component/balanceFunding/queries.d.ts +78 -0
- package/dist/component/balanceFunding/queries.d.ts.map +1 -1
- package/dist/component/balanceFunding/queries.js +35 -0
- package/dist/component/balanceFunding/queries.js.map +1 -1
- package/dist/component/balanceFunding/receipt.d.ts +5 -0
- package/dist/component/balanceFunding/receipt.d.ts.map +1 -0
- package/dist/component/balanceFunding/receipt.js +37 -0
- package/dist/component/balanceFunding/receipt.js.map +1 -0
- package/dist/component/balanceFunding/schema.d.ts +506 -2
- package/dist/component/balanceFunding/schema.d.ts.map +1 -1
- package/dist/component/balanceFunding/schema.js +2 -0
- package/dist/component/balanceFunding/schema.js.map +1 -1
- package/dist/component/balanceFunding/stateHandlers.d.ts +42 -0
- package/dist/component/balanceFunding/stateHandlers.d.ts.map +1 -1
- package/dist/component/balanceFunding/workflowControl.d.ts +19 -0
- package/dist/component/balanceFunding/workflowControl.d.ts.map +1 -0
- package/dist/component/balanceFunding/workflowControl.js +149 -0
- package/dist/component/balanceFunding/workflowControl.js.map +1 -0
- package/dist/component/balanceFunding/workflowSchema.d.ts +356 -0
- package/dist/component/balanceFunding/workflowSchema.d.ts.map +1 -0
- package/dist/component/balanceFunding/workflowSchema.js +48 -0
- package/dist/component/balanceFunding/workflowSchema.js.map +1 -0
- package/dist/component/balanceFunding/workflowState.d.ts +157 -0
- package/dist/component/balanceFunding/workflowState.d.ts.map +1 -0
- package/dist/component/balanceFunding/workflowState.js +194 -0
- package/dist/component/balanceFunding/workflowState.js.map +1 -0
- package/dist/component/balanceFunding/workflowValidators.d.ts +306 -0
- package/dist/component/balanceFunding/workflowValidators.d.ts.map +1 -0
- package/dist/component/balanceFunding/workflowValidators.js +27 -0
- package/dist/component/balanceFunding/workflowValidators.js.map +1 -0
- package/dist/component/earnings/triggers.d.ts +388 -2
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/payoutRelease/queries.d.ts +2 -2
- package/dist/component/payoutRelease/queries.d.ts.map +1 -1
- package/dist/component/processingCostReconciliation/adoption.d.ts +29 -0
- package/dist/component/processingCostReconciliation/adoption.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/adoption.js +58 -0
- package/dist/component/processingCostReconciliation/adoption.js.map +1 -0
- package/dist/component/processingCostReconciliation/bridge.d.ts +45 -0
- package/dist/component/processingCostReconciliation/bridge.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/bridge.js +41 -0
- package/dist/component/processingCostReconciliation/bridge.js.map +1 -0
- package/dist/component/processingCostReconciliation/helpers.d.ts +327 -0
- package/dist/component/processingCostReconciliation/helpers.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/helpers.js +39 -0
- package/dist/component/processingCostReconciliation/helpers.js.map +1 -0
- package/dist/component/processingCostReconciliation/mutations.d.ts +303 -0
- package/dist/component/processingCostReconciliation/mutations.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/mutations.js +121 -0
- package/dist/component/processingCostReconciliation/mutations.js.map +1 -0
- package/dist/component/processingCostReconciliation/queries.d.ts +422 -0
- package/dist/component/processingCostReconciliation/queries.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/queries.js +19 -0
- package/dist/component/processingCostReconciliation/queries.js.map +1 -0
- package/dist/component/processingCostReconciliation/rollback.d.ts +21 -0
- package/dist/component/processingCostReconciliation/rollback.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/rollback.js +54 -0
- package/dist/component/processingCostReconciliation/rollback.js.map +1 -0
- package/dist/component/processingCostReconciliation/schema.d.ts +2460 -0
- package/dist/component/processingCostReconciliation/schema.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/schema.js +137 -0
- package/dist/component/processingCostReconciliation/schema.js.map +1 -0
- package/dist/component/processingCostReconciliation/steps.d.ts +306 -0
- package/dist/component/processingCostReconciliation/steps.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/steps.js +149 -0
- package/dist/component/processingCostReconciliation/steps.js.map +1 -0
- package/dist/component/processingCostReconciliation/validation.d.ts +13 -0
- package/dist/component/processingCostReconciliation/validation.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/validation.js +61 -0
- package/dist/component/processingCostReconciliation/validation.js.map +1 -0
- package/dist/component/processingCostReconciliation/workflow.d.ts +105 -0
- package/dist/component/processingCostReconciliation/workflow.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/workflow.js +33 -0
- package/dist/component/processingCostReconciliation/workflow.js.map +1 -0
- package/dist/component/schema.d.ts +694 -1
- package/dist/component/schema.js +2 -0
- package/dist/component/schema.js.map +1 -1
- package/package.json +1 -1
- package/src/client/balanceFundingWorkflow/capture.test.ts +144 -0
- package/src/client/balanceFundingWorkflow/client.ts +419 -0
- package/src/client/billing/balanceFunding.ts +50 -0
- package/src/client/costRecovery-invoices.ts +19 -4
- package/src/client/costRecovery.ts +4 -2
- package/src/client/index.ts +15 -0
- package/src/client/processingCostReconciliation/client.ts +75 -0
- package/src/client/processingCostReconciliation/contracts.ts +176 -0
- package/src/client/processingCostReconciliation/invoiceFunding.ts +270 -0
- package/src/client/processingCostReconciliation/invoiceProvider.test.ts +353 -0
- package/src/client/processingCostReconciliation/provider.test.ts +324 -0
- package/src/client/processingCostReconciliation/provider.ts +178 -0
- package/src/client/settlement/processingCostHistory.ts +31 -0
- package/src/client/settlement/processingCosts.ts +50 -15
- package/src/component/_generated/api.ts +36 -0
- package/src/component/_generated/component.ts +1094 -0
- package/src/component/balanceFunding/internal/actions.ts +107 -0
- package/src/component/balanceFunding/internal/mutations.ts +66 -0
- package/src/component/balanceFunding/internal/queries.ts +34 -0
- package/src/component/balanceFunding/internal/workflow.ts +49 -0
- package/src/component/balanceFunding/mutations.ts +34 -0
- package/src/component/balanceFunding/queries.ts +38 -0
- package/src/component/balanceFunding/receipt.ts +48 -0
- package/src/component/balanceFunding/schema.ts +2 -0
- package/src/component/balanceFunding/scopeLookup.test.ts +94 -0
- package/src/component/balanceFunding/workflow.fixtures.ts +366 -0
- package/src/component/balanceFunding/workflow.test.ts +552 -0
- package/src/component/balanceFunding/workflowControl.ts +198 -0
- package/src/component/balanceFunding/workflowSchema.ts +78 -0
- package/src/component/balanceFunding/workflowState.ts +285 -0
- package/src/component/balanceFunding/workflowValidators.ts +40 -0
- package/src/component/processingCostReconciliation/adoption.test.ts +206 -0
- package/src/component/processingCostReconciliation/adoption.ts +77 -0
- package/src/component/processingCostReconciliation/bridge.ts +50 -0
- package/src/component/processingCostReconciliation/helpers.ts +55 -0
- package/src/component/processingCostReconciliation/invoice.test.ts +152 -0
- package/src/component/processingCostReconciliation/mutations.ts +148 -0
- package/src/component/processingCostReconciliation/queries.ts +18 -0
- package/src/component/processingCostReconciliation/rollback.ts +72 -0
- package/src/component/processingCostReconciliation/schema.ts +191 -0
- package/src/component/processingCostReconciliation/state.test.ts +407 -0
- package/src/component/processingCostReconciliation/steps.ts +168 -0
- package/src/component/processingCostReconciliation/validation.ts +79 -0
- package/src/component/processingCostReconciliation/workflow.test.ts +329 -0
- package/src/component/processingCostReconciliation/workflow.ts +50 -0
- package/src/component/schema.ts +2 -0
|
@@ -7,6 +7,48 @@ export declare function startHandler(ctx: MutationCtx, args: Infer<typeof startA
|
|
|
7
7
|
accountId: string;
|
|
8
8
|
cancelRequested: boolean;
|
|
9
9
|
enabled: boolean;
|
|
10
|
+
execution?: {
|
|
11
|
+
apply?: {
|
|
12
|
+
receipt?: {
|
|
13
|
+
customerAccount: string;
|
|
14
|
+
enabled?: boolean | undefined;
|
|
15
|
+
paymentMethodId: string | null;
|
|
16
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
17
|
+
phase: "apply" | "attach" | "create";
|
|
18
|
+
providerApiVersion: string;
|
|
19
|
+
stripeSubscriptionId: string;
|
|
20
|
+
} | undefined;
|
|
21
|
+
state: "running" | "succeeded" | "unknown";
|
|
22
|
+
} | undefined;
|
|
23
|
+
attach?: {
|
|
24
|
+
receipt?: {
|
|
25
|
+
customerAccount: string;
|
|
26
|
+
enabled?: boolean | undefined;
|
|
27
|
+
paymentMethodId: string | null;
|
|
28
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
29
|
+
phase: "apply" | "attach" | "create";
|
|
30
|
+
providerApiVersion: string;
|
|
31
|
+
stripeSubscriptionId: string;
|
|
32
|
+
} | undefined;
|
|
33
|
+
state: "running" | "succeeded" | "unknown";
|
|
34
|
+
} | undefined;
|
|
35
|
+
create?: {
|
|
36
|
+
receipt?: {
|
|
37
|
+
customerAccount: string;
|
|
38
|
+
enabled?: boolean | undefined;
|
|
39
|
+
paymentMethodId: string | null;
|
|
40
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
41
|
+
phase: "apply" | "attach" | "create";
|
|
42
|
+
providerApiVersion: string;
|
|
43
|
+
stripeSubscriptionId: string;
|
|
44
|
+
} | undefined;
|
|
45
|
+
state: "running" | "succeeded" | "unknown";
|
|
46
|
+
} | undefined;
|
|
47
|
+
definitionVersion: string;
|
|
48
|
+
providerAction: string;
|
|
49
|
+
providerApiVersion: string;
|
|
50
|
+
workflowId?: string | undefined;
|
|
51
|
+
} | undefined;
|
|
10
52
|
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
11
53
|
kind: "apply" | "prepare";
|
|
12
54
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
@@ -34,6 +76,48 @@ export declare function requestCancelHandler(ctx: MutationCtx, args: Infer<typeo
|
|
|
34
76
|
accountId: string;
|
|
35
77
|
cancelRequested: boolean;
|
|
36
78
|
enabled: boolean;
|
|
79
|
+
execution?: {
|
|
80
|
+
apply?: {
|
|
81
|
+
receipt?: {
|
|
82
|
+
customerAccount: string;
|
|
83
|
+
enabled?: boolean | undefined;
|
|
84
|
+
paymentMethodId: string | null;
|
|
85
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
86
|
+
phase: "apply" | "attach" | "create";
|
|
87
|
+
providerApiVersion: string;
|
|
88
|
+
stripeSubscriptionId: string;
|
|
89
|
+
} | undefined;
|
|
90
|
+
state: "running" | "succeeded" | "unknown";
|
|
91
|
+
} | undefined;
|
|
92
|
+
attach?: {
|
|
93
|
+
receipt?: {
|
|
94
|
+
customerAccount: string;
|
|
95
|
+
enabled?: boolean | undefined;
|
|
96
|
+
paymentMethodId: string | null;
|
|
97
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
98
|
+
phase: "apply" | "attach" | "create";
|
|
99
|
+
providerApiVersion: string;
|
|
100
|
+
stripeSubscriptionId: string;
|
|
101
|
+
} | undefined;
|
|
102
|
+
state: "running" | "succeeded" | "unknown";
|
|
103
|
+
} | undefined;
|
|
104
|
+
create?: {
|
|
105
|
+
receipt?: {
|
|
106
|
+
customerAccount: string;
|
|
107
|
+
enabled?: boolean | undefined;
|
|
108
|
+
paymentMethodId: string | null;
|
|
109
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
110
|
+
phase: "apply" | "attach" | "create";
|
|
111
|
+
providerApiVersion: string;
|
|
112
|
+
stripeSubscriptionId: string;
|
|
113
|
+
} | undefined;
|
|
114
|
+
state: "running" | "succeeded" | "unknown";
|
|
115
|
+
} | undefined;
|
|
116
|
+
definitionVersion: string;
|
|
117
|
+
providerAction: string;
|
|
118
|
+
providerApiVersion: string;
|
|
119
|
+
workflowId?: string | undefined;
|
|
120
|
+
} | undefined;
|
|
37
121
|
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
38
122
|
kind: "apply" | "prepare";
|
|
39
123
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
@@ -61,6 +145,48 @@ export declare function markUnknownHandler(ctx: MutationCtx, args: Infer<typeof
|
|
|
61
145
|
accountId: string;
|
|
62
146
|
cancelRequested: boolean;
|
|
63
147
|
enabled: boolean;
|
|
148
|
+
execution?: {
|
|
149
|
+
apply?: {
|
|
150
|
+
receipt?: {
|
|
151
|
+
customerAccount: string;
|
|
152
|
+
enabled?: boolean | undefined;
|
|
153
|
+
paymentMethodId: string | null;
|
|
154
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
155
|
+
phase: "apply" | "attach" | "create";
|
|
156
|
+
providerApiVersion: string;
|
|
157
|
+
stripeSubscriptionId: string;
|
|
158
|
+
} | undefined;
|
|
159
|
+
state: "running" | "succeeded" | "unknown";
|
|
160
|
+
} | undefined;
|
|
161
|
+
attach?: {
|
|
162
|
+
receipt?: {
|
|
163
|
+
customerAccount: string;
|
|
164
|
+
enabled?: boolean | undefined;
|
|
165
|
+
paymentMethodId: string | null;
|
|
166
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
167
|
+
phase: "apply" | "attach" | "create";
|
|
168
|
+
providerApiVersion: string;
|
|
169
|
+
stripeSubscriptionId: string;
|
|
170
|
+
} | undefined;
|
|
171
|
+
state: "running" | "succeeded" | "unknown";
|
|
172
|
+
} | undefined;
|
|
173
|
+
create?: {
|
|
174
|
+
receipt?: {
|
|
175
|
+
customerAccount: string;
|
|
176
|
+
enabled?: boolean | undefined;
|
|
177
|
+
paymentMethodId: string | null;
|
|
178
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
179
|
+
phase: "apply" | "attach" | "create";
|
|
180
|
+
providerApiVersion: string;
|
|
181
|
+
stripeSubscriptionId: string;
|
|
182
|
+
} | undefined;
|
|
183
|
+
state: "running" | "succeeded" | "unknown";
|
|
184
|
+
} | undefined;
|
|
185
|
+
definitionVersion: string;
|
|
186
|
+
providerAction: string;
|
|
187
|
+
providerApiVersion: string;
|
|
188
|
+
workflowId?: string | undefined;
|
|
189
|
+
} | undefined;
|
|
64
190
|
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
65
191
|
kind: "apply" | "prepare";
|
|
66
192
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycleHandlers.d.ts","sourceRoot":"","sources":["../../../src/component/balanceFunding/lifecycleHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,eAAe,EAChB,MAAM,yBAAyB,CAAC;AACjC,wBAAsB,YAAY,CAChC,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,KAAK,CAAC,OAAO,SAAS,CAAC
|
|
1
|
+
{"version":3,"file":"lifecycleHandlers.d.ts","sourceRoot":"","sources":["../../../src/component/balanceFunding/lifecycleHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,eAAe,EAChB,MAAM,yBAAyB,CAAC;AACjC,wBAAsB,YAAY,CAChC,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,KAAK,CAAC,OAAO,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoB9B;AACD,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,KAAK,CAAC,OAAO,iBAAiB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BtC;AACD,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,KAAK,CAAC,OAAO,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuBpC"}
|
|
@@ -22,14 +22,6 @@ export declare const begin: import("convex/server").RegisteredMutation<"public",
|
|
|
22
22
|
requestKey: string;
|
|
23
23
|
scopeKey: string;
|
|
24
24
|
}, Promise<{
|
|
25
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
26
|
-
retryable: false;
|
|
27
|
-
status: "conflict";
|
|
28
|
-
} | {
|
|
29
|
-
reason: "policy_invalid";
|
|
30
|
-
retryable: false;
|
|
31
|
-
status: "rejected";
|
|
32
|
-
} | {
|
|
33
25
|
operation: {
|
|
34
26
|
accountId: string;
|
|
35
27
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -40,6 +32,14 @@ export declare const begin: import("convex/server").RegisteredMutation<"public",
|
|
|
40
32
|
} | {
|
|
41
33
|
enabled: boolean;
|
|
42
34
|
status: "unchanged";
|
|
35
|
+
} | {
|
|
36
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
37
|
+
retryable: false;
|
|
38
|
+
status: "conflict";
|
|
39
|
+
} | {
|
|
40
|
+
reason: "policy_invalid";
|
|
41
|
+
retryable: false;
|
|
42
|
+
status: "rejected";
|
|
43
43
|
} | {
|
|
44
44
|
reason: "provider_pending";
|
|
45
45
|
retryable: true;
|
|
@@ -64,6 +64,48 @@ export declare const finish: import("convex/server").RegisteredMutation<"public"
|
|
|
64
64
|
accountId: string;
|
|
65
65
|
cancelRequested: boolean;
|
|
66
66
|
enabled: boolean;
|
|
67
|
+
execution?: {
|
|
68
|
+
apply?: {
|
|
69
|
+
receipt?: {
|
|
70
|
+
customerAccount: string;
|
|
71
|
+
enabled?: boolean | undefined;
|
|
72
|
+
paymentMethodId: string | null;
|
|
73
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
74
|
+
phase: "apply" | "attach" | "create";
|
|
75
|
+
providerApiVersion: string;
|
|
76
|
+
stripeSubscriptionId: string;
|
|
77
|
+
} | undefined;
|
|
78
|
+
state: "running" | "succeeded" | "unknown";
|
|
79
|
+
} | undefined;
|
|
80
|
+
attach?: {
|
|
81
|
+
receipt?: {
|
|
82
|
+
customerAccount: string;
|
|
83
|
+
enabled?: boolean | undefined;
|
|
84
|
+
paymentMethodId: string | null;
|
|
85
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
86
|
+
phase: "apply" | "attach" | "create";
|
|
87
|
+
providerApiVersion: string;
|
|
88
|
+
stripeSubscriptionId: string;
|
|
89
|
+
} | undefined;
|
|
90
|
+
state: "running" | "succeeded" | "unknown";
|
|
91
|
+
} | undefined;
|
|
92
|
+
create?: {
|
|
93
|
+
receipt?: {
|
|
94
|
+
customerAccount: string;
|
|
95
|
+
enabled?: boolean | undefined;
|
|
96
|
+
paymentMethodId: string | null;
|
|
97
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
98
|
+
phase: "apply" | "attach" | "create";
|
|
99
|
+
providerApiVersion: string;
|
|
100
|
+
stripeSubscriptionId: string;
|
|
101
|
+
} | undefined;
|
|
102
|
+
state: "running" | "succeeded" | "unknown";
|
|
103
|
+
} | undefined;
|
|
104
|
+
definitionVersion: string;
|
|
105
|
+
providerAction: string;
|
|
106
|
+
providerApiVersion: string;
|
|
107
|
+
workflowId?: string | undefined;
|
|
108
|
+
} | undefined;
|
|
67
109
|
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
68
110
|
kind: "apply" | "prepare";
|
|
69
111
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
@@ -96,6 +138,48 @@ export declare const start: import("convex/server").RegisteredMutation<"public",
|
|
|
96
138
|
accountId: string;
|
|
97
139
|
cancelRequested: boolean;
|
|
98
140
|
enabled: boolean;
|
|
141
|
+
execution?: {
|
|
142
|
+
apply?: {
|
|
143
|
+
receipt?: {
|
|
144
|
+
customerAccount: string;
|
|
145
|
+
enabled?: boolean | undefined;
|
|
146
|
+
paymentMethodId: string | null;
|
|
147
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
148
|
+
phase: "apply" | "attach" | "create";
|
|
149
|
+
providerApiVersion: string;
|
|
150
|
+
stripeSubscriptionId: string;
|
|
151
|
+
} | undefined;
|
|
152
|
+
state: "running" | "succeeded" | "unknown";
|
|
153
|
+
} | undefined;
|
|
154
|
+
attach?: {
|
|
155
|
+
receipt?: {
|
|
156
|
+
customerAccount: string;
|
|
157
|
+
enabled?: boolean | undefined;
|
|
158
|
+
paymentMethodId: string | null;
|
|
159
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
160
|
+
phase: "apply" | "attach" | "create";
|
|
161
|
+
providerApiVersion: string;
|
|
162
|
+
stripeSubscriptionId: string;
|
|
163
|
+
} | undefined;
|
|
164
|
+
state: "running" | "succeeded" | "unknown";
|
|
165
|
+
} | undefined;
|
|
166
|
+
create?: {
|
|
167
|
+
receipt?: {
|
|
168
|
+
customerAccount: string;
|
|
169
|
+
enabled?: boolean | undefined;
|
|
170
|
+
paymentMethodId: string | null;
|
|
171
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
172
|
+
phase: "apply" | "attach" | "create";
|
|
173
|
+
providerApiVersion: string;
|
|
174
|
+
stripeSubscriptionId: string;
|
|
175
|
+
} | undefined;
|
|
176
|
+
state: "running" | "succeeded" | "unknown";
|
|
177
|
+
} | undefined;
|
|
178
|
+
definitionVersion: string;
|
|
179
|
+
providerAction: string;
|
|
180
|
+
providerApiVersion: string;
|
|
181
|
+
workflowId?: string | undefined;
|
|
182
|
+
} | undefined;
|
|
99
183
|
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
100
184
|
kind: "apply" | "prepare";
|
|
101
185
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
@@ -128,6 +212,48 @@ export declare const requestCancel: import("convex/server").RegisteredMutation<"
|
|
|
128
212
|
accountId: string;
|
|
129
213
|
cancelRequested: boolean;
|
|
130
214
|
enabled: boolean;
|
|
215
|
+
execution?: {
|
|
216
|
+
apply?: {
|
|
217
|
+
receipt?: {
|
|
218
|
+
customerAccount: string;
|
|
219
|
+
enabled?: boolean | undefined;
|
|
220
|
+
paymentMethodId: string | null;
|
|
221
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
222
|
+
phase: "apply" | "attach" | "create";
|
|
223
|
+
providerApiVersion: string;
|
|
224
|
+
stripeSubscriptionId: string;
|
|
225
|
+
} | undefined;
|
|
226
|
+
state: "running" | "succeeded" | "unknown";
|
|
227
|
+
} | undefined;
|
|
228
|
+
attach?: {
|
|
229
|
+
receipt?: {
|
|
230
|
+
customerAccount: string;
|
|
231
|
+
enabled?: boolean | undefined;
|
|
232
|
+
paymentMethodId: string | null;
|
|
233
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
234
|
+
phase: "apply" | "attach" | "create";
|
|
235
|
+
providerApiVersion: string;
|
|
236
|
+
stripeSubscriptionId: string;
|
|
237
|
+
} | undefined;
|
|
238
|
+
state: "running" | "succeeded" | "unknown";
|
|
239
|
+
} | undefined;
|
|
240
|
+
create?: {
|
|
241
|
+
receipt?: {
|
|
242
|
+
customerAccount: string;
|
|
243
|
+
enabled?: boolean | undefined;
|
|
244
|
+
paymentMethodId: string | null;
|
|
245
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
246
|
+
phase: "apply" | "attach" | "create";
|
|
247
|
+
providerApiVersion: string;
|
|
248
|
+
stripeSubscriptionId: string;
|
|
249
|
+
} | undefined;
|
|
250
|
+
state: "running" | "succeeded" | "unknown";
|
|
251
|
+
} | undefined;
|
|
252
|
+
definitionVersion: string;
|
|
253
|
+
providerAction: string;
|
|
254
|
+
providerApiVersion: string;
|
|
255
|
+
workflowId?: string | undefined;
|
|
256
|
+
} | undefined;
|
|
131
257
|
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
132
258
|
kind: "apply" | "prepare";
|
|
133
259
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
@@ -160,6 +286,48 @@ export declare const markUnknown: import("convex/server").RegisteredMutation<"pu
|
|
|
160
286
|
accountId: string;
|
|
161
287
|
cancelRequested: boolean;
|
|
162
288
|
enabled: boolean;
|
|
289
|
+
execution?: {
|
|
290
|
+
apply?: {
|
|
291
|
+
receipt?: {
|
|
292
|
+
customerAccount: string;
|
|
293
|
+
enabled?: boolean | undefined;
|
|
294
|
+
paymentMethodId: string | null;
|
|
295
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
296
|
+
phase: "apply" | "attach" | "create";
|
|
297
|
+
providerApiVersion: string;
|
|
298
|
+
stripeSubscriptionId: string;
|
|
299
|
+
} | undefined;
|
|
300
|
+
state: "running" | "succeeded" | "unknown";
|
|
301
|
+
} | undefined;
|
|
302
|
+
attach?: {
|
|
303
|
+
receipt?: {
|
|
304
|
+
customerAccount: string;
|
|
305
|
+
enabled?: boolean | undefined;
|
|
306
|
+
paymentMethodId: string | null;
|
|
307
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
308
|
+
phase: "apply" | "attach" | "create";
|
|
309
|
+
providerApiVersion: string;
|
|
310
|
+
stripeSubscriptionId: string;
|
|
311
|
+
} | undefined;
|
|
312
|
+
state: "running" | "succeeded" | "unknown";
|
|
313
|
+
} | undefined;
|
|
314
|
+
create?: {
|
|
315
|
+
receipt?: {
|
|
316
|
+
customerAccount: string;
|
|
317
|
+
enabled?: boolean | undefined;
|
|
318
|
+
paymentMethodId: string | null;
|
|
319
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
320
|
+
phase: "apply" | "attach" | "create";
|
|
321
|
+
providerApiVersion: string;
|
|
322
|
+
stripeSubscriptionId: string;
|
|
323
|
+
} | undefined;
|
|
324
|
+
state: "running" | "succeeded" | "unknown";
|
|
325
|
+
} | undefined;
|
|
326
|
+
definitionVersion: string;
|
|
327
|
+
providerAction: string;
|
|
328
|
+
providerApiVersion: string;
|
|
329
|
+
workflowId?: string | undefined;
|
|
330
|
+
} | undefined;
|
|
163
331
|
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
164
332
|
kind: "apply" | "prepare";
|
|
165
333
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
@@ -227,14 +395,6 @@ export declare const prepare: import("convex/server").RegisteredMutation<"public
|
|
|
227
395
|
requestKey: string;
|
|
228
396
|
scopeKey: string;
|
|
229
397
|
}, Promise<{
|
|
230
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
231
|
-
retryable: false;
|
|
232
|
-
status: "conflict";
|
|
233
|
-
} | {
|
|
234
|
-
reason: "policy_invalid";
|
|
235
|
-
retryable: false;
|
|
236
|
-
status: "rejected";
|
|
237
|
-
} | {
|
|
238
398
|
operation: {
|
|
239
399
|
accountId: string;
|
|
240
400
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -245,6 +405,14 @@ export declare const prepare: import("convex/server").RegisteredMutation<"public
|
|
|
245
405
|
} | {
|
|
246
406
|
enabled: boolean;
|
|
247
407
|
status: "unchanged";
|
|
408
|
+
} | {
|
|
409
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
410
|
+
retryable: false;
|
|
411
|
+
status: "conflict";
|
|
412
|
+
} | {
|
|
413
|
+
reason: "policy_invalid";
|
|
414
|
+
retryable: false;
|
|
415
|
+
status: "rejected";
|
|
248
416
|
} | {
|
|
249
417
|
reason: "provider_pending";
|
|
250
418
|
retryable: true;
|
|
@@ -269,6 +437,48 @@ export declare const finishPreparation: import("convex/server").RegisteredMutati
|
|
|
269
437
|
accountId: string;
|
|
270
438
|
cancelRequested: boolean;
|
|
271
439
|
enabled: boolean;
|
|
440
|
+
execution?: {
|
|
441
|
+
apply?: {
|
|
442
|
+
receipt?: {
|
|
443
|
+
customerAccount: string;
|
|
444
|
+
enabled?: boolean | undefined;
|
|
445
|
+
paymentMethodId: string | null;
|
|
446
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
447
|
+
phase: "apply" | "attach" | "create";
|
|
448
|
+
providerApiVersion: string;
|
|
449
|
+
stripeSubscriptionId: string;
|
|
450
|
+
} | undefined;
|
|
451
|
+
state: "running" | "succeeded" | "unknown";
|
|
452
|
+
} | undefined;
|
|
453
|
+
attach?: {
|
|
454
|
+
receipt?: {
|
|
455
|
+
customerAccount: string;
|
|
456
|
+
enabled?: boolean | undefined;
|
|
457
|
+
paymentMethodId: string | null;
|
|
458
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
459
|
+
phase: "apply" | "attach" | "create";
|
|
460
|
+
providerApiVersion: string;
|
|
461
|
+
stripeSubscriptionId: string;
|
|
462
|
+
} | undefined;
|
|
463
|
+
state: "running" | "succeeded" | "unknown";
|
|
464
|
+
} | undefined;
|
|
465
|
+
create?: {
|
|
466
|
+
receipt?: {
|
|
467
|
+
customerAccount: string;
|
|
468
|
+
enabled?: boolean | undefined;
|
|
469
|
+
paymentMethodId: string | null;
|
|
470
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
471
|
+
phase: "apply" | "attach" | "create";
|
|
472
|
+
providerApiVersion: string;
|
|
473
|
+
stripeSubscriptionId: string;
|
|
474
|
+
} | undefined;
|
|
475
|
+
state: "running" | "succeeded" | "unknown";
|
|
476
|
+
} | undefined;
|
|
477
|
+
definitionVersion: string;
|
|
478
|
+
providerAction: string;
|
|
479
|
+
providerApiVersion: string;
|
|
480
|
+
workflowId?: string | undefined;
|
|
481
|
+
} | undefined;
|
|
272
482
|
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
273
483
|
kind: "apply" | "prepare";
|
|
274
484
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
@@ -311,6 +521,48 @@ export declare const failBeforeStart: import("convex/server").RegisteredMutation
|
|
|
311
521
|
accountId: string;
|
|
312
522
|
cancelRequested: boolean;
|
|
313
523
|
enabled: boolean;
|
|
524
|
+
execution?: {
|
|
525
|
+
apply?: {
|
|
526
|
+
receipt?: {
|
|
527
|
+
customerAccount: string;
|
|
528
|
+
enabled?: boolean | undefined;
|
|
529
|
+
paymentMethodId: string | null;
|
|
530
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
531
|
+
phase: "apply" | "attach" | "create";
|
|
532
|
+
providerApiVersion: string;
|
|
533
|
+
stripeSubscriptionId: string;
|
|
534
|
+
} | undefined;
|
|
535
|
+
state: "running" | "succeeded" | "unknown";
|
|
536
|
+
} | undefined;
|
|
537
|
+
attach?: {
|
|
538
|
+
receipt?: {
|
|
539
|
+
customerAccount: string;
|
|
540
|
+
enabled?: boolean | undefined;
|
|
541
|
+
paymentMethodId: string | null;
|
|
542
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
543
|
+
phase: "apply" | "attach" | "create";
|
|
544
|
+
providerApiVersion: string;
|
|
545
|
+
stripeSubscriptionId: string;
|
|
546
|
+
} | undefined;
|
|
547
|
+
state: "running" | "succeeded" | "unknown";
|
|
548
|
+
} | undefined;
|
|
549
|
+
create?: {
|
|
550
|
+
receipt?: {
|
|
551
|
+
customerAccount: string;
|
|
552
|
+
enabled?: boolean | undefined;
|
|
553
|
+
paymentMethodId: string | null;
|
|
554
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
555
|
+
phase: "apply" | "attach" | "create";
|
|
556
|
+
providerApiVersion: string;
|
|
557
|
+
stripeSubscriptionId: string;
|
|
558
|
+
} | undefined;
|
|
559
|
+
state: "running" | "succeeded" | "unknown";
|
|
560
|
+
} | undefined;
|
|
561
|
+
definitionVersion: string;
|
|
562
|
+
providerAction: string;
|
|
563
|
+
providerApiVersion: string;
|
|
564
|
+
workflowId?: string | undefined;
|
|
565
|
+
} | undefined;
|
|
314
566
|
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
315
567
|
kind: "apply" | "prepare";
|
|
316
568
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
@@ -332,4 +584,155 @@ export declare const failBeforeStart: import("convex/server").RegisteredMutation
|
|
|
332
584
|
state: "canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown";
|
|
333
585
|
version: number;
|
|
334
586
|
}>>;
|
|
587
|
+
export declare const startWorkflow: import("convex/server").RegisteredMutation<"public", {
|
|
588
|
+
accountId: string;
|
|
589
|
+
definitionVersion: string;
|
|
590
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
591
|
+
providerApiVersion: string;
|
|
592
|
+
scopeKey: string;
|
|
593
|
+
stripeSubscriptionId: string;
|
|
594
|
+
version: number;
|
|
595
|
+
} & {
|
|
596
|
+
providerAction: string;
|
|
597
|
+
}, Promise<{
|
|
598
|
+
operation: {
|
|
599
|
+
accountId: string;
|
|
600
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
601
|
+
scopeKey: string;
|
|
602
|
+
version: number;
|
|
603
|
+
};
|
|
604
|
+
status: "accepted";
|
|
605
|
+
workflowId?: string | undefined;
|
|
606
|
+
} | {
|
|
607
|
+
operation: {
|
|
608
|
+
accountId: string;
|
|
609
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
610
|
+
scopeKey: string;
|
|
611
|
+
version: number;
|
|
612
|
+
};
|
|
613
|
+
status: "canceled";
|
|
614
|
+
} | {
|
|
615
|
+
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
616
|
+
retryable: false;
|
|
617
|
+
status: "unknown";
|
|
618
|
+
} | {
|
|
619
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
620
|
+
retryable: false;
|
|
621
|
+
status: "conflict";
|
|
622
|
+
} | {
|
|
623
|
+
reason: "invalid_scope" | "policy_invalid" | "unsupported_source";
|
|
624
|
+
retryable: false;
|
|
625
|
+
status: "rejected";
|
|
626
|
+
} | {
|
|
627
|
+
reason: "provider_pending";
|
|
628
|
+
retryable: true;
|
|
629
|
+
status: "not_ready";
|
|
630
|
+
}>>;
|
|
631
|
+
export declare const resumeWorkflow: import("convex/server").RegisteredMutation<"public", {
|
|
632
|
+
accountId: string;
|
|
633
|
+
definitionVersion: string;
|
|
634
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
635
|
+
providerApiVersion: string;
|
|
636
|
+
scopeKey: string;
|
|
637
|
+
stripeSubscriptionId: string;
|
|
638
|
+
version: number;
|
|
639
|
+
}, Promise<{
|
|
640
|
+
operation: {
|
|
641
|
+
accountId: string;
|
|
642
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
643
|
+
scopeKey: string;
|
|
644
|
+
version: number;
|
|
645
|
+
};
|
|
646
|
+
status: "accepted";
|
|
647
|
+
workflowId?: string | undefined;
|
|
648
|
+
} | {
|
|
649
|
+
operation: {
|
|
650
|
+
accountId: string;
|
|
651
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
652
|
+
scopeKey: string;
|
|
653
|
+
version: number;
|
|
654
|
+
};
|
|
655
|
+
status: "canceled";
|
|
656
|
+
} | {
|
|
657
|
+
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
658
|
+
retryable: false;
|
|
659
|
+
status: "unknown";
|
|
660
|
+
} | {
|
|
661
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
662
|
+
retryable: false;
|
|
663
|
+
status: "conflict";
|
|
664
|
+
} | {
|
|
665
|
+
reason: "invalid_scope" | "policy_invalid" | "unsupported_source";
|
|
666
|
+
retryable: false;
|
|
667
|
+
status: "rejected";
|
|
668
|
+
} | {
|
|
669
|
+
reason: "provider_pending";
|
|
670
|
+
retryable: true;
|
|
671
|
+
status: "not_ready";
|
|
672
|
+
}>>;
|
|
673
|
+
export declare const cancelWorkflow: import("convex/server").RegisteredMutation<"public", {
|
|
674
|
+
accountId: string;
|
|
675
|
+
definitionVersion: string;
|
|
676
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
677
|
+
providerApiVersion: string;
|
|
678
|
+
scopeKey: string;
|
|
679
|
+
stripeSubscriptionId: string;
|
|
680
|
+
version: number;
|
|
681
|
+
}, Promise<{
|
|
682
|
+
accountId: string;
|
|
683
|
+
scopeKey: string;
|
|
684
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
685
|
+
version: number;
|
|
686
|
+
state: "canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown";
|
|
687
|
+
cancelRequested: boolean;
|
|
688
|
+
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
689
|
+
}>>;
|
|
690
|
+
export declare const claimProviderPhase: import("convex/server").RegisteredMutation<"public", {
|
|
691
|
+
accountId: string;
|
|
692
|
+
definitionVersion: string;
|
|
693
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
694
|
+
phase: "apply" | "attach" | "create";
|
|
695
|
+
providerApiVersion: string;
|
|
696
|
+
providerKey: string;
|
|
697
|
+
scopeKey: string;
|
|
698
|
+
stripeSubscriptionId: string;
|
|
699
|
+
version: number;
|
|
700
|
+
}, Promise<{
|
|
701
|
+
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
702
|
+
retryable: false;
|
|
703
|
+
status: "unknown";
|
|
704
|
+
} | {
|
|
705
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
706
|
+
retryable: false;
|
|
707
|
+
status: "conflict";
|
|
708
|
+
} | {
|
|
709
|
+
reason: "invalid_scope" | "policy_invalid" | "unsupported_source";
|
|
710
|
+
retryable: false;
|
|
711
|
+
status: "rejected";
|
|
712
|
+
} | {
|
|
713
|
+
reason: "provider_pending";
|
|
714
|
+
retryable: true;
|
|
715
|
+
status: "not_ready";
|
|
716
|
+
} | {
|
|
717
|
+
status: "ready";
|
|
718
|
+
value: {
|
|
719
|
+
customerAccount: string;
|
|
720
|
+
enabled?: boolean | undefined;
|
|
721
|
+
paymentMethodId: string | null;
|
|
722
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
723
|
+
phase: "apply" | "attach" | "create";
|
|
724
|
+
providerApiVersion: string;
|
|
725
|
+
stripeSubscriptionId: string;
|
|
726
|
+
};
|
|
727
|
+
} | {
|
|
728
|
+
value?: undefined;
|
|
729
|
+
status: "claimed";
|
|
730
|
+
mode: "reconcile";
|
|
731
|
+
paymentMethodId?: string | undefined;
|
|
732
|
+
} | {
|
|
733
|
+
value?: undefined;
|
|
734
|
+
status: "claimed";
|
|
735
|
+
mode: "execute";
|
|
736
|
+
paymentMethodId?: string | undefined;
|
|
737
|
+
}>>;
|
|
335
738
|
//# sourceMappingURL=mutations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/balanceFunding/mutations.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;GAI1B,CAAC;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIhB,CAAC;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/balanceFunding/mutations.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;GAI1B,CAAC;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIhB,CAAC;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIjB,CAAC;AAMH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIhB,CAAC;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIxB,CAAC;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAItB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAI5B,CAAC;AAKH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIlB,CAAC;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAI5B,CAAC;AAaH,iGAAiG;AACjG,eAAO,MAAM,eAAe;;;;;;iBAoB1B,CAAC;AAEH,8EAA8E;AAC9E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiC1B,CAAC;AAeH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIxB,CAAC;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIzB,CAAC;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;GAIzB,CAAC;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAI7B,CAAC"}
|