@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.
- package/CHANGELOG.md +10 -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 +366 -2
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +199 -17
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +366 -2
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +199 -17
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.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/component/_generated/api.d.ts +18 -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 +473 -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 +403 -0
- 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 +50 -8
- 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 +102 -18
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/schema.d.ts +183 -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/index.ts +15 -0
- package/src/component/_generated/api.ts +18 -0
- package/src/component/_generated/component.ts +524 -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
|
@@ -197,6 +197,146 @@ export declare const operationFields: {
|
|
|
197
197
|
paymentMethodTypes: import("convex/values").VUnion<string[] | null, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
198
198
|
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
199
199
|
}, "optional", "customerAccount" | "paymentMethodId" | "paymentMethodTypes" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
200
|
+
execution: import("convex/values").VObject<{
|
|
201
|
+
apply?: {
|
|
202
|
+
receipt?: {
|
|
203
|
+
customerAccount: string;
|
|
204
|
+
enabled?: boolean | undefined;
|
|
205
|
+
paymentMethodId: string | null;
|
|
206
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
207
|
+
phase: "apply" | "attach" | "create";
|
|
208
|
+
providerApiVersion: string;
|
|
209
|
+
stripeSubscriptionId: string;
|
|
210
|
+
} | undefined;
|
|
211
|
+
state: "running" | "succeeded" | "unknown";
|
|
212
|
+
} | undefined;
|
|
213
|
+
attach?: {
|
|
214
|
+
receipt?: {
|
|
215
|
+
customerAccount: string;
|
|
216
|
+
enabled?: boolean | undefined;
|
|
217
|
+
paymentMethodId: string | null;
|
|
218
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
219
|
+
phase: "apply" | "attach" | "create";
|
|
220
|
+
providerApiVersion: string;
|
|
221
|
+
stripeSubscriptionId: string;
|
|
222
|
+
} | undefined;
|
|
223
|
+
state: "running" | "succeeded" | "unknown";
|
|
224
|
+
} | undefined;
|
|
225
|
+
create?: {
|
|
226
|
+
receipt?: {
|
|
227
|
+
customerAccount: string;
|
|
228
|
+
enabled?: boolean | undefined;
|
|
229
|
+
paymentMethodId: string | null;
|
|
230
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
231
|
+
phase: "apply" | "attach" | "create";
|
|
232
|
+
providerApiVersion: string;
|
|
233
|
+
stripeSubscriptionId: string;
|
|
234
|
+
} | undefined;
|
|
235
|
+
state: "running" | "succeeded" | "unknown";
|
|
236
|
+
} | undefined;
|
|
237
|
+
definitionVersion: string;
|
|
238
|
+
providerAction: string;
|
|
239
|
+
providerApiVersion: string;
|
|
240
|
+
workflowId?: string | undefined;
|
|
241
|
+
} | undefined, {
|
|
242
|
+
workflowId: import("convex/values").VString<string | undefined, "optional">;
|
|
243
|
+
definitionVersion: import("convex/values").VString<string, "required">;
|
|
244
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
245
|
+
providerAction: import("convex/values").VString<string, "required">;
|
|
246
|
+
create: import("convex/values").VObject<{
|
|
247
|
+
receipt?: {
|
|
248
|
+
customerAccount: string;
|
|
249
|
+
enabled?: boolean | undefined;
|
|
250
|
+
paymentMethodId: string | null;
|
|
251
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
252
|
+
phase: "apply" | "attach" | "create";
|
|
253
|
+
providerApiVersion: string;
|
|
254
|
+
stripeSubscriptionId: string;
|
|
255
|
+
} | undefined;
|
|
256
|
+
state: "running" | "succeeded" | "unknown";
|
|
257
|
+
} | undefined, {
|
|
258
|
+
state: import("convex/values").VUnion<"running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">], "required", never>;
|
|
259
|
+
receipt: import("convex/values").VObject<{
|
|
260
|
+
customerAccount: string;
|
|
261
|
+
enabled?: boolean | undefined;
|
|
262
|
+
paymentMethodId: string | null;
|
|
263
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
264
|
+
phase: "apply" | "attach" | "create";
|
|
265
|
+
providerApiVersion: string;
|
|
266
|
+
stripeSubscriptionId: string;
|
|
267
|
+
} | undefined, {
|
|
268
|
+
phase: import("convex/values").VUnion<"apply" | "attach" | "create", [import("convex/values").VLiteral<"create", "required">, import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
|
|
269
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
270
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
271
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
272
|
+
paymentMethodTypes: import("convex/values").VUnion<string[] | null | undefined, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
273
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
274
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
275
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
276
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
277
|
+
attach: import("convex/values").VObject<{
|
|
278
|
+
receipt?: {
|
|
279
|
+
customerAccount: string;
|
|
280
|
+
enabled?: boolean | undefined;
|
|
281
|
+
paymentMethodId: string | null;
|
|
282
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
283
|
+
phase: "apply" | "attach" | "create";
|
|
284
|
+
providerApiVersion: string;
|
|
285
|
+
stripeSubscriptionId: string;
|
|
286
|
+
} | undefined;
|
|
287
|
+
state: "running" | "succeeded" | "unknown";
|
|
288
|
+
} | undefined, {
|
|
289
|
+
state: import("convex/values").VUnion<"running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">], "required", never>;
|
|
290
|
+
receipt: import("convex/values").VObject<{
|
|
291
|
+
customerAccount: string;
|
|
292
|
+
enabled?: boolean | undefined;
|
|
293
|
+
paymentMethodId: string | null;
|
|
294
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
295
|
+
phase: "apply" | "attach" | "create";
|
|
296
|
+
providerApiVersion: string;
|
|
297
|
+
stripeSubscriptionId: string;
|
|
298
|
+
} | undefined, {
|
|
299
|
+
phase: import("convex/values").VUnion<"apply" | "attach" | "create", [import("convex/values").VLiteral<"create", "required">, import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
|
|
300
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
301
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
302
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
303
|
+
paymentMethodTypes: import("convex/values").VUnion<string[] | null | undefined, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
304
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
305
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
306
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
307
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
308
|
+
apply: import("convex/values").VObject<{
|
|
309
|
+
receipt?: {
|
|
310
|
+
customerAccount: string;
|
|
311
|
+
enabled?: boolean | undefined;
|
|
312
|
+
paymentMethodId: string | null;
|
|
313
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
314
|
+
phase: "apply" | "attach" | "create";
|
|
315
|
+
providerApiVersion: string;
|
|
316
|
+
stripeSubscriptionId: string;
|
|
317
|
+
} | undefined;
|
|
318
|
+
state: "running" | "succeeded" | "unknown";
|
|
319
|
+
} | undefined, {
|
|
320
|
+
state: import("convex/values").VUnion<"running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">], "required", never>;
|
|
321
|
+
receipt: import("convex/values").VObject<{
|
|
322
|
+
customerAccount: string;
|
|
323
|
+
enabled?: boolean | undefined;
|
|
324
|
+
paymentMethodId: string | null;
|
|
325
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
326
|
+
phase: "apply" | "attach" | "create";
|
|
327
|
+
providerApiVersion: string;
|
|
328
|
+
stripeSubscriptionId: string;
|
|
329
|
+
} | undefined, {
|
|
330
|
+
phase: import("convex/values").VUnion<"apply" | "attach" | "create", [import("convex/values").VLiteral<"create", "required">, import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
|
|
331
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
332
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
333
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
334
|
+
paymentMethodTypes: import("convex/values").VUnion<string[] | null | undefined, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
335
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
336
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
337
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
338
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
339
|
+
}, "optional", "apply" | "apply.receipt" | "apply.receipt.customerAccount" | "apply.receipt.enabled" | "apply.receipt.paymentMethodId" | "apply.receipt.paymentMethodTypes" | "apply.receipt.phase" | "apply.receipt.providerApiVersion" | "apply.receipt.stripeSubscriptionId" | "apply.state" | "attach" | "attach.receipt" | "attach.receipt.customerAccount" | "attach.receipt.enabled" | "attach.receipt.paymentMethodId" | "attach.receipt.paymentMethodTypes" | "attach.receipt.phase" | "attach.receipt.providerApiVersion" | "attach.receipt.stripeSubscriptionId" | "attach.state" | "create" | "create.receipt" | "create.receipt.customerAccount" | "create.receipt.enabled" | "create.receipt.paymentMethodId" | "create.receipt.paymentMethodTypes" | "create.receipt.phase" | "create.receipt.providerApiVersion" | "create.receipt.stripeSubscriptionId" | "create.state" | "definitionVersion" | "providerAction" | "providerApiVersion" | "workflowId">;
|
|
200
340
|
};
|
|
201
341
|
export declare const operationDoc: import("convex/values").VObject<{
|
|
202
342
|
_creationTime: number;
|
|
@@ -204,6 +344,48 @@ export declare const operationDoc: import("convex/values").VObject<{
|
|
|
204
344
|
accountId: string;
|
|
205
345
|
cancelRequested: boolean;
|
|
206
346
|
enabled: boolean;
|
|
347
|
+
execution?: {
|
|
348
|
+
apply?: {
|
|
349
|
+
receipt?: {
|
|
350
|
+
customerAccount: string;
|
|
351
|
+
enabled?: boolean | undefined;
|
|
352
|
+
paymentMethodId: string | null;
|
|
353
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
354
|
+
phase: "apply" | "attach" | "create";
|
|
355
|
+
providerApiVersion: string;
|
|
356
|
+
stripeSubscriptionId: string;
|
|
357
|
+
} | undefined;
|
|
358
|
+
state: "running" | "succeeded" | "unknown";
|
|
359
|
+
} | undefined;
|
|
360
|
+
attach?: {
|
|
361
|
+
receipt?: {
|
|
362
|
+
customerAccount: string;
|
|
363
|
+
enabled?: boolean | undefined;
|
|
364
|
+
paymentMethodId: string | null;
|
|
365
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
366
|
+
phase: "apply" | "attach" | "create";
|
|
367
|
+
providerApiVersion: string;
|
|
368
|
+
stripeSubscriptionId: string;
|
|
369
|
+
} | undefined;
|
|
370
|
+
state: "running" | "succeeded" | "unknown";
|
|
371
|
+
} | undefined;
|
|
372
|
+
create?: {
|
|
373
|
+
receipt?: {
|
|
374
|
+
customerAccount: string;
|
|
375
|
+
enabled?: boolean | undefined;
|
|
376
|
+
paymentMethodId: string | null;
|
|
377
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
378
|
+
phase: "apply" | "attach" | "create";
|
|
379
|
+
providerApiVersion: string;
|
|
380
|
+
stripeSubscriptionId: string;
|
|
381
|
+
} | undefined;
|
|
382
|
+
state: "running" | "succeeded" | "unknown";
|
|
383
|
+
} | undefined;
|
|
384
|
+
definitionVersion: string;
|
|
385
|
+
providerAction: string;
|
|
386
|
+
providerApiVersion: string;
|
|
387
|
+
workflowId?: string | undefined;
|
|
388
|
+
} | undefined;
|
|
207
389
|
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
208
390
|
kind: "apply" | "prepare";
|
|
209
391
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
@@ -259,9 +441,149 @@ export declare const operationDoc: import("convex/values").VObject<{
|
|
|
259
441
|
paymentMethodTypes: import("convex/values").VUnion<string[] | null, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
260
442
|
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
261
443
|
}, "optional", "customerAccount" | "paymentMethodId" | "paymentMethodTypes" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
444
|
+
execution: import("convex/values").VObject<{
|
|
445
|
+
apply?: {
|
|
446
|
+
receipt?: {
|
|
447
|
+
customerAccount: string;
|
|
448
|
+
enabled?: boolean | undefined;
|
|
449
|
+
paymentMethodId: string | null;
|
|
450
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
451
|
+
phase: "apply" | "attach" | "create";
|
|
452
|
+
providerApiVersion: string;
|
|
453
|
+
stripeSubscriptionId: string;
|
|
454
|
+
} | undefined;
|
|
455
|
+
state: "running" | "succeeded" | "unknown";
|
|
456
|
+
} | undefined;
|
|
457
|
+
attach?: {
|
|
458
|
+
receipt?: {
|
|
459
|
+
customerAccount: string;
|
|
460
|
+
enabled?: boolean | undefined;
|
|
461
|
+
paymentMethodId: string | null;
|
|
462
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
463
|
+
phase: "apply" | "attach" | "create";
|
|
464
|
+
providerApiVersion: string;
|
|
465
|
+
stripeSubscriptionId: string;
|
|
466
|
+
} | undefined;
|
|
467
|
+
state: "running" | "succeeded" | "unknown";
|
|
468
|
+
} | undefined;
|
|
469
|
+
create?: {
|
|
470
|
+
receipt?: {
|
|
471
|
+
customerAccount: string;
|
|
472
|
+
enabled?: boolean | undefined;
|
|
473
|
+
paymentMethodId: string | null;
|
|
474
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
475
|
+
phase: "apply" | "attach" | "create";
|
|
476
|
+
providerApiVersion: string;
|
|
477
|
+
stripeSubscriptionId: string;
|
|
478
|
+
} | undefined;
|
|
479
|
+
state: "running" | "succeeded" | "unknown";
|
|
480
|
+
} | undefined;
|
|
481
|
+
definitionVersion: string;
|
|
482
|
+
providerAction: string;
|
|
483
|
+
providerApiVersion: string;
|
|
484
|
+
workflowId?: string | undefined;
|
|
485
|
+
} | undefined, {
|
|
486
|
+
workflowId: import("convex/values").VString<string | undefined, "optional">;
|
|
487
|
+
definitionVersion: import("convex/values").VString<string, "required">;
|
|
488
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
489
|
+
providerAction: import("convex/values").VString<string, "required">;
|
|
490
|
+
create: import("convex/values").VObject<{
|
|
491
|
+
receipt?: {
|
|
492
|
+
customerAccount: string;
|
|
493
|
+
enabled?: boolean | undefined;
|
|
494
|
+
paymentMethodId: string | null;
|
|
495
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
496
|
+
phase: "apply" | "attach" | "create";
|
|
497
|
+
providerApiVersion: string;
|
|
498
|
+
stripeSubscriptionId: string;
|
|
499
|
+
} | undefined;
|
|
500
|
+
state: "running" | "succeeded" | "unknown";
|
|
501
|
+
} | undefined, {
|
|
502
|
+
state: import("convex/values").VUnion<"running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">], "required", never>;
|
|
503
|
+
receipt: import("convex/values").VObject<{
|
|
504
|
+
customerAccount: string;
|
|
505
|
+
enabled?: boolean | undefined;
|
|
506
|
+
paymentMethodId: string | null;
|
|
507
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
508
|
+
phase: "apply" | "attach" | "create";
|
|
509
|
+
providerApiVersion: string;
|
|
510
|
+
stripeSubscriptionId: string;
|
|
511
|
+
} | undefined, {
|
|
512
|
+
phase: import("convex/values").VUnion<"apply" | "attach" | "create", [import("convex/values").VLiteral<"create", "required">, import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
|
|
513
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
514
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
515
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
516
|
+
paymentMethodTypes: import("convex/values").VUnion<string[] | null | undefined, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
517
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
518
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
519
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
520
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
521
|
+
attach: import("convex/values").VObject<{
|
|
522
|
+
receipt?: {
|
|
523
|
+
customerAccount: string;
|
|
524
|
+
enabled?: boolean | undefined;
|
|
525
|
+
paymentMethodId: string | null;
|
|
526
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
527
|
+
phase: "apply" | "attach" | "create";
|
|
528
|
+
providerApiVersion: string;
|
|
529
|
+
stripeSubscriptionId: string;
|
|
530
|
+
} | undefined;
|
|
531
|
+
state: "running" | "succeeded" | "unknown";
|
|
532
|
+
} | undefined, {
|
|
533
|
+
state: import("convex/values").VUnion<"running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">], "required", never>;
|
|
534
|
+
receipt: import("convex/values").VObject<{
|
|
535
|
+
customerAccount: string;
|
|
536
|
+
enabled?: boolean | undefined;
|
|
537
|
+
paymentMethodId: string | null;
|
|
538
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
539
|
+
phase: "apply" | "attach" | "create";
|
|
540
|
+
providerApiVersion: string;
|
|
541
|
+
stripeSubscriptionId: string;
|
|
542
|
+
} | undefined, {
|
|
543
|
+
phase: import("convex/values").VUnion<"apply" | "attach" | "create", [import("convex/values").VLiteral<"create", "required">, import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
|
|
544
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
545
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
546
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
547
|
+
paymentMethodTypes: import("convex/values").VUnion<string[] | null | undefined, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
548
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
549
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
550
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
551
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
552
|
+
apply: import("convex/values").VObject<{
|
|
553
|
+
receipt?: {
|
|
554
|
+
customerAccount: string;
|
|
555
|
+
enabled?: boolean | undefined;
|
|
556
|
+
paymentMethodId: string | null;
|
|
557
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
558
|
+
phase: "apply" | "attach" | "create";
|
|
559
|
+
providerApiVersion: string;
|
|
560
|
+
stripeSubscriptionId: string;
|
|
561
|
+
} | undefined;
|
|
562
|
+
state: "running" | "succeeded" | "unknown";
|
|
563
|
+
} | undefined, {
|
|
564
|
+
state: import("convex/values").VUnion<"running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">], "required", never>;
|
|
565
|
+
receipt: import("convex/values").VObject<{
|
|
566
|
+
customerAccount: string;
|
|
567
|
+
enabled?: boolean | undefined;
|
|
568
|
+
paymentMethodId: string | null;
|
|
569
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
570
|
+
phase: "apply" | "attach" | "create";
|
|
571
|
+
providerApiVersion: string;
|
|
572
|
+
stripeSubscriptionId: string;
|
|
573
|
+
} | undefined, {
|
|
574
|
+
phase: import("convex/values").VUnion<"apply" | "attach" | "create", [import("convex/values").VLiteral<"create", "required">, import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
|
|
575
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
576
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
577
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
578
|
+
paymentMethodTypes: import("convex/values").VUnion<string[] | null | undefined, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
579
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
580
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
581
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
582
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
583
|
+
}, "optional", "apply" | "apply.receipt" | "apply.receipt.customerAccount" | "apply.receipt.enabled" | "apply.receipt.paymentMethodId" | "apply.receipt.paymentMethodTypes" | "apply.receipt.phase" | "apply.receipt.providerApiVersion" | "apply.receipt.stripeSubscriptionId" | "apply.state" | "attach" | "attach.receipt" | "attach.receipt.customerAccount" | "attach.receipt.enabled" | "attach.receipt.paymentMethodId" | "attach.receipt.paymentMethodTypes" | "attach.receipt.phase" | "attach.receipt.providerApiVersion" | "attach.receipt.stripeSubscriptionId" | "attach.state" | "create" | "create.receipt" | "create.receipt.customerAccount" | "create.receipt.enabled" | "create.receipt.paymentMethodId" | "create.receipt.paymentMethodTypes" | "create.receipt.phase" | "create.receipt.providerApiVersion" | "create.receipt.stripeSubscriptionId" | "create.state" | "definitionVersion" | "providerAction" | "providerApiVersion" | "workflowId">;
|
|
262
584
|
_id: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations">, "required">;
|
|
263
585
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
264
|
-
}, "required", "_creationTime" | "_id" | "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">;
|
|
586
|
+
}, "required", "_creationTime" | "_id" | "accountId" | "cancelRequested" | "enabled" | "execution" | "execution.apply" | "execution.apply.receipt" | "execution.apply.receipt.customerAccount" | "execution.apply.receipt.enabled" | "execution.apply.receipt.paymentMethodId" | "execution.apply.receipt.paymentMethodTypes" | "execution.apply.receipt.phase" | "execution.apply.receipt.providerApiVersion" | "execution.apply.receipt.stripeSubscriptionId" | "execution.apply.state" | "execution.attach" | "execution.attach.receipt" | "execution.attach.receipt.customerAccount" | "execution.attach.receipt.enabled" | "execution.attach.receipt.paymentMethodId" | "execution.attach.receipt.paymentMethodTypes" | "execution.attach.receipt.phase" | "execution.attach.receipt.providerApiVersion" | "execution.attach.receipt.stripeSubscriptionId" | "execution.attach.state" | "execution.create" | "execution.create.receipt" | "execution.create.receipt.customerAccount" | "execution.create.receipt.enabled" | "execution.create.receipt.paymentMethodId" | "execution.create.receipt.paymentMethodTypes" | "execution.create.receipt.phase" | "execution.create.receipt.providerApiVersion" | "execution.create.receipt.stripeSubscriptionId" | "execution.create.state" | "execution.definitionVersion" | "execution.providerAction" | "execution.providerApiVersion" | "execution.workflowId" | "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">;
|
|
265
587
|
export declare const conflict: import("convex/values").VObject<{
|
|
266
588
|
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
267
589
|
retryable: false;
|
|
@@ -406,6 +728,48 @@ export declare const operationsTable: import("convex/server").TableDefinition<im
|
|
|
406
728
|
accountId: string;
|
|
407
729
|
cancelRequested: boolean;
|
|
408
730
|
enabled: boolean;
|
|
731
|
+
execution?: {
|
|
732
|
+
apply?: {
|
|
733
|
+
receipt?: {
|
|
734
|
+
customerAccount: string;
|
|
735
|
+
enabled?: boolean | undefined;
|
|
736
|
+
paymentMethodId: string | null;
|
|
737
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
738
|
+
phase: "apply" | "attach" | "create";
|
|
739
|
+
providerApiVersion: string;
|
|
740
|
+
stripeSubscriptionId: string;
|
|
741
|
+
} | undefined;
|
|
742
|
+
state: "running" | "succeeded" | "unknown";
|
|
743
|
+
} | undefined;
|
|
744
|
+
attach?: {
|
|
745
|
+
receipt?: {
|
|
746
|
+
customerAccount: string;
|
|
747
|
+
enabled?: boolean | undefined;
|
|
748
|
+
paymentMethodId: string | null;
|
|
749
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
750
|
+
phase: "apply" | "attach" | "create";
|
|
751
|
+
providerApiVersion: string;
|
|
752
|
+
stripeSubscriptionId: string;
|
|
753
|
+
} | undefined;
|
|
754
|
+
state: "running" | "succeeded" | "unknown";
|
|
755
|
+
} | undefined;
|
|
756
|
+
create?: {
|
|
757
|
+
receipt?: {
|
|
758
|
+
customerAccount: string;
|
|
759
|
+
enabled?: boolean | undefined;
|
|
760
|
+
paymentMethodId: string | null;
|
|
761
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
762
|
+
phase: "apply" | "attach" | "create";
|
|
763
|
+
providerApiVersion: string;
|
|
764
|
+
stripeSubscriptionId: string;
|
|
765
|
+
} | undefined;
|
|
766
|
+
state: "running" | "succeeded" | "unknown";
|
|
767
|
+
} | undefined;
|
|
768
|
+
definitionVersion: string;
|
|
769
|
+
providerAction: string;
|
|
770
|
+
providerApiVersion: string;
|
|
771
|
+
workflowId?: string | undefined;
|
|
772
|
+
} | undefined;
|
|
409
773
|
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
410
774
|
kind: "apply" | "prepare";
|
|
411
775
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
@@ -461,7 +825,147 @@ export declare const operationsTable: import("convex/server").TableDefinition<im
|
|
|
461
825
|
paymentMethodTypes: import("convex/values").VUnion<string[] | null, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
462
826
|
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
463
827
|
}, "optional", "customerAccount" | "paymentMethodId" | "paymentMethodTypes" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
464
|
-
|
|
828
|
+
execution: import("convex/values").VObject<{
|
|
829
|
+
apply?: {
|
|
830
|
+
receipt?: {
|
|
831
|
+
customerAccount: string;
|
|
832
|
+
enabled?: boolean | undefined;
|
|
833
|
+
paymentMethodId: string | null;
|
|
834
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
835
|
+
phase: "apply" | "attach" | "create";
|
|
836
|
+
providerApiVersion: string;
|
|
837
|
+
stripeSubscriptionId: string;
|
|
838
|
+
} | undefined;
|
|
839
|
+
state: "running" | "succeeded" | "unknown";
|
|
840
|
+
} | undefined;
|
|
841
|
+
attach?: {
|
|
842
|
+
receipt?: {
|
|
843
|
+
customerAccount: string;
|
|
844
|
+
enabled?: boolean | undefined;
|
|
845
|
+
paymentMethodId: string | null;
|
|
846
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
847
|
+
phase: "apply" | "attach" | "create";
|
|
848
|
+
providerApiVersion: string;
|
|
849
|
+
stripeSubscriptionId: string;
|
|
850
|
+
} | undefined;
|
|
851
|
+
state: "running" | "succeeded" | "unknown";
|
|
852
|
+
} | undefined;
|
|
853
|
+
create?: {
|
|
854
|
+
receipt?: {
|
|
855
|
+
customerAccount: string;
|
|
856
|
+
enabled?: boolean | undefined;
|
|
857
|
+
paymentMethodId: string | null;
|
|
858
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
859
|
+
phase: "apply" | "attach" | "create";
|
|
860
|
+
providerApiVersion: string;
|
|
861
|
+
stripeSubscriptionId: string;
|
|
862
|
+
} | undefined;
|
|
863
|
+
state: "running" | "succeeded" | "unknown";
|
|
864
|
+
} | undefined;
|
|
865
|
+
definitionVersion: string;
|
|
866
|
+
providerAction: string;
|
|
867
|
+
providerApiVersion: string;
|
|
868
|
+
workflowId?: string | undefined;
|
|
869
|
+
} | undefined, {
|
|
870
|
+
workflowId: import("convex/values").VString<string | undefined, "optional">;
|
|
871
|
+
definitionVersion: import("convex/values").VString<string, "required">;
|
|
872
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
873
|
+
providerAction: import("convex/values").VString<string, "required">;
|
|
874
|
+
create: import("convex/values").VObject<{
|
|
875
|
+
receipt?: {
|
|
876
|
+
customerAccount: string;
|
|
877
|
+
enabled?: boolean | undefined;
|
|
878
|
+
paymentMethodId: string | null;
|
|
879
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
880
|
+
phase: "apply" | "attach" | "create";
|
|
881
|
+
providerApiVersion: string;
|
|
882
|
+
stripeSubscriptionId: string;
|
|
883
|
+
} | undefined;
|
|
884
|
+
state: "running" | "succeeded" | "unknown";
|
|
885
|
+
} | undefined, {
|
|
886
|
+
state: import("convex/values").VUnion<"running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">], "required", never>;
|
|
887
|
+
receipt: import("convex/values").VObject<{
|
|
888
|
+
customerAccount: string;
|
|
889
|
+
enabled?: boolean | undefined;
|
|
890
|
+
paymentMethodId: string | null;
|
|
891
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
892
|
+
phase: "apply" | "attach" | "create";
|
|
893
|
+
providerApiVersion: string;
|
|
894
|
+
stripeSubscriptionId: string;
|
|
895
|
+
} | undefined, {
|
|
896
|
+
phase: import("convex/values").VUnion<"apply" | "attach" | "create", [import("convex/values").VLiteral<"create", "required">, import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
|
|
897
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
898
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
899
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
900
|
+
paymentMethodTypes: import("convex/values").VUnion<string[] | null | undefined, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
901
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
902
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
903
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
904
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
905
|
+
attach: import("convex/values").VObject<{
|
|
906
|
+
receipt?: {
|
|
907
|
+
customerAccount: string;
|
|
908
|
+
enabled?: boolean | undefined;
|
|
909
|
+
paymentMethodId: string | null;
|
|
910
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
911
|
+
phase: "apply" | "attach" | "create";
|
|
912
|
+
providerApiVersion: string;
|
|
913
|
+
stripeSubscriptionId: string;
|
|
914
|
+
} | undefined;
|
|
915
|
+
state: "running" | "succeeded" | "unknown";
|
|
916
|
+
} | undefined, {
|
|
917
|
+
state: import("convex/values").VUnion<"running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">], "required", never>;
|
|
918
|
+
receipt: import("convex/values").VObject<{
|
|
919
|
+
customerAccount: string;
|
|
920
|
+
enabled?: boolean | undefined;
|
|
921
|
+
paymentMethodId: string | null;
|
|
922
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
923
|
+
phase: "apply" | "attach" | "create";
|
|
924
|
+
providerApiVersion: string;
|
|
925
|
+
stripeSubscriptionId: string;
|
|
926
|
+
} | undefined, {
|
|
927
|
+
phase: import("convex/values").VUnion<"apply" | "attach" | "create", [import("convex/values").VLiteral<"create", "required">, import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
|
|
928
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
929
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
930
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
931
|
+
paymentMethodTypes: import("convex/values").VUnion<string[] | null | undefined, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
932
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
933
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
934
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
935
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
936
|
+
apply: import("convex/values").VObject<{
|
|
937
|
+
receipt?: {
|
|
938
|
+
customerAccount: string;
|
|
939
|
+
enabled?: boolean | undefined;
|
|
940
|
+
paymentMethodId: string | null;
|
|
941
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
942
|
+
phase: "apply" | "attach" | "create";
|
|
943
|
+
providerApiVersion: string;
|
|
944
|
+
stripeSubscriptionId: string;
|
|
945
|
+
} | undefined;
|
|
946
|
+
state: "running" | "succeeded" | "unknown";
|
|
947
|
+
} | undefined, {
|
|
948
|
+
state: import("convex/values").VUnion<"running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">], "required", never>;
|
|
949
|
+
receipt: import("convex/values").VObject<{
|
|
950
|
+
customerAccount: string;
|
|
951
|
+
enabled?: boolean | undefined;
|
|
952
|
+
paymentMethodId: string | null;
|
|
953
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
954
|
+
phase: "apply" | "attach" | "create";
|
|
955
|
+
providerApiVersion: string;
|
|
956
|
+
stripeSubscriptionId: string;
|
|
957
|
+
} | undefined, {
|
|
958
|
+
phase: import("convex/values").VUnion<"apply" | "attach" | "create", [import("convex/values").VLiteral<"create", "required">, import("convex/values").VLiteral<"attach", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
|
|
959
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
960
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
961
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
962
|
+
paymentMethodTypes: import("convex/values").VUnion<string[] | null | undefined, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
963
|
+
enabled: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
964
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
965
|
+
}, "optional", "customerAccount" | "enabled" | "paymentMethodId" | "paymentMethodTypes" | "phase" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
966
|
+
}, "optional", "receipt" | "receipt.customerAccount" | "receipt.enabled" | "receipt.paymentMethodId" | "receipt.paymentMethodTypes" | "receipt.phase" | "receipt.providerApiVersion" | "receipt.stripeSubscriptionId" | "state">;
|
|
967
|
+
}, "optional", "apply" | "apply.receipt" | "apply.receipt.customerAccount" | "apply.receipt.enabled" | "apply.receipt.paymentMethodId" | "apply.receipt.paymentMethodTypes" | "apply.receipt.phase" | "apply.receipt.providerApiVersion" | "apply.receipt.stripeSubscriptionId" | "apply.state" | "attach" | "attach.receipt" | "attach.receipt.customerAccount" | "attach.receipt.enabled" | "attach.receipt.paymentMethodId" | "attach.receipt.paymentMethodTypes" | "attach.receipt.phase" | "attach.receipt.providerApiVersion" | "attach.receipt.stripeSubscriptionId" | "attach.state" | "create" | "create.receipt" | "create.receipt.customerAccount" | "create.receipt.enabled" | "create.receipt.paymentMethodId" | "create.receipt.paymentMethodTypes" | "create.receipt.phase" | "create.receipt.providerApiVersion" | "create.receipt.stripeSubscriptionId" | "create.state" | "definitionVersion" | "providerAction" | "providerApiVersion" | "workflowId">;
|
|
968
|
+
}, "required", "accountId" | "cancelRequested" | "enabled" | "execution" | "execution.apply" | "execution.apply.receipt" | "execution.apply.receipt.customerAccount" | "execution.apply.receipt.enabled" | "execution.apply.receipt.paymentMethodId" | "execution.apply.receipt.paymentMethodTypes" | "execution.apply.receipt.phase" | "execution.apply.receipt.providerApiVersion" | "execution.apply.receipt.stripeSubscriptionId" | "execution.apply.state" | "execution.attach" | "execution.attach.receipt" | "execution.attach.receipt.customerAccount" | "execution.attach.receipt.enabled" | "execution.attach.receipt.paymentMethodId" | "execution.attach.receipt.paymentMethodTypes" | "execution.attach.receipt.phase" | "execution.attach.receipt.providerApiVersion" | "execution.attach.receipt.stripeSubscriptionId" | "execution.attach.state" | "execution.create" | "execution.create.receipt" | "execution.create.receipt.customerAccount" | "execution.create.receipt.enabled" | "execution.create.receipt.paymentMethodId" | "execution.create.receipt.paymentMethodTypes" | "execution.create.receipt.phase" | "execution.create.receipt.providerApiVersion" | "execution.create.receipt.stripeSubscriptionId" | "execution.create.state" | "execution.definitionVersion" | "execution.providerAction" | "execution.providerApiVersion" | "execution.workflowId" | "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">, {
|
|
465
969
|
by_preparation_version: ["preparationId", "version", "_creationTime"];
|
|
466
970
|
}, {}, {}>;
|
|
467
971
|
export declare const importResult: import("convex/values").VObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/balanceFunding/schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/balanceFunding/schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW;IAAK,SAAS;IAAc,QAAQ;CAAc,CAAC;AAC3E,eAAO,MAAM,cAAc;IACzB,eAAe;IACf,oBAAoB;IACpB,uBAAuB;IACvB,0BAA0B;CAC3B,CAAC;AACF,eAAO,MAAM,aAAa;;;;;;;;;;qHAA2B,CAAC;AACtD,eAAO,MAAM,aAAa;;;;;;;;;;;;yIAGxB,CAAC;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;yIAG3B,CAAC;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;4HAMvB,CAAC;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;CAY7B,CAAC;AACF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;obAIzB,CAAC;AACH,eAAO,MAAM,kBAAkB;;;;;CAI9B,CAAC;AACF,eAAO,MAAM,YAAY;;;;;;;;;;oEAA+B,CAAC;AACzD,eAAO,MAAM,YAAY;;;;;;;;;;0DAKvB,CAAC;AACH,eAAO,MAAM,WAAW,mTAIvB,CAAC;AACF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoB3B,CAAC;AACF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ssDAIvB,CAAC;AACH,eAAO,MAAM,QAAQ;;;;;;;;iDAQnB,CAAC;AACH,eAAO,MAAM,QAAQ;;;;;;;;iDAInB,CAAC;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2NAUvB,CAAC;AACF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAG7B,CAAC;AACF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAG3B,CAAC;AACF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;4IAGvB,CAAC;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAMY,CAAC;AACvC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;kHAYrB,CAAC;AACH,eAAO,MAAM,YAAY;;;;;;;;iDAIvB,CAAC;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2TAqB7B,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineTable } from "convex/server";
|
|
2
2
|
import { v } from "convex/values";
|
|
3
|
+
import { workflowBinding } from "./workflowSchema.js";
|
|
3
4
|
export const scopeFields = { accountId: v.string(), scopeKey: v.string() };
|
|
4
5
|
export const originalFields = {
|
|
5
6
|
customerAccount: v.string(),
|
|
@@ -66,6 +67,7 @@ export const operationFields = {
|
|
|
66
67
|
failureCode: v.optional(failureCode),
|
|
67
68
|
providerKeys,
|
|
68
69
|
receipt: v.optional(receiptValue),
|
|
70
|
+
execution: v.optional(workflowBinding),
|
|
69
71
|
};
|
|
70
72
|
export const operationDoc = v.object({
|
|
71
73
|
...operationFields,
|