@fantastic.dev/better-stripe 0.41.0 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +1 -1
  3. package/dist/client/balanceFundingWorkflow/client.d.ts +172 -0
  4. package/dist/client/balanceFundingWorkflow/client.d.ts.map +1 -0
  5. package/dist/client/balanceFundingWorkflow/client.js +289 -0
  6. package/dist/client/balanceFundingWorkflow/client.js.map +1 -0
  7. package/dist/client/billing/balanceFunding.d.ts +5 -0
  8. package/dist/client/billing/balanceFunding.d.ts.map +1 -1
  9. package/dist/client/billing/balanceFunding.js +30 -0
  10. package/dist/client/billing/balanceFunding.js.map +1 -1
  11. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +366 -2
  12. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  13. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +199 -17
  14. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  15. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +366 -2
  16. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  17. package/dist/client/connect/payoutSyncTestHelpers.d.ts +199 -17
  18. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  19. package/dist/client/index.d.ts +3 -0
  20. package/dist/client/index.d.ts.map +1 -1
  21. package/dist/client/index.js +4 -0
  22. package/dist/client/index.js.map +1 -1
  23. package/dist/component/_generated/api.d.ts +18 -0
  24. package/dist/component/_generated/api.d.ts.map +1 -1
  25. package/dist/component/_generated/api.js.map +1 -1
  26. package/dist/component/_generated/component.d.ts +473 -0
  27. package/dist/component/_generated/component.d.ts.map +1 -1
  28. package/dist/component/balanceFunding/helpers.d.ts +42 -0
  29. package/dist/component/balanceFunding/helpers.d.ts.map +1 -1
  30. package/dist/component/balanceFunding/internal/actions.d.ts +39 -0
  31. package/dist/component/balanceFunding/internal/actions.d.ts.map +1 -0
  32. package/dist/component/balanceFunding/internal/actions.js +80 -0
  33. package/dist/component/balanceFunding/internal/actions.js.map +1 -0
  34. package/dist/component/balanceFunding/internal/mutations.d.ts +55 -0
  35. package/dist/component/balanceFunding/internal/mutations.d.ts.map +1 -0
  36. package/dist/component/balanceFunding/internal/mutations.js +54 -0
  37. package/dist/component/balanceFunding/internal/mutations.js.map +1 -0
  38. package/dist/component/balanceFunding/internal/queries.d.ts +116 -0
  39. package/dist/component/balanceFunding/internal/queries.d.ts.map +1 -0
  40. package/dist/component/balanceFunding/internal/queries.js +35 -0
  41. package/dist/component/balanceFunding/internal/queries.js.map +1 -0
  42. package/dist/component/balanceFunding/internal/workflow.d.ts +10 -0
  43. package/dist/component/balanceFunding/internal/workflow.d.ts.map +1 -0
  44. package/dist/component/balanceFunding/internal/workflow.js +31 -0
  45. package/dist/component/balanceFunding/internal/workflow.js.map +1 -0
  46. package/dist/component/balanceFunding/lifecycleHandlers.d.ts +126 -0
  47. package/dist/component/balanceFunding/lifecycleHandlers.d.ts.map +1 -1
  48. package/dist/component/balanceFunding/mutations.d.ts +403 -0
  49. package/dist/component/balanceFunding/mutations.d.ts.map +1 -1
  50. package/dist/component/balanceFunding/mutations.js +24 -0
  51. package/dist/component/balanceFunding/mutations.js.map +1 -1
  52. package/dist/component/balanceFunding/preparationHandlers.d.ts +42 -0
  53. package/dist/component/balanceFunding/preparationHandlers.d.ts.map +1 -1
  54. package/dist/component/balanceFunding/queries.d.ts +78 -0
  55. package/dist/component/balanceFunding/queries.d.ts.map +1 -1
  56. package/dist/component/balanceFunding/queries.js +35 -0
  57. package/dist/component/balanceFunding/queries.js.map +1 -1
  58. package/dist/component/balanceFunding/receipt.d.ts +5 -0
  59. package/dist/component/balanceFunding/receipt.d.ts.map +1 -0
  60. package/dist/component/balanceFunding/receipt.js +37 -0
  61. package/dist/component/balanceFunding/receipt.js.map +1 -0
  62. package/dist/component/balanceFunding/schema.d.ts +506 -2
  63. package/dist/component/balanceFunding/schema.d.ts.map +1 -1
  64. package/dist/component/balanceFunding/schema.js +2 -0
  65. package/dist/component/balanceFunding/schema.js.map +1 -1
  66. package/dist/component/balanceFunding/stateHandlers.d.ts +50 -8
  67. package/dist/component/balanceFunding/stateHandlers.d.ts.map +1 -1
  68. package/dist/component/balanceFunding/workflowControl.d.ts +19 -0
  69. package/dist/component/balanceFunding/workflowControl.d.ts.map +1 -0
  70. package/dist/component/balanceFunding/workflowControl.js +149 -0
  71. package/dist/component/balanceFunding/workflowControl.js.map +1 -0
  72. package/dist/component/balanceFunding/workflowSchema.d.ts +356 -0
  73. package/dist/component/balanceFunding/workflowSchema.d.ts.map +1 -0
  74. package/dist/component/balanceFunding/workflowSchema.js +48 -0
  75. package/dist/component/balanceFunding/workflowSchema.js.map +1 -0
  76. package/dist/component/balanceFunding/workflowState.d.ts +157 -0
  77. package/dist/component/balanceFunding/workflowState.d.ts.map +1 -0
  78. package/dist/component/balanceFunding/workflowState.js +194 -0
  79. package/dist/component/balanceFunding/workflowState.js.map +1 -0
  80. package/dist/component/balanceFunding/workflowValidators.d.ts +306 -0
  81. package/dist/component/balanceFunding/workflowValidators.d.ts.map +1 -0
  82. package/dist/component/balanceFunding/workflowValidators.js +27 -0
  83. package/dist/component/balanceFunding/workflowValidators.js.map +1 -0
  84. package/dist/component/earnings/triggers.d.ts +102 -18
  85. package/dist/component/earnings/triggers.d.ts.map +1 -1
  86. package/dist/component/schema.d.ts +183 -1
  87. package/package.json +1 -1
  88. package/src/client/balanceFundingWorkflow/capture.test.ts +144 -0
  89. package/src/client/balanceFundingWorkflow/client.ts +419 -0
  90. package/src/client/billing/balanceFunding.ts +50 -0
  91. package/src/client/index.ts +15 -0
  92. package/src/component/_generated/api.ts +18 -0
  93. package/src/component/_generated/component.ts +524 -0
  94. package/src/component/balanceFunding/internal/actions.ts +107 -0
  95. package/src/component/balanceFunding/internal/mutations.ts +66 -0
  96. package/src/component/balanceFunding/internal/queries.ts +34 -0
  97. package/src/component/balanceFunding/internal/workflow.ts +49 -0
  98. package/src/component/balanceFunding/mutations.ts +34 -0
  99. package/src/component/balanceFunding/queries.ts +38 -0
  100. package/src/component/balanceFunding/receipt.ts +48 -0
  101. package/src/component/balanceFunding/schema.ts +2 -0
  102. package/src/component/balanceFunding/scopeLookup.test.ts +94 -0
  103. package/src/component/balanceFunding/workflow.fixtures.ts +366 -0
  104. package/src/component/balanceFunding/workflow.test.ts +552 -0
  105. package/src/component/balanceFunding/workflowControl.ts +198 -0
  106. package/src/component/balanceFunding/workflowSchema.ts +78 -0
  107. package/src/component/balanceFunding/workflowState.ts +285 -0
  108. package/src/component/balanceFunding/workflowValidators.ts +40 -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;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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"}
@@ -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">;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;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AAO,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"}
@@ -103,4 +103,28 @@ export const failBeforeStart = mutation({
103
103
  return { ...op, state: "failed", failureCode: args.failureCode };
104
104
  },
105
105
  });
106
+ import { workflowRefFields, phaseRefFields, workflowStartResult, phaseClaimResult, } from "./workflowValidators.js";
107
+ import { safeStatus } from "./schema.js";
108
+ import { claimProviderPhaseHandler } from "./workflowState.js";
109
+ import { startWorkflowHandler, resumeWorkflowHandler, cancelWorkflowHandler, } from "./workflowControl.js";
110
+ export const startWorkflow = mutation({
111
+ args: { ...workflowRefFields, providerAction: v.string() },
112
+ returns: workflowStartResult,
113
+ handler: startWorkflowHandler,
114
+ });
115
+ export const resumeWorkflow = mutation({
116
+ args: workflowRefFields,
117
+ returns: workflowStartResult,
118
+ handler: resumeWorkflowHandler,
119
+ });
120
+ export const cancelWorkflow = mutation({
121
+ args: workflowRefFields,
122
+ returns: safeStatus,
123
+ handler: cancelWorkflowHandler,
124
+ });
125
+ export const claimProviderPhase = mutation({
126
+ args: phaseRefFields,
127
+ returns: phaseClaimResult,
128
+ handler: claimProviderPhaseHandler,
129
+ });
106
130
  //# sourceMappingURL=mutations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mutations.js","sour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