@fantastic.dev/better-stripe 0.40.0 → 0.41.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 (98) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +1 -1
  3. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +442 -0
  4. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  5. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +237 -16
  6. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  7. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +442 -0
  8. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  9. package/dist/client/connect/payoutSyncTestHelpers.d.ts +237 -16
  10. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  11. package/dist/client/costRecovery-invoices.d.ts +2 -2
  12. package/dist/client/costRecovery-invoices.d.ts.map +1 -1
  13. package/dist/client/costRecovery-invoices.js +4 -1
  14. package/dist/client/costRecovery-invoices.js.map +1 -1
  15. package/dist/client/costRecovery.d.ts +5 -2
  16. package/dist/client/costRecovery.d.ts.map +1 -1
  17. package/dist/client/costRecovery.js +3 -1
  18. package/dist/client/costRecovery.js.map +1 -1
  19. package/dist/client/recoveryWorkflow/client.d.ts +14 -0
  20. package/dist/client/recoveryWorkflow/client.d.ts.map +1 -0
  21. package/dist/client/recoveryWorkflow/client.js +34 -0
  22. package/dist/client/recoveryWorkflow/client.js.map +1 -0
  23. package/dist/client/recoveryWorkflow/contracts.d.ts +63 -0
  24. package/dist/client/recoveryWorkflow/contracts.d.ts.map +1 -0
  25. package/dist/client/recoveryWorkflow/contracts.js +11 -0
  26. package/dist/client/recoveryWorkflow/contracts.js.map +1 -0
  27. package/dist/client/recoveryWorkflow/provider.d.ts +10 -0
  28. package/dist/client/recoveryWorkflow/provider.d.ts.map +1 -0
  29. package/dist/client/recoveryWorkflow/provider.js +80 -0
  30. package/dist/client/recoveryWorkflow/provider.js.map +1 -0
  31. package/dist/client/recoveryWorkflow/settlement.d.ts +6 -0
  32. package/dist/client/recoveryWorkflow/settlement.d.ts.map +1 -0
  33. package/dist/client/recoveryWorkflow/settlement.js +43 -0
  34. package/dist/client/recoveryWorkflow/settlement.js.map +1 -0
  35. package/dist/component/_generated/api.d.ts +12 -0
  36. package/dist/component/_generated/api.d.ts.map +1 -1
  37. package/dist/component/_generated/api.js.map +1 -1
  38. package/dist/component/_generated/component.d.ts +164 -0
  39. package/dist/component/_generated/component.d.ts.map +1 -1
  40. package/dist/component/balanceFunding/mutations.d.ts +16 -16
  41. package/dist/component/balanceFunding/stateHandlers.d.ts +8 -8
  42. package/dist/component/earnings/triggers.d.ts +210 -16
  43. package/dist/component/earnings/triggers.d.ts.map +1 -1
  44. package/dist/component/payoutRelease/queries.d.ts +2 -2
  45. package/dist/component/payoutRelease/queries.d.ts.map +1 -1
  46. package/dist/component/recoveryWorkflow/bridge.d.ts +21 -0
  47. package/dist/component/recoveryWorkflow/bridge.d.ts.map +1 -0
  48. package/dist/component/recoveryWorkflow/bridge.js +52 -0
  49. package/dist/component/recoveryWorkflow/bridge.js.map +1 -0
  50. package/dist/component/recoveryWorkflow/helpers.d.ts +83 -0
  51. package/dist/component/recoveryWorkflow/helpers.d.ts.map +1 -0
  52. package/dist/component/recoveryWorkflow/helpers.js +48 -0
  53. package/dist/component/recoveryWorkflow/helpers.js.map +1 -0
  54. package/dist/component/recoveryWorkflow/mutations.d.ts +91 -0
  55. package/dist/component/recoveryWorkflow/mutations.d.ts.map +1 -0
  56. package/dist/component/recoveryWorkflow/mutations.js +177 -0
  57. package/dist/component/recoveryWorkflow/mutations.js.map +1 -0
  58. package/dist/component/recoveryWorkflow/queries.d.ts +118 -0
  59. package/dist/component/recoveryWorkflow/queries.d.ts.map +1 -0
  60. package/dist/component/recoveryWorkflow/queries.js +20 -0
  61. package/dist/component/recoveryWorkflow/queries.js.map +1 -0
  62. package/dist/component/recoveryWorkflow/schema.d.ts +653 -0
  63. package/dist/component/recoveryWorkflow/schema.d.ts.map +1 -0
  64. package/dist/component/recoveryWorkflow/schema.js +81 -0
  65. package/dist/component/recoveryWorkflow/schema.js.map +1 -0
  66. package/dist/component/recoveryWorkflow/steps.d.ts +70 -0
  67. package/dist/component/recoveryWorkflow/steps.d.ts.map +1 -0
  68. package/dist/component/recoveryWorkflow/steps.js +94 -0
  69. package/dist/component/recoveryWorkflow/steps.js.map +1 -0
  70. package/dist/component/recoveryWorkflow/workflow.d.ts +22 -0
  71. package/dist/component/recoveryWorkflow/workflow.d.ts.map +1 -0
  72. package/dist/component/recoveryWorkflow/workflow.js +56 -0
  73. package/dist/component/recoveryWorkflow/workflow.js.map +1 -0
  74. package/dist/component/schema.d.ts +221 -0
  75. package/dist/component/schema.js +3 -0
  76. package/dist/component/schema.js.map +1 -1
  77. package/package.json +1 -1
  78. package/src/client/costRecovery-invoices.ts +6 -0
  79. package/src/client/costRecovery.ts +8 -3
  80. package/src/client/recoveryWorkflow/client.test.ts +37 -0
  81. package/src/client/recoveryWorkflow/client.ts +76 -0
  82. package/src/client/recoveryWorkflow/contracts.ts +72 -0
  83. package/src/client/recoveryWorkflow/provider.test.ts +424 -0
  84. package/src/client/recoveryWorkflow/provider.ts +119 -0
  85. package/src/client/recoveryWorkflow/settlement.ts +67 -0
  86. package/src/component/_generated/api.ts +12 -0
  87. package/src/component/_generated/component.ts +222 -0
  88. package/src/component/recoveryWorkflow/bridge.test.ts +481 -0
  89. package/src/component/recoveryWorkflow/bridge.ts +66 -0
  90. package/src/component/recoveryWorkflow/helpers.ts +58 -0
  91. package/src/component/recoveryWorkflow/journal.test.ts +104 -0
  92. package/src/component/recoveryWorkflow/mutations.ts +224 -0
  93. package/src/component/recoveryWorkflow/queries.ts +19 -0
  94. package/src/component/recoveryWorkflow/schema.ts +92 -0
  95. package/src/component/recoveryWorkflow/state.test.ts +191 -0
  96. package/src/component/recoveryWorkflow/steps.ts +97 -0
  97. package/src/component/recoveryWorkflow/workflow.ts +73 -0
  98. package/src/component/schema.ts +6 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWzB,CAAC;AACF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA+C,CAAC;AACxE,eAAO,MAAM,SAAS;;;;;;;CAKrB,CAAC;AACF,eAAO,MAAM,KAAK,kMAAwD,CAAC;AAC3E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmB3B,CAAC;AACF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAEqB,CAAC;AAClD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAIQ,CAAC;AACnC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wpBAIvB,CAAC;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;CAOxB,CAAC;AACF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;qKAAyB,CAAC;AACjD,eAAO,MAAM,QAAQ;;;;;;;;iDAInB,CAAC;AACH,eAAO,MAAM,WAAW;;;;;;;;iDAItB,CAAC;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+OAA6C,CAAC;AACtE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uEAcnB,CAAC"}
@@ -0,0 +1,81 @@
1
+ import { defineTable } from "convex/server";
2
+ import { v } from "convex/values";
3
+ import { scopeFields } from "../costRecovery/schema.js";
4
+ import { allocationFields } from "../settlement/schema.js";
5
+ export const bindingFields = {
6
+ ...scopeFields,
7
+ groupKey: v.string(),
8
+ provider: v.string(),
9
+ completion: v.optional(v.string()),
10
+ providerApiVersion: v.string(),
11
+ definitionVersion: v.number(),
12
+ releaseUncollectible: v.boolean(),
13
+ maxAttempts: v.number(),
14
+ retryDelayMs: v.number(),
15
+ allocation: v.optional(v.object(allocationFields)),
16
+ };
17
+ export const startFields = { ...bindingFields, requestKey: v.string() };
18
+ export const refFields = {
19
+ ...scopeFields,
20
+ groupKey: v.string(),
21
+ operationId: v.id("recoveryWorkflowOperations"),
22
+ version: v.number(),
23
+ };
24
+ export const phase = v.union(v.literal("execute"), v.literal("reconcile"));
25
+ export const operationFields = {
26
+ ...bindingFields,
27
+ version: v.number(),
28
+ sourceKind: v.union(v.literal("settlement"), v.literal("invoice")),
29
+ sourceId: v.string(),
30
+ workflowId: v.optional(v.string()),
31
+ status: v.union(v.literal("queued"), v.literal("running"), v.literal("waiting"), v.literal("unknown"), v.literal("completed"), v.literal("canceled")),
32
+ cancelRequested: v.boolean(),
33
+ providerStarted: v.boolean(),
34
+ activePhase: v.optional(phase),
35
+ resumeQueued: v.boolean(),
36
+ outcome: v.optional(v.union(v.literal("collect"), v.literal("release"))),
37
+ };
38
+ export const operationsTable = defineTable(operationFields)
39
+ .index("by_group", ["groupKey"])
40
+ .index("by_source", ["sourceKind", "sourceId"]);
41
+ export const requestsTable = defineTable({
42
+ requestKey: v.string(),
43
+ binding: v.object(bindingFields),
44
+ operationId: v.id("recoveryWorkflowOperations"),
45
+ }).index("by_key", ["requestKey"]);
46
+ export const operationDoc = v.object({
47
+ ...operationFields,
48
+ _id: v.id("recoveryWorkflowOperations"),
49
+ _creationTime: v.number(),
50
+ });
51
+ export const statusFields = {
52
+ ...refFields,
53
+ sourceKind: v.union(v.literal("settlement"), v.literal("invoice")),
54
+ sourceId: v.string(),
55
+ status: operationFields.status,
56
+ cancelRequested: v.boolean(),
57
+ outcome: operationFields.outcome,
58
+ };
59
+ export const safeStatus = v.object(statusFields);
60
+ export const conflict = v.object({
61
+ status: v.literal("conflict"),
62
+ reason: v.literal("identity_changed"),
63
+ retryable: v.literal(false),
64
+ });
65
+ export const unavailable = v.object({
66
+ status: v.literal("not_ready"),
67
+ reason: v.literal("history_incomplete"),
68
+ retryable: v.literal(true),
69
+ });
70
+ export const startResult = v.union(safeStatus, conflict, unavailable);
71
+ export const receipt = v.union(v.object({
72
+ status: v.literal("ready"),
73
+ outcome: v.union(v.literal("collect"), v.literal("release")),
74
+ }), v.object({
75
+ status: v.literal("not_ready"),
76
+ reason: v.literal("provider_pending"),
77
+ }), v.object({
78
+ status: v.literal("unknown"),
79
+ reason: v.literal("provider_outcome_unknown"),
80
+ }), v.object({ status: v.literal("canceled") }));
81
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,GAAG,WAAW;IACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;I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,OAAO,CAAC;IAC1B,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;CAC7D,CAAC,EACF,CAAC,CAAC,MAAM,CAAC;IACP,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IAC9B,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;CACtC,CAAC,EACF,CAAC,CAAC,MAAM,CAAC;IACP,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC5B,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAAC;CAC9C,CAAC,EACF,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAC5C,CAAC"}
@@ -0,0 +1,70 @@
1
+ export declare const beginProvider: import("convex/server").RegisteredMutation<"internal", {
2
+ accountId: string;
3
+ currency: string;
4
+ groupKey: string;
5
+ operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
6
+ phase: "execute" | "reconcile";
7
+ scopeKey: string;
8
+ version: number;
9
+ }, Promise<boolean>>;
10
+ export declare const saveReceipt: import("convex/server").RegisteredMutation<"internal", {
11
+ accountId: string;
12
+ currency: string;
13
+ groupKey: string;
14
+ operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
15
+ result: {
16
+ outcome: "collect" | "release";
17
+ status: "ready";
18
+ } | {
19
+ reason: "provider_pending";
20
+ status: "not_ready";
21
+ } | {
22
+ reason: "provider_outcome_unknown";
23
+ status: "unknown";
24
+ } | {
25
+ status: "canceled";
26
+ };
27
+ scopeKey: string;
28
+ version: number;
29
+ }, Promise<{
30
+ sourceKind: "invoice" | "settlement";
31
+ sourceId: string;
32
+ status: "canceled" | "completed" | "queued" | "running" | "unknown" | "waiting";
33
+ cancelRequested: boolean;
34
+ outcome?: "collect" | "release" | undefined;
35
+ accountId: string;
36
+ currency: string;
37
+ groupKey: string;
38
+ operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
39
+ scopeKey: string;
40
+ version: number;
41
+ }>>;
42
+ export declare const finish: import("convex/server").RegisteredMutation<"internal", {
43
+ accountId: string;
44
+ currency: string;
45
+ groupKey: string;
46
+ operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
47
+ scopeKey: string;
48
+ version: number;
49
+ }, Promise<boolean>>;
50
+ export declare const complete: import("convex/server").RegisteredMutation<"internal", {
51
+ accountId: string;
52
+ currency: string;
53
+ groupKey: string;
54
+ operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
55
+ scopeKey: string;
56
+ version: number;
57
+ }, Promise<{
58
+ sourceKind: "invoice" | "settlement";
59
+ sourceId: string;
60
+ status: "canceled" | "completed" | "queued" | "running" | "unknown" | "waiting";
61
+ cancelRequested: boolean;
62
+ outcome?: "collect" | "release" | undefined;
63
+ accountId: string;
64
+ currency: string;
65
+ groupKey: string;
66
+ operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
67
+ scopeKey: string;
68
+ version: number;
69
+ }>>;
70
+ //# sourceMappingURL=steps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/steps.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa;;;;;;;;oBAsBxB,CAAC;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuBtB,CAAC;AACH,eAAO,MAAM,MAAM;;;;;;;oBAUjB,CAAC;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;GAgCnB,CAAC"}
@@ -0,0 +1,94 @@
1
+ import { v } from "convex/values";
2
+ import { internalMutation } from "../_generated/server.js";
3
+ import { finishGroup } from "../costRecovery/completion.js";
4
+ import { refFields, phase, receipt, safeStatus } from "./schema.js";
5
+ import { read, status } from "./helpers.js";
6
+ export const beginProvider = internalMutation({
7
+ args: { ...refFields, phase },
8
+ returns: v.boolean(),
9
+ handler: async (ctx, args) => {
10
+ const op = await read(ctx, args);
11
+ if (op.status === "completed" || op.status === "canceled")
12
+ return false;
13
+ if (op.cancelRequested && !op.providerStarted) {
14
+ await ctx.db.patch("recoveryWorkflowOperations", op._id, {
15
+ status: "canceled",
16
+ });
17
+ return false;
18
+ }
19
+ if (args.phase === "execute" && op.providerStarted)
20
+ throw new Error("Recovery provider execution has already started.");
21
+ await ctx.db.patch("recoveryWorkflowOperations", op._id, {
22
+ status: "running",
23
+ providerStarted: true,
24
+ activePhase: args.phase,
25
+ resumeQueued: false,
26
+ });
27
+ return true;
28
+ },
29
+ });
30
+ export const saveReceipt = internalMutation({
31
+ args: { ...refFields, result: receipt },
32
+ returns: safeStatus,
33
+ handler: async (ctx, args) => {
34
+ const op = await read(ctx, args);
35
+ if (args.result.status === "ready") {
36
+ if (op.sourceKind === "settlement" && args.result.outcome !== "collect")
37
+ throw new Error("Settlement recovery cannot release after execution.");
38
+ if (op.outcome && op.outcome !== args.result.outcome)
39
+ throw new Error("Recovery receipt outcome cannot change.");
40
+ await ctx.db.patch("recoveryWorkflowOperations", op._id, {
41
+ outcome: args.result.outcome,
42
+ status: "running",
43
+ });
44
+ }
45
+ else if (args.result.status !== "canceled")
46
+ await ctx.db.patch("recoveryWorkflowOperations", op._id, {
47
+ status: args.result.status === "unknown" || op.cancelRequested
48
+ ? "unknown"
49
+ : "waiting",
50
+ });
51
+ return status((await ctx.db.get("recoveryWorkflowOperations", op._id)));
52
+ },
53
+ });
54
+ export const finish = internalMutation({
55
+ args: refFields,
56
+ returns: v.boolean(),
57
+ handler: async (ctx, args) => {
58
+ const op = await read(ctx, args);
59
+ if (!op.outcome)
60
+ throw new Error("Verified recovery receipt is required.");
61
+ return (await finishGroup(ctx, { groupKey: op.groupKey, outcome: op.outcome })).isDone;
62
+ },
63
+ });
64
+ export const complete = internalMutation({
65
+ args: refFields,
66
+ returns: safeStatus,
67
+ handler: async (ctx, args) => {
68
+ const op = await read(ctx, args);
69
+ if (op.status === "completed")
70
+ return status(op);
71
+ const group = await ctx.db
72
+ .query("recoveryGroups")
73
+ .withIndex("by_key", (q) => q.eq("groupKey", op.groupKey))
74
+ .unique();
75
+ if (!op.outcome ||
76
+ group?.status !== (op.outcome === "collect" ? "collected" : "released"))
77
+ throw new Error("Recovery collection is incomplete.");
78
+ const completed = { ...status(op), status: "completed" };
79
+ // This callback and terminal status commit atomically; callback must be DB-only.
80
+ if (op.completion) {
81
+ try {
82
+ await ctx.runMutation(op.completion, completed);
83
+ }
84
+ catch {
85
+ throw new Error("Recovery completion callback failed.");
86
+ }
87
+ }
88
+ await ctx.db.patch("recoveryWorkflowOperations", op._id, {
89
+ status: "completed",
90
+ });
91
+ return completed;
92
+ },
93
+ });
94
+ //# sourceMappingURL=steps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"steps.js","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/steps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC5C,MAAM,CAAC,MAAM,aAAa,GAAG,gBAAgB,CAAC;IAC5C,IAAI,EAAE,EAAE,GAAG,SAAS,EAAE,KAAK,EAAE;IAC7B,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC3B,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,GAAG,EAAE,IAAI,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E,CAAC,GAAG,EAAE;YACvD,MAAM,EAAE,WAAW;SACpB,CAAC,CAAC;QACH,OAAO,SAAS,CAAC;IACnB,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ export declare const run: import("convex/server").RegisteredMutation<"internal", import("@convex-dev/workflow").WorkflowArgs<{
2
+ accountId: import("convex/values").VString<string, "required">;
3
+ scopeKey: import("convex/values").VString<string, "required">;
4
+ currency: import("convex/values").VString<string, "required">;
5
+ groupKey: import("convex/values").VString<string, "required">;
6
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
7
+ version: import("convex/values").VFloat64<number, "required">;
8
+ initialPhase: import("convex/values").VUnion<"execute" | "reconcile", [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "required", never>;
9
+ }>, import("@convex-dev/workflow").WorkflowMutationResult<{
10
+ accountId: string;
11
+ cancelRequested: boolean;
12
+ currency: string;
13
+ groupKey: string;
14
+ operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
15
+ outcome?: "collect" | "release" | undefined;
16
+ scopeKey: string;
17
+ sourceId: string;
18
+ sourceKind: "invoice" | "settlement";
19
+ status: "canceled" | "completed" | "queued" | "running" | "unknown" | "waiting";
20
+ version: number;
21
+ }>>;
22
+ //# sourceMappingURL=workflow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/workflow.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;GAmEZ,CAAC"}
@@ -0,0 +1,56 @@
1
+ import { financialRetryDecision } from "../../client/financialOutcomes/retry.js";
2
+ import { anyApi } from "convex/server";
3
+ import { executionWorkflow } from "../durableExecution/runtime.js";
4
+ import { refFields, safeStatus, phase as phaseValidator } from "./schema.js";
5
+ export const run = executionWorkflow
6
+ .define({
7
+ args: { ...refFields, initialPhase: phaseValidator },
8
+ returns: safeStatus,
9
+ })
10
+ .handler(async (step, input) => {
11
+ const { initialPhase, ...args } = input;
12
+ const saved = await step.runQuery(anyApi.recoveryWorkflow.queries.saved, args);
13
+ const finish = async () => {
14
+ for (let batch = 0; batch < 20; batch++) {
15
+ if (await step.runMutation(anyApi.recoveryWorkflow.steps.finish, args, {
16
+ name: "finish",
17
+ }))
18
+ return step.runMutation(anyApi.recoveryWorkflow.steps.complete, args, { name: "completion" });
19
+ }
20
+ throw new Error("Recovery finish batch budget exhausted.");
21
+ };
22
+ if (saved.outcome)
23
+ return finish();
24
+ let phase = initialPhase;
25
+ let attempts = 0;
26
+ for (let turn = 0; turn < 20; turn++) {
27
+ const result = await step.runAction(anyApi.recoveryWorkflow.bridge.invoke, { ...args, phase }, { name: `provider-${phase}-${turn}`, retry: false });
28
+ const status = await step.runMutation(anyApi.recoveryWorkflow.steps.saveReceipt, { ...args, result }, { name: "receipt" });
29
+ if (result.status === "canceled")
30
+ return status;
31
+ if (result.status === "ready")
32
+ return finish();
33
+ phase = "reconcile";
34
+ const retry = financialRetryDecision(result.status === "not_ready"
35
+ ? { status: "not_ready", reason: "provider_pending", retryable: true }
36
+ : {
37
+ status: "unknown",
38
+ reason: "provider_outcome_unknown",
39
+ retryable: false,
40
+ }, attempts, {
41
+ maxRetries: saved.maxAttempts - 1,
42
+ initialDelayMs: saved.retryDelayMs,
43
+ maxDelayMs: saved.retryDelayMs,
44
+ });
45
+ if (!status.cancelRequested && retry.status === "retry") {
46
+ attempts = retry.nextAttempt;
47
+ await step.sleep(retry.delayMs);
48
+ }
49
+ else {
50
+ await step.awaitEvent({ name: "reconcile" });
51
+ attempts = 0;
52
+ }
53
+ }
54
+ throw new Error("Recovery reconciliation budget exhausted.");
55
+ });
56
+ //# sourceMappingURL=workflow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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AAQ,GAAG,KAAK,CAAC,WAAW,CAAC;YAC7B,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAClC,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;YAC7C,QAAQ,GAAG,CAAC,CAAC;QACf,CAAC;IACH,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;AAC/D,CAAC,CAAC,CAAC"}
@@ -1,4 +1,225 @@
1
1
  declare const _default: import("convex/server").SchemaDefinition<{
2
+ recoveryWorkflowOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
3
+ accountId: string;
4
+ activePhase?: "execute" | "reconcile" | undefined;
5
+ allocation?: {
6
+ adjustmentAmount?: number | undefined;
7
+ currency: string;
8
+ gross: number;
9
+ paymentId?: string | undefined;
10
+ paymentIntentId?: string | undefined;
11
+ platformNet: number;
12
+ processingFee: number;
13
+ sourceChargeId: string;
14
+ sourceInvoiceId?: string | undefined;
15
+ transfers: {
16
+ amount: number;
17
+ destinationAccountId: string;
18
+ role: "affiliate" | "other" | "store";
19
+ }[];
20
+ } | undefined;
21
+ cancelRequested: boolean;
22
+ completion?: string | undefined;
23
+ currency: string;
24
+ definitionVersion: number;
25
+ groupKey: string;
26
+ maxAttempts: number;
27
+ outcome?: "collect" | "release" | undefined;
28
+ provider: string;
29
+ providerApiVersion: string;
30
+ providerStarted: boolean;
31
+ releaseUncollectible: boolean;
32
+ resumeQueued: boolean;
33
+ retryDelayMs: number;
34
+ scopeKey: string;
35
+ sourceId: string;
36
+ sourceKind: "invoice" | "settlement";
37
+ status: "canceled" | "completed" | "queued" | "running" | "unknown" | "waiting";
38
+ version: number;
39
+ workflowId?: string | undefined;
40
+ }, {
41
+ accountId: import("convex/values").VString<string, "required">;
42
+ scopeKey: import("convex/values").VString<string, "required">;
43
+ currency: import("convex/values").VString<string, "required">;
44
+ groupKey: import("convex/values").VString<string, "required">;
45
+ provider: import("convex/values").VString<string, "required">;
46
+ completion: import("convex/values").VString<string | undefined, "optional">;
47
+ providerApiVersion: import("convex/values").VString<string, "required">;
48
+ definitionVersion: import("convex/values").VFloat64<number, "required">;
49
+ releaseUncollectible: import("convex/values").VBoolean<boolean, "required">;
50
+ maxAttempts: import("convex/values").VFloat64<number, "required">;
51
+ retryDelayMs: import("convex/values").VFloat64<number, "required">;
52
+ allocation: import("convex/values").VObject<{
53
+ adjustmentAmount?: number | undefined;
54
+ currency: string;
55
+ gross: number;
56
+ paymentId?: string | undefined;
57
+ paymentIntentId?: string | undefined;
58
+ platformNet: number;
59
+ processingFee: number;
60
+ sourceChargeId: string;
61
+ sourceInvoiceId?: string | undefined;
62
+ transfers: {
63
+ amount: number;
64
+ destinationAccountId: string;
65
+ role: "affiliate" | "other" | "store";
66
+ }[];
67
+ } | undefined, {
68
+ sourceChargeId: import("convex/values").VString<string, "required">;
69
+ paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
70
+ sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
71
+ gross: import("convex/values").VFloat64<number, "required">;
72
+ currency: import("convex/values").VString<string, "required">;
73
+ processingFee: import("convex/values").VFloat64<number, "required">;
74
+ platformNet: import("convex/values").VFloat64<number, "required">;
75
+ adjustmentAmount: import("convex/values").VFloat64<number | undefined, "optional">;
76
+ paymentId: import("convex/values").VString<string | undefined, "optional">;
77
+ transfers: import("convex/values").VArray<{
78
+ amount: number;
79
+ destinationAccountId: string;
80
+ role: "affiliate" | "other" | "store";
81
+ }[], import("convex/values").VObject<{
82
+ amount: number;
83
+ destinationAccountId: string;
84
+ role: "affiliate" | "other" | "store";
85
+ }, {
86
+ destinationAccountId: import("convex/values").VString<string, "required">;
87
+ role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
88
+ amount: import("convex/values").VFloat64<number, "required">;
89
+ }, "required", "amount" | "destinationAccountId" | "role">, "required">;
90
+ }, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
91
+ version: import("convex/values").VFloat64<number, "required">;
92
+ sourceKind: import("convex/values").VUnion<"invoice" | "settlement", [import("convex/values").VLiteral<"settlement", "required">, import("convex/values").VLiteral<"invoice", "required">], "required", never>;
93
+ sourceId: import("convex/values").VString<string, "required">;
94
+ workflowId: import("convex/values").VString<string | undefined, "optional">;
95
+ status: import("convex/values").VUnion<"canceled" | "completed" | "queued" | "running" | "unknown" | "waiting", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"waiting", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"canceled", "required">], "required", never>;
96
+ cancelRequested: import("convex/values").VBoolean<boolean, "required">;
97
+ providerStarted: import("convex/values").VBoolean<boolean, "required">;
98
+ activePhase: import("convex/values").VUnion<"execute" | "reconcile" | undefined, [import("convex/values").VLiteral<"execute", "required">, import("convex/values").VLiteral<"reconcile", "required">], "optional", never>;
99
+ resumeQueued: import("convex/values").VBoolean<boolean, "required">;
100
+ outcome: import("convex/values").VUnion<"collect" | "release" | undefined, [import("convex/values").VLiteral<"collect", "required">, import("convex/values").VLiteral<"release", "required">], "optional", never>;
101
+ }, "required", "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId">, {
102
+ by_group: ["groupKey", "_creationTime"];
103
+ by_source: ["sourceKind", "sourceId", "_creationTime"];
104
+ }, {}, {}>;
105
+ recoveryWorkflowRequests: import("convex/server").TableDefinition<import("convex/values").VObject<{
106
+ binding: {
107
+ accountId: string;
108
+ allocation?: {
109
+ adjustmentAmount?: number | undefined;
110
+ currency: string;
111
+ gross: number;
112
+ paymentId?: string | undefined;
113
+ paymentIntentId?: string | undefined;
114
+ platformNet: number;
115
+ processingFee: number;
116
+ sourceChargeId: string;
117
+ sourceInvoiceId?: string | undefined;
118
+ transfers: {
119
+ amount: number;
120
+ destinationAccountId: string;
121
+ role: "affiliate" | "other" | "store";
122
+ }[];
123
+ } | undefined;
124
+ completion?: string | undefined;
125
+ currency: string;
126
+ definitionVersion: number;
127
+ groupKey: string;
128
+ maxAttempts: number;
129
+ provider: string;
130
+ providerApiVersion: string;
131
+ releaseUncollectible: boolean;
132
+ retryDelayMs: number;
133
+ scopeKey: string;
134
+ };
135
+ operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
136
+ requestKey: string;
137
+ }, {
138
+ requestKey: import("convex/values").VString<string, "required">;
139
+ binding: import("convex/values").VObject<{
140
+ accountId: string;
141
+ allocation?: {
142
+ adjustmentAmount?: number | undefined;
143
+ currency: string;
144
+ gross: number;
145
+ paymentId?: string | undefined;
146
+ paymentIntentId?: string | undefined;
147
+ platformNet: number;
148
+ processingFee: number;
149
+ sourceChargeId: string;
150
+ sourceInvoiceId?: string | undefined;
151
+ transfers: {
152
+ amount: number;
153
+ destinationAccountId: string;
154
+ role: "affiliate" | "other" | "store";
155
+ }[];
156
+ } | undefined;
157
+ completion?: string | undefined;
158
+ currency: string;
159
+ definitionVersion: number;
160
+ groupKey: string;
161
+ maxAttempts: number;
162
+ provider: string;
163
+ providerApiVersion: string;
164
+ releaseUncollectible: boolean;
165
+ retryDelayMs: number;
166
+ scopeKey: string;
167
+ }, {
168
+ accountId: import("convex/values").VString<string, "required">;
169
+ scopeKey: import("convex/values").VString<string, "required">;
170
+ currency: import("convex/values").VString<string, "required">;
171
+ groupKey: import("convex/values").VString<string, "required">;
172
+ provider: import("convex/values").VString<string, "required">;
173
+ completion: import("convex/values").VString<string | undefined, "optional">;
174
+ providerApiVersion: import("convex/values").VString<string, "required">;
175
+ definitionVersion: import("convex/values").VFloat64<number, "required">;
176
+ releaseUncollectible: import("convex/values").VBoolean<boolean, "required">;
177
+ maxAttempts: import("convex/values").VFloat64<number, "required">;
178
+ retryDelayMs: import("convex/values").VFloat64<number, "required">;
179
+ allocation: import("convex/values").VObject<{
180
+ adjustmentAmount?: number | undefined;
181
+ currency: string;
182
+ gross: number;
183
+ paymentId?: string | undefined;
184
+ paymentIntentId?: string | undefined;
185
+ platformNet: number;
186
+ processingFee: number;
187
+ sourceChargeId: string;
188
+ sourceInvoiceId?: string | undefined;
189
+ transfers: {
190
+ amount: number;
191
+ destinationAccountId: string;
192
+ role: "affiliate" | "other" | "store";
193
+ }[];
194
+ } | undefined, {
195
+ sourceChargeId: import("convex/values").VString<string, "required">;
196
+ paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
197
+ sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
198
+ gross: import("convex/values").VFloat64<number, "required">;
199
+ currency: import("convex/values").VString<string, "required">;
200
+ processingFee: import("convex/values").VFloat64<number, "required">;
201
+ platformNet: import("convex/values").VFloat64<number, "required">;
202
+ adjustmentAmount: import("convex/values").VFloat64<number | undefined, "optional">;
203
+ paymentId: import("convex/values").VString<string | undefined, "optional">;
204
+ transfers: import("convex/values").VArray<{
205
+ amount: number;
206
+ destinationAccountId: string;
207
+ role: "affiliate" | "other" | "store";
208
+ }[], import("convex/values").VObject<{
209
+ amount: number;
210
+ destinationAccountId: string;
211
+ role: "affiliate" | "other" | "store";
212
+ }, {
213
+ destinationAccountId: import("convex/values").VString<string, "required">;
214
+ role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
215
+ amount: import("convex/values").VFloat64<number, "required">;
216
+ }, "required", "amount" | "destinationAccountId" | "role">, "required">;
217
+ }, "optional", "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers">;
218
+ }, "required", "accountId" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "provider" | "providerApiVersion" | "releaseUncollectible" | "retryDelayMs" | "scopeKey">;
219
+ operationId: import("convex/values").VId<import("convex/values").GenericId<"recoveryWorkflowOperations">, "required">;
220
+ }, "required", "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey">, {
221
+ by_key: ["requestKey", "_creationTime"];
222
+ }, {}, {}>;
2
223
  balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
3
224
  accountId: string;
4
225
  activeOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
@@ -1,3 +1,4 @@
1
+ import { operationsTable as recoveryWorkflowOperations, requestsTable as recoveryWorkflowRequests, } from "./recoveryWorkflow/schema.js";
1
2
  import { preparationsTable as balanceFundingPreparations, operationsTable as balanceFundingOperations, requestsTable as balanceFundingRequests, } from "./balanceFunding/schema.js";
2
3
  import { payloadsTable as operationEvidencePayloads, headersTable as operationEvidenceHeaders, } from "./operationEvidence/schema.js";
3
4
  import { transferBatchReferencesTable } from "./financialObservations/transferReferenceSchema.js";
@@ -22,6 +23,8 @@ import { accountsTable } from "./core/schema";
22
23
  import { pricesTable, productsTable } from "./products/schema";
23
24
  import { webhookEventsTable } from "./webhooks/schema";
24
25
  export default defineSchema({
26
+ recoveryWorkflowOperations,
27
+ recoveryWorkflowRequests,
25
28
  balanceFundingPreparations,
26
29
  balanceFundingOperations,
27
30
  balanceFundingRequests,
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,IAAI,0BAA0B,EAC/C,eAAe,IAAI,wBAAwB,EAC3C,aAAa,IAAI,sBAAsB,GACxC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,aAAa,IAAI,yBAAyB,EAC1C,YAAY,IAAI,wBAAwB,GACzC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;AAClG,OAAO,EACL,yBAAyB,EACzB,oBAAoB,GACrB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,uBAAuB,EACvB,eAAe,EACf,2BAA2B,GAC5B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,cAAc,EACd,gBAAgB,GACjB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,SAAS,IAAI,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EACL,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,6BAA6B,CAAC;AACrC,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OAAO,EAAE,YAAY;IACrB,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,cAAc;IACzB,mBAAmB,EAAE,wBAAwB;IAE7C,WAAW;IACX,aAAa,EAAE,kBAAkB;CAClC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fantastic.dev/better-stripe",
3
- "version": "0.40.0",
3
+ "version": "0.41.0",
4
4
  "description": "A Convex component for Stripe V2 Accounts API integration.",
5
5
  "keywords": [
6
6
  "stripe",