@fantastic.dev/better-stripe 0.38.0 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/MIGRATION.md +9 -0
- package/README.md +21 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +506 -2
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +253 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +506 -2
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +253 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/costRecovery.d.ts +18 -0
- package/dist/client/costRecovery.d.ts.map +1 -1
- package/dist/client/costRecovery.js +4 -0
- package/dist/client/costRecovery.js.map +1 -1
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/processingCostDeficit/index.d.ts +27 -0
- package/dist/client/processingCostDeficit/index.d.ts.map +1 -0
- package/dist/client/processingCostDeficit/index.js +54 -0
- package/dist/client/processingCostDeficit/index.js.map +1 -0
- package/dist/component/_generated/api.d.ts +284 -0
- package/dist/component/_generated/api.d.ts.map +1 -0
- package/dist/component/_generated/api.js +31 -0
- package/dist/component/_generated/api.js.map +1 -0
- package/dist/component/_generated/component.d.ts +527 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/balanceFunding/helpers.d.ts +86 -0
- package/dist/component/balanceFunding/helpers.d.ts.map +1 -0
- package/dist/component/balanceFunding/helpers.js +68 -0
- package/dist/component/balanceFunding/helpers.js.map +1 -0
- package/dist/component/balanceFunding/importHandler.d.ts +13 -0
- package/dist/component/balanceFunding/importHandler.d.ts.map +1 -0
- package/dist/component/balanceFunding/importHandler.js +130 -0
- package/dist/component/balanceFunding/importHandler.js.map +1 -0
- package/dist/component/balanceFunding/lifecycleHandlers.d.ts +85 -0
- package/dist/component/balanceFunding/lifecycleHandlers.d.ts.map +1 -0
- package/dist/component/balanceFunding/lifecycleHandlers.js +60 -0
- package/dist/component/balanceFunding/lifecycleHandlers.js.map +1 -0
- package/dist/component/balanceFunding/mutationValidators.d.ts +238 -0
- package/dist/component/balanceFunding/mutationValidators.d.ts.map +1 -0
- package/dist/component/balanceFunding/mutationValidators.js +55 -0
- package/dist/component/balanceFunding/mutationValidators.js.map +1 -0
- package/dist/component/balanceFunding/mutations.d.ts +335 -0
- package/dist/component/balanceFunding/mutations.d.ts.map +1 -0
- package/dist/component/balanceFunding/mutations.js +106 -0
- package/dist/component/balanceFunding/mutations.js.map +1 -0
- package/dist/component/balanceFunding/preparationHandlers.d.ts +55 -0
- package/dist/component/balanceFunding/preparationHandlers.d.ts.map +1 -0
- package/dist/component/balanceFunding/preparationHandlers.js +165 -0
- package/dist/component/balanceFunding/preparationHandlers.js.map +1 -0
- package/dist/component/balanceFunding/queries.d.ts +151 -0
- package/dist/component/balanceFunding/queries.d.ts.map +1 -0
- package/dist/component/balanceFunding/queries.js +180 -0
- package/dist/component/balanceFunding/queries.js.map +1 -0
- package/dist/component/balanceFunding/schema.d.ts +748 -0
- package/dist/component/balanceFunding/schema.d.ts.map +1 -0
- package/dist/component/balanceFunding/schema.js +124 -0
- package/dist/component/balanceFunding/schema.js.map +1 -0
- package/dist/component/balanceFunding/stateHandlers.d.ts +58 -0
- package/dist/component/balanceFunding/stateHandlers.d.ts.map +1 -0
- package/dist/component/balanceFunding/stateHandlers.js +160 -0
- package/dist/component/balanceFunding/stateHandlers.js.map +1 -0
- package/dist/component/convex.config.d.ts.map +1 -1
- package/dist/component/convex.config.js +2 -0
- package/dist/component/convex.config.js.map +1 -1
- package/dist/component/costRecovery/completion.d.ts +1 -0
- package/dist/component/costRecovery/completion.d.ts.map +1 -1
- package/dist/component/costRecovery/helpers.d.ts +1 -0
- package/dist/component/costRecovery/helpers.d.ts.map +1 -1
- package/dist/component/costRecovery/mutations.d.ts +5 -0
- package/dist/component/costRecovery/mutations.d.ts.map +1 -1
- package/dist/component/costRecovery/preparation.d.ts +50 -0
- package/dist/component/costRecovery/preparation.d.ts.map +1 -0
- package/dist/component/costRecovery/preparation.js +108 -0
- package/dist/component/costRecovery/preparation.js.map +1 -0
- package/dist/component/costRecovery/queries.d.ts +1 -0
- package/dist/component/costRecovery/queries.d.ts.map +1 -1
- package/dist/component/costRecovery/reservations.d.ts +2 -0
- package/dist/component/costRecovery/reservations.d.ts.map +1 -1
- package/dist/component/costRecovery/schema.d.ts +7 -2
- package/dist/component/costRecovery/schema.d.ts.map +1 -1
- package/dist/component/costRecovery/schema.js +1 -0
- package/dist/component/costRecovery/schema.js.map +1 -1
- package/dist/component/durableExecution/runtime.d.ts +3 -0
- package/dist/component/durableExecution/runtime.d.ts.map +1 -0
- package/dist/component/durableExecution/runtime.js +12 -0
- package/dist/component/durableExecution/runtime.js.map +1 -0
- package/dist/component/earnings/triggers.d.ts +242 -2
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/schema.d.ts +253 -1
- package/dist/component/schema.js +4 -0
- package/dist/component/schema.js.map +1 -1
- package/package.json +4 -2
- package/src/client/costRecovery.test.ts +34 -0
- package/src/client/costRecovery.ts +21 -0
- package/src/client/index.ts +1 -0
- package/src/client/processingCostDeficit/README.md +35 -0
- package/src/client/processingCostDeficit/calculator.test.ts +176 -0
- package/src/client/processingCostDeficit/index.ts +91 -0
- package/src/component/_generated/api.ts +23 -1
- package/src/component/_generated/component.ts +693 -0
- package/src/component/balanceFunding/failure.test.ts +116 -0
- package/src/component/balanceFunding/helpers.ts +102 -0
- package/src/component/balanceFunding/import.test.ts +221 -0
- package/src/component/balanceFunding/importHandler.ts +146 -0
- package/src/component/balanceFunding/lifecycleHandlers.ts +90 -0
- package/src/component/balanceFunding/lookup.test.ts +113 -0
- package/src/component/balanceFunding/mutationValidators.ts +63 -0
- package/src/component/balanceFunding/mutations.ts +136 -0
- package/src/component/balanceFunding/preparation.test.ts +146 -0
- package/src/component/balanceFunding/preparationHandlers.ts +204 -0
- package/src/component/balanceFunding/queries.ts +221 -0
- package/src/component/balanceFunding/requestLookup.test.ts +160 -0
- package/src/component/balanceFunding/schema.ts +169 -0
- package/src/component/balanceFunding/state.test.ts +352 -0
- package/src/component/balanceFunding/stateHandlers.ts +198 -0
- package/src/component/balanceFunding/validation.test.ts +100 -0
- package/src/component/convex.config.ts +2 -0
- package/src/component/costRecovery/preparation.test.ts +355 -0
- package/src/component/costRecovery/preparation.ts +124 -0
- package/src/component/costRecovery/schema.ts +1 -0
- package/src/component/durableExecution/composition.test.ts +568 -0
- package/src/component/durableExecution/runtime.ts +12 -0
- package/src/component/schema.ts +8 -0
|
@@ -1,5 +1,255 @@
|
|
|
1
1
|
export declare function large(count?: number, amount?: number): Promise<{
|
|
2
2
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
3
|
+
balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4
|
+
accountId: string;
|
|
5
|
+
activeOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
|
|
6
|
+
consentAt: number;
|
|
7
|
+
consentReference: string;
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
operationVersion: number;
|
|
10
|
+
preparation: {
|
|
11
|
+
customerAccount: string;
|
|
12
|
+
paymentMethodId?: string | undefined;
|
|
13
|
+
previousPaymentMethodId: string | null;
|
|
14
|
+
previousPaymentMethodTypes: string[] | null;
|
|
15
|
+
stripeSubscriptionId: string;
|
|
16
|
+
};
|
|
17
|
+
preparationOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
|
|
18
|
+
providerApiVersion: string;
|
|
19
|
+
scopeKey: string;
|
|
20
|
+
startsPaused: boolean;
|
|
21
|
+
verified: boolean;
|
|
22
|
+
}, {
|
|
23
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
24
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
25
|
+
preparation: import("convex/values").VObject<{
|
|
26
|
+
customerAccount: string;
|
|
27
|
+
paymentMethodId?: string | undefined;
|
|
28
|
+
previousPaymentMethodId: string | null;
|
|
29
|
+
previousPaymentMethodTypes: string[] | null;
|
|
30
|
+
stripeSubscriptionId: string;
|
|
31
|
+
}, {
|
|
32
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
33
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
34
|
+
previousPaymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
35
|
+
previousPaymentMethodTypes: 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>;
|
|
36
|
+
paymentMethodId: import("convex/values").VString<string | undefined, "optional">;
|
|
37
|
+
}, "required", "customerAccount" | "paymentMethodId" | "previousPaymentMethodId" | "previousPaymentMethodTypes" | "stripeSubscriptionId">;
|
|
38
|
+
consentAt: import("convex/values").VFloat64<number, "required">;
|
|
39
|
+
consentReference: import("convex/values").VString<string, "required">;
|
|
40
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
41
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
42
|
+
startsPaused: import("convex/values").VBoolean<boolean, "required">;
|
|
43
|
+
verified: import("convex/values").VBoolean<boolean, "required">;
|
|
44
|
+
preparationOperationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations"> | undefined, "optional">;
|
|
45
|
+
operationVersion: import("convex/values").VFloat64<number, "required">;
|
|
46
|
+
activeOperationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations"> | undefined, "optional">;
|
|
47
|
+
}, "required", "accountId" | "activeOperationId" | "consentAt" | "consentReference" | "enabled" | "operationVersion" | "preparation" | "preparation.customerAccount" | "preparation.paymentMethodId" | "preparation.previousPaymentMethodId" | "preparation.previousPaymentMethodTypes" | "preparation.stripeSubscriptionId" | "preparationOperationId" | "providerApiVersion" | "scopeKey" | "startsPaused" | "verified">, {
|
|
48
|
+
by_account_subscription: ["accountId", "preparation.stripeSubscriptionId", "_creationTime"];
|
|
49
|
+
}, {}, {}>;
|
|
50
|
+
balanceFundingOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
51
|
+
accountId: string;
|
|
52
|
+
cancelRequested: boolean;
|
|
53
|
+
enabled: boolean;
|
|
54
|
+
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
55
|
+
kind: "apply" | "prepare";
|
|
56
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
57
|
+
providerKey: string;
|
|
58
|
+
providerKeys: {
|
|
59
|
+
attach?: string | undefined;
|
|
60
|
+
create?: string | undefined;
|
|
61
|
+
disable: string;
|
|
62
|
+
enable: string;
|
|
63
|
+
};
|
|
64
|
+
receipt?: {
|
|
65
|
+
customerAccount: string;
|
|
66
|
+
paymentMethodId: string | null;
|
|
67
|
+
paymentMethodTypes: string[] | null;
|
|
68
|
+
providerApiVersion: string;
|
|
69
|
+
stripeSubscriptionId: string;
|
|
70
|
+
} | undefined;
|
|
71
|
+
scopeKey: string;
|
|
72
|
+
state: "canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown";
|
|
73
|
+
version: number;
|
|
74
|
+
}, {
|
|
75
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
76
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
77
|
+
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
78
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
79
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
80
|
+
kind: import("convex/values").VUnion<"apply" | "prepare", [import("convex/values").VLiteral<"prepare", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
|
|
81
|
+
providerKey: import("convex/values").VString<string, "required">;
|
|
82
|
+
state: import("convex/values").VUnion<"canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">, import("convex/values").VLiteral<"canceled", "required">, import("convex/values").VLiteral<"failed", "required">], "required", never>;
|
|
83
|
+
cancelRequested: import("convex/values").VBoolean<boolean, "required">;
|
|
84
|
+
failureCode: import("convex/values").VUnion<"invalid_scope" | "policy_invalid" | "unsupported_source" | undefined, [import("convex/values").VLiteral<"invalid_scope", "required">, import("convex/values").VLiteral<"unsupported_source", "required">, import("convex/values").VLiteral<"policy_invalid", "required">], "optional", never>;
|
|
85
|
+
providerKeys: import("convex/values").VObject<{
|
|
86
|
+
attach?: string | undefined;
|
|
87
|
+
create?: string | undefined;
|
|
88
|
+
disable: string;
|
|
89
|
+
enable: string;
|
|
90
|
+
}, {
|
|
91
|
+
enable: import("convex/values").VString<string, "required">;
|
|
92
|
+
disable: import("convex/values").VString<string, "required">;
|
|
93
|
+
create: import("convex/values").VString<string | undefined, "optional">;
|
|
94
|
+
attach: import("convex/values").VString<string | undefined, "optional">;
|
|
95
|
+
}, "required", "attach" | "create" | "disable" | "enable">;
|
|
96
|
+
receipt: import("convex/values").VObject<{
|
|
97
|
+
customerAccount: string;
|
|
98
|
+
paymentMethodId: string | null;
|
|
99
|
+
paymentMethodTypes: string[] | null;
|
|
100
|
+
providerApiVersion: string;
|
|
101
|
+
stripeSubscriptionId: string;
|
|
102
|
+
} | undefined, {
|
|
103
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
104
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
105
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
106
|
+
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>;
|
|
107
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
108
|
+
}, "optional", "customerAccount" | "paymentMethodId" | "paymentMethodTypes" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
109
|
+
}, "required", "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">, {
|
|
110
|
+
by_preparation_version: ["preparationId", "version", "_creationTime"];
|
|
111
|
+
}, {}, {}>;
|
|
112
|
+
balanceFundingRequests: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
113
|
+
imported?: {
|
|
114
|
+
operation?: {
|
|
115
|
+
accountId: string;
|
|
116
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
117
|
+
scopeKey: string;
|
|
118
|
+
version: number;
|
|
119
|
+
} | undefined;
|
|
120
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
121
|
+
} | undefined;
|
|
122
|
+
payload: string;
|
|
123
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
124
|
+
requestKey: string;
|
|
125
|
+
result?: {
|
|
126
|
+
operation: {
|
|
127
|
+
accountId: string;
|
|
128
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
129
|
+
scopeKey: string;
|
|
130
|
+
version: number;
|
|
131
|
+
};
|
|
132
|
+
status: "accepted";
|
|
133
|
+
} | {
|
|
134
|
+
enabled: boolean;
|
|
135
|
+
status: "unchanged";
|
|
136
|
+
} | {
|
|
137
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
138
|
+
retryable: false;
|
|
139
|
+
status: "conflict";
|
|
140
|
+
} | {
|
|
141
|
+
reason: "policy_invalid";
|
|
142
|
+
retryable: false;
|
|
143
|
+
status: "rejected";
|
|
144
|
+
} | {
|
|
145
|
+
reason: "provider_pending";
|
|
146
|
+
retryable: true;
|
|
147
|
+
status: "not_ready";
|
|
148
|
+
} | undefined;
|
|
149
|
+
}, {
|
|
150
|
+
requestKey: import("convex/values").VString<string, "required">;
|
|
151
|
+
payload: import("convex/values").VString<string, "required">;
|
|
152
|
+
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
153
|
+
result: import("convex/values").VUnion<{
|
|
154
|
+
operation: {
|
|
155
|
+
accountId: string;
|
|
156
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
157
|
+
scopeKey: string;
|
|
158
|
+
version: number;
|
|
159
|
+
};
|
|
160
|
+
status: "accepted";
|
|
161
|
+
} | {
|
|
162
|
+
enabled: boolean;
|
|
163
|
+
status: "unchanged";
|
|
164
|
+
} | {
|
|
165
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
166
|
+
retryable: false;
|
|
167
|
+
status: "conflict";
|
|
168
|
+
} | {
|
|
169
|
+
reason: "policy_invalid";
|
|
170
|
+
retryable: false;
|
|
171
|
+
status: "rejected";
|
|
172
|
+
} | {
|
|
173
|
+
reason: "provider_pending";
|
|
174
|
+
retryable: true;
|
|
175
|
+
status: "not_ready";
|
|
176
|
+
} | undefined, [import("convex/values").VObject<{
|
|
177
|
+
operation: {
|
|
178
|
+
accountId: string;
|
|
179
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
180
|
+
scopeKey: string;
|
|
181
|
+
version: number;
|
|
182
|
+
};
|
|
183
|
+
status: "accepted";
|
|
184
|
+
}, {
|
|
185
|
+
status: import("convex/values").VLiteral<"accepted", "required">;
|
|
186
|
+
operation: import("convex/values").VObject<{
|
|
187
|
+
accountId: string;
|
|
188
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
189
|
+
scopeKey: string;
|
|
190
|
+
version: number;
|
|
191
|
+
}, {
|
|
192
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
193
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
194
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations">, "required">;
|
|
195
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
196
|
+
}, "required", "accountId" | "operationId" | "scopeKey" | "version">;
|
|
197
|
+
}, "required", "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "status">, import("convex/values").VObject<{
|
|
198
|
+
enabled: boolean;
|
|
199
|
+
status: "unchanged";
|
|
200
|
+
}, {
|
|
201
|
+
status: import("convex/values").VLiteral<"unchanged", "required">;
|
|
202
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
203
|
+
}, "required", "enabled" | "status">, import("convex/values").VObject<{
|
|
204
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
205
|
+
retryable: false;
|
|
206
|
+
status: "conflict";
|
|
207
|
+
}, {
|
|
208
|
+
status: import("convex/values").VLiteral<"conflict", "required">;
|
|
209
|
+
reason: import("convex/values").VUnion<"identity_changed" | "revision_changed" | "scope_busy", [import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"identity_changed", "required">, import("convex/values").VLiteral<"revision_changed", "required">], "required", never>;
|
|
210
|
+
retryable: import("convex/values").VLiteral<false, "required">;
|
|
211
|
+
}, "required", "reason" | "retryable" | "status">, import("convex/values").VObject<{
|
|
212
|
+
reason: "policy_invalid";
|
|
213
|
+
retryable: false;
|
|
214
|
+
status: "rejected";
|
|
215
|
+
}, {
|
|
216
|
+
status: import("convex/values").VLiteral<"rejected", "required">;
|
|
217
|
+
reason: import("convex/values").VLiteral<"policy_invalid", "required">;
|
|
218
|
+
retryable: import("convex/values").VLiteral<false, "required">;
|
|
219
|
+
}, "required", "reason" | "retryable" | "status">, import("convex/values").VObject<{
|
|
220
|
+
reason: "provider_pending";
|
|
221
|
+
retryable: true;
|
|
222
|
+
status: "not_ready";
|
|
223
|
+
}, {
|
|
224
|
+
status: import("convex/values").VLiteral<"not_ready", "required">;
|
|
225
|
+
reason: import("convex/values").VLiteral<"provider_pending", "required">;
|
|
226
|
+
retryable: import("convex/values").VLiteral<true, "required">;
|
|
227
|
+
}, "required", "reason" | "retryable" | "status">], "optional", "enabled" | "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "reason" | "retryable" | "status">;
|
|
228
|
+
imported: import("convex/values").VObject<{
|
|
229
|
+
operation?: {
|
|
230
|
+
accountId: string;
|
|
231
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
232
|
+
scopeKey: string;
|
|
233
|
+
version: number;
|
|
234
|
+
} | undefined;
|
|
235
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
236
|
+
} | undefined, {
|
|
237
|
+
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
238
|
+
operation: import("convex/values").VObject<{
|
|
239
|
+
accountId: string;
|
|
240
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
241
|
+
scopeKey: string;
|
|
242
|
+
version: number;
|
|
243
|
+
} | undefined, {
|
|
244
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
245
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
246
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations">, "required">;
|
|
247
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
248
|
+
}, "optional", "accountId" | "operationId" | "scopeKey" | "version">;
|
|
249
|
+
}, "optional", "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "preparationId">;
|
|
250
|
+
}, "required", "imported" | "imported.operation" | "imported.operation.accountId" | "imported.operation.operationId" | "imported.operation.scopeKey" | "imported.operation.version" | "imported.preparationId" | "payload" | "preparationId" | "requestKey" | "result" | "result.enabled" | "result.operation" | "result.operation.accountId" | "result.operation.operationId" | "result.operation.scopeKey" | "result.operation.version" | "result.reason" | "result.retryable" | "result.status">, {
|
|
251
|
+
by_request: ["requestKey", "_creationTime"];
|
|
252
|
+
}, {}, {}>;
|
|
3
253
|
operationEvidencePayloads: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4
254
|
commissionExposure?: {
|
|
5
255
|
chargeAmount: number;
|
|
@@ -1292,6 +1542,7 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1292
1542
|
maxCredit: number;
|
|
1293
1543
|
maxDebit: number;
|
|
1294
1544
|
pendingOperations: number;
|
|
1545
|
+
preparationSequence?: number | undefined;
|
|
1295
1546
|
scopeKey: string;
|
|
1296
1547
|
sourceGross?: number | undefined;
|
|
1297
1548
|
sourceId: string;
|
|
@@ -1311,6 +1562,7 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1311
1562
|
maxCredit: import("convex/values").VFloat64<number, "required">;
|
|
1312
1563
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
1313
1564
|
pendingOperations: import("convex/values").VFloat64<number, "required">;
|
|
1565
|
+
preparationSequence: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1314
1566
|
invoiceItemId: import("convex/values").VString<string | undefined, "optional">;
|
|
1315
1567
|
invoiceFunding: import("convex/values").VObject<{
|
|
1316
1568
|
sourceChargeId: string;
|
|
@@ -1322,7 +1574,7 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
1322
1574
|
sourceProcessingFee: import("convex/values").VFloat64<number, "required">;
|
|
1323
1575
|
}, "optional", "sourceChargeId" | "sourceGross" | "sourceProcessingFee">;
|
|
1324
1576
|
status: import("convex/values").VUnion<"collected" | "collecting" | "open" | "released" | "releasing" | "sealed", [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"sealed", "required">, import("convex/values").VLiteral<"collecting", "required">, import("convex/values").VLiteral<"releasing", "required">, import("convex/values").VLiteral<"collected", "required">, import("convex/values").VLiteral<"released", "required">], "required", never>;
|
|
1325
|
-
}, "required", "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status">, {
|
|
1577
|
+
}, "required", "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "preparationSequence" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status">, {
|
|
1326
1578
|
by_key: ["groupKey", "_creationTime"];
|
|
1327
1579
|
}, {}, {}>;
|
|
1328
1580
|
recoveryReservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -2214,6 +2466,256 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
2214
2466
|
export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
2215
2467
|
s: {
|
|
2216
2468
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
2469
|
+
balanceFundingPreparations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2470
|
+
accountId: string;
|
|
2471
|
+
activeOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
|
|
2472
|
+
consentAt: number;
|
|
2473
|
+
consentReference: string;
|
|
2474
|
+
enabled: boolean;
|
|
2475
|
+
operationVersion: number;
|
|
2476
|
+
preparation: {
|
|
2477
|
+
customerAccount: string;
|
|
2478
|
+
paymentMethodId?: string | undefined;
|
|
2479
|
+
previousPaymentMethodId: string | null;
|
|
2480
|
+
previousPaymentMethodTypes: string[] | null;
|
|
2481
|
+
stripeSubscriptionId: string;
|
|
2482
|
+
};
|
|
2483
|
+
preparationOperationId?: import("convex/values").GenericId<"balanceFundingOperations"> | undefined;
|
|
2484
|
+
providerApiVersion: string;
|
|
2485
|
+
scopeKey: string;
|
|
2486
|
+
startsPaused: boolean;
|
|
2487
|
+
verified: boolean;
|
|
2488
|
+
}, {
|
|
2489
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
2490
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
2491
|
+
preparation: import("convex/values").VObject<{
|
|
2492
|
+
customerAccount: string;
|
|
2493
|
+
paymentMethodId?: string | undefined;
|
|
2494
|
+
previousPaymentMethodId: string | null;
|
|
2495
|
+
previousPaymentMethodTypes: string[] | null;
|
|
2496
|
+
stripeSubscriptionId: string;
|
|
2497
|
+
}, {
|
|
2498
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
2499
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
2500
|
+
previousPaymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
2501
|
+
previousPaymentMethodTypes: 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>;
|
|
2502
|
+
paymentMethodId: import("convex/values").VString<string | undefined, "optional">;
|
|
2503
|
+
}, "required", "customerAccount" | "paymentMethodId" | "previousPaymentMethodId" | "previousPaymentMethodTypes" | "stripeSubscriptionId">;
|
|
2504
|
+
consentAt: import("convex/values").VFloat64<number, "required">;
|
|
2505
|
+
consentReference: import("convex/values").VString<string, "required">;
|
|
2506
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
2507
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
2508
|
+
startsPaused: import("convex/values").VBoolean<boolean, "required">;
|
|
2509
|
+
verified: import("convex/values").VBoolean<boolean, "required">;
|
|
2510
|
+
preparationOperationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations"> | undefined, "optional">;
|
|
2511
|
+
operationVersion: import("convex/values").VFloat64<number, "required">;
|
|
2512
|
+
activeOperationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations"> | undefined, "optional">;
|
|
2513
|
+
}, "required", "accountId" | "activeOperationId" | "consentAt" | "consentReference" | "enabled" | "operationVersion" | "preparation" | "preparation.customerAccount" | "preparation.paymentMethodId" | "preparation.previousPaymentMethodId" | "preparation.previousPaymentMethodTypes" | "preparation.stripeSubscriptionId" | "preparationOperationId" | "providerApiVersion" | "scopeKey" | "startsPaused" | "verified">, {
|
|
2514
|
+
by_account_subscription: ["accountId", "preparation.stripeSubscriptionId", "_creationTime"];
|
|
2515
|
+
}, {}, {}>;
|
|
2516
|
+
balanceFundingOperations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2517
|
+
accountId: string;
|
|
2518
|
+
cancelRequested: boolean;
|
|
2519
|
+
enabled: boolean;
|
|
2520
|
+
failureCode?: "invalid_scope" | "policy_invalid" | "unsupported_source" | undefined;
|
|
2521
|
+
kind: "apply" | "prepare";
|
|
2522
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2523
|
+
providerKey: string;
|
|
2524
|
+
providerKeys: {
|
|
2525
|
+
attach?: string | undefined;
|
|
2526
|
+
create?: string | undefined;
|
|
2527
|
+
disable: string;
|
|
2528
|
+
enable: string;
|
|
2529
|
+
};
|
|
2530
|
+
receipt?: {
|
|
2531
|
+
customerAccount: string;
|
|
2532
|
+
paymentMethodId: string | null;
|
|
2533
|
+
paymentMethodTypes: string[] | null;
|
|
2534
|
+
providerApiVersion: string;
|
|
2535
|
+
stripeSubscriptionId: string;
|
|
2536
|
+
} | undefined;
|
|
2537
|
+
scopeKey: string;
|
|
2538
|
+
state: "canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown";
|
|
2539
|
+
version: number;
|
|
2540
|
+
}, {
|
|
2541
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
2542
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
2543
|
+
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2544
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
2545
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
2546
|
+
kind: import("convex/values").VUnion<"apply" | "prepare", [import("convex/values").VLiteral<"prepare", "required">, import("convex/values").VLiteral<"apply", "required">], "required", never>;
|
|
2547
|
+
providerKey: import("convex/values").VString<string, "required">;
|
|
2548
|
+
state: import("convex/values").VUnion<"canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"running", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"succeeded", "required">, import("convex/values").VLiteral<"canceled", "required">, import("convex/values").VLiteral<"failed", "required">], "required", never>;
|
|
2549
|
+
cancelRequested: import("convex/values").VBoolean<boolean, "required">;
|
|
2550
|
+
failureCode: import("convex/values").VUnion<"invalid_scope" | "policy_invalid" | "unsupported_source" | undefined, [import("convex/values").VLiteral<"invalid_scope", "required">, import("convex/values").VLiteral<"unsupported_source", "required">, import("convex/values").VLiteral<"policy_invalid", "required">], "optional", never>;
|
|
2551
|
+
providerKeys: import("convex/values").VObject<{
|
|
2552
|
+
attach?: string | undefined;
|
|
2553
|
+
create?: string | undefined;
|
|
2554
|
+
disable: string;
|
|
2555
|
+
enable: string;
|
|
2556
|
+
}, {
|
|
2557
|
+
enable: import("convex/values").VString<string, "required">;
|
|
2558
|
+
disable: import("convex/values").VString<string, "required">;
|
|
2559
|
+
create: import("convex/values").VString<string | undefined, "optional">;
|
|
2560
|
+
attach: import("convex/values").VString<string | undefined, "optional">;
|
|
2561
|
+
}, "required", "attach" | "create" | "disable" | "enable">;
|
|
2562
|
+
receipt: import("convex/values").VObject<{
|
|
2563
|
+
customerAccount: string;
|
|
2564
|
+
paymentMethodId: string | null;
|
|
2565
|
+
paymentMethodTypes: string[] | null;
|
|
2566
|
+
providerApiVersion: string;
|
|
2567
|
+
stripeSubscriptionId: string;
|
|
2568
|
+
} | undefined, {
|
|
2569
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
2570
|
+
stripeSubscriptionId: import("convex/values").VString<string, "required">;
|
|
2571
|
+
paymentMethodId: import("convex/values").VUnion<string | null, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
2572
|
+
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>;
|
|
2573
|
+
providerApiVersion: import("convex/values").VString<string, "required">;
|
|
2574
|
+
}, "optional", "customerAccount" | "paymentMethodId" | "paymentMethodTypes" | "providerApiVersion" | "stripeSubscriptionId">;
|
|
2575
|
+
}, "required", "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">, {
|
|
2576
|
+
by_preparation_version: ["preparationId", "version", "_creationTime"];
|
|
2577
|
+
}, {}, {}>;
|
|
2578
|
+
balanceFundingRequests: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2579
|
+
imported?: {
|
|
2580
|
+
operation?: {
|
|
2581
|
+
accountId: string;
|
|
2582
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
2583
|
+
scopeKey: string;
|
|
2584
|
+
version: number;
|
|
2585
|
+
} | undefined;
|
|
2586
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2587
|
+
} | undefined;
|
|
2588
|
+
payload: string;
|
|
2589
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2590
|
+
requestKey: string;
|
|
2591
|
+
result?: {
|
|
2592
|
+
operation: {
|
|
2593
|
+
accountId: string;
|
|
2594
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
2595
|
+
scopeKey: string;
|
|
2596
|
+
version: number;
|
|
2597
|
+
};
|
|
2598
|
+
status: "accepted";
|
|
2599
|
+
} | {
|
|
2600
|
+
enabled: boolean;
|
|
2601
|
+
status: "unchanged";
|
|
2602
|
+
} | {
|
|
2603
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2604
|
+
retryable: false;
|
|
2605
|
+
status: "conflict";
|
|
2606
|
+
} | {
|
|
2607
|
+
reason: "policy_invalid";
|
|
2608
|
+
retryable: false;
|
|
2609
|
+
status: "rejected";
|
|
2610
|
+
} | {
|
|
2611
|
+
reason: "provider_pending";
|
|
2612
|
+
retryable: true;
|
|
2613
|
+
status: "not_ready";
|
|
2614
|
+
} | undefined;
|
|
2615
|
+
}, {
|
|
2616
|
+
requestKey: import("convex/values").VString<string, "required">;
|
|
2617
|
+
payload: import("convex/values").VString<string, "required">;
|
|
2618
|
+
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2619
|
+
result: import("convex/values").VUnion<{
|
|
2620
|
+
operation: {
|
|
2621
|
+
accountId: string;
|
|
2622
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
2623
|
+
scopeKey: string;
|
|
2624
|
+
version: number;
|
|
2625
|
+
};
|
|
2626
|
+
status: "accepted";
|
|
2627
|
+
} | {
|
|
2628
|
+
enabled: boolean;
|
|
2629
|
+
status: "unchanged";
|
|
2630
|
+
} | {
|
|
2631
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2632
|
+
retryable: false;
|
|
2633
|
+
status: "conflict";
|
|
2634
|
+
} | {
|
|
2635
|
+
reason: "policy_invalid";
|
|
2636
|
+
retryable: false;
|
|
2637
|
+
status: "rejected";
|
|
2638
|
+
} | {
|
|
2639
|
+
reason: "provider_pending";
|
|
2640
|
+
retryable: true;
|
|
2641
|
+
status: "not_ready";
|
|
2642
|
+
} | undefined, [import("convex/values").VObject<{
|
|
2643
|
+
operation: {
|
|
2644
|
+
accountId: string;
|
|
2645
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
2646
|
+
scopeKey: string;
|
|
2647
|
+
version: number;
|
|
2648
|
+
};
|
|
2649
|
+
status: "accepted";
|
|
2650
|
+
}, {
|
|
2651
|
+
status: import("convex/values").VLiteral<"accepted", "required">;
|
|
2652
|
+
operation: import("convex/values").VObject<{
|
|
2653
|
+
accountId: string;
|
|
2654
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
2655
|
+
scopeKey: string;
|
|
2656
|
+
version: number;
|
|
2657
|
+
}, {
|
|
2658
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
2659
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
2660
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations">, "required">;
|
|
2661
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
2662
|
+
}, "required", "accountId" | "operationId" | "scopeKey" | "version">;
|
|
2663
|
+
}, "required", "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "status">, import("convex/values").VObject<{
|
|
2664
|
+
enabled: boolean;
|
|
2665
|
+
status: "unchanged";
|
|
2666
|
+
}, {
|
|
2667
|
+
status: import("convex/values").VLiteral<"unchanged", "required">;
|
|
2668
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
2669
|
+
}, "required", "enabled" | "status">, import("convex/values").VObject<{
|
|
2670
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
2671
|
+
retryable: false;
|
|
2672
|
+
status: "conflict";
|
|
2673
|
+
}, {
|
|
2674
|
+
status: import("convex/values").VLiteral<"conflict", "required">;
|
|
2675
|
+
reason: import("convex/values").VUnion<"identity_changed" | "revision_changed" | "scope_busy", [import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"identity_changed", "required">, import("convex/values").VLiteral<"revision_changed", "required">], "required", never>;
|
|
2676
|
+
retryable: import("convex/values").VLiteral<false, "required">;
|
|
2677
|
+
}, "required", "reason" | "retryable" | "status">, import("convex/values").VObject<{
|
|
2678
|
+
reason: "policy_invalid";
|
|
2679
|
+
retryable: false;
|
|
2680
|
+
status: "rejected";
|
|
2681
|
+
}, {
|
|
2682
|
+
status: import("convex/values").VLiteral<"rejected", "required">;
|
|
2683
|
+
reason: import("convex/values").VLiteral<"policy_invalid", "required">;
|
|
2684
|
+
retryable: import("convex/values").VLiteral<false, "required">;
|
|
2685
|
+
}, "required", "reason" | "retryable" | "status">, import("convex/values").VObject<{
|
|
2686
|
+
reason: "provider_pending";
|
|
2687
|
+
retryable: true;
|
|
2688
|
+
status: "not_ready";
|
|
2689
|
+
}, {
|
|
2690
|
+
status: import("convex/values").VLiteral<"not_ready", "required">;
|
|
2691
|
+
reason: import("convex/values").VLiteral<"provider_pending", "required">;
|
|
2692
|
+
retryable: import("convex/values").VLiteral<true, "required">;
|
|
2693
|
+
}, "required", "reason" | "retryable" | "status">], "optional", "enabled" | "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "reason" | "retryable" | "status">;
|
|
2694
|
+
imported: import("convex/values").VObject<{
|
|
2695
|
+
operation?: {
|
|
2696
|
+
accountId: string;
|
|
2697
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
2698
|
+
scopeKey: string;
|
|
2699
|
+
version: number;
|
|
2700
|
+
} | undefined;
|
|
2701
|
+
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
2702
|
+
} | undefined, {
|
|
2703
|
+
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
2704
|
+
operation: import("convex/values").VObject<{
|
|
2705
|
+
accountId: string;
|
|
2706
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
2707
|
+
scopeKey: string;
|
|
2708
|
+
version: number;
|
|
2709
|
+
} | undefined, {
|
|
2710
|
+
accountId: import("convex/values").VString<string, "required">;
|
|
2711
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
2712
|
+
operationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingOperations">, "required">;
|
|
2713
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
2714
|
+
}, "optional", "accountId" | "operationId" | "scopeKey" | "version">;
|
|
2715
|
+
}, "optional", "operation" | "operation.accountId" | "operation.operationId" | "operation.scopeKey" | "operation.version" | "preparationId">;
|
|
2716
|
+
}, "required", "imported" | "imported.operation" | "imported.operation.accountId" | "imported.operation.operationId" | "imported.operation.scopeKey" | "imported.operation.version" | "imported.preparationId" | "payload" | "preparationId" | "requestKey" | "result" | "result.enabled" | "result.operation" | "result.operation.accountId" | "result.operation.operationId" | "result.operation.scopeKey" | "result.operation.version" | "result.reason" | "result.retryable" | "result.status">, {
|
|
2717
|
+
by_request: ["requestKey", "_creationTime"];
|
|
2718
|
+
}, {}, {}>;
|
|
2217
2719
|
operationEvidencePayloads: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
2218
2720
|
commissionExposure?: {
|
|
2219
2721
|
chargeAmount: number;
|
|
@@ -3506,6 +4008,7 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
3506
4008
|
maxCredit: number;
|
|
3507
4009
|
maxDebit: number;
|
|
3508
4010
|
pendingOperations: number;
|
|
4011
|
+
preparationSequence?: number | undefined;
|
|
3509
4012
|
scopeKey: string;
|
|
3510
4013
|
sourceGross?: number | undefined;
|
|
3511
4014
|
sourceId: string;
|
|
@@ -3525,6 +4028,7 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
3525
4028
|
maxCredit: import("convex/values").VFloat64<number, "required">;
|
|
3526
4029
|
amount: import("convex/values").VFloat64<number, "required">;
|
|
3527
4030
|
pendingOperations: import("convex/values").VFloat64<number, "required">;
|
|
4031
|
+
preparationSequence: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
3528
4032
|
invoiceItemId: import("convex/values").VString<string | undefined, "optional">;
|
|
3529
4033
|
invoiceFunding: import("convex/values").VObject<{
|
|
3530
4034
|
sourceChargeId: string;
|
|
@@ -3536,7 +4040,7 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
3536
4040
|
sourceProcessingFee: import("convex/values").VFloat64<number, "required">;
|
|
3537
4041
|
}, "optional", "sourceChargeId" | "sourceGross" | "sourceProcessingFee">;
|
|
3538
4042
|
status: import("convex/values").VUnion<"collected" | "collecting" | "open" | "released" | "releasing" | "sealed", [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"sealed", "required">, import("convex/values").VLiteral<"collecting", "required">, import("convex/values").VLiteral<"releasing", "required">, import("convex/values").VLiteral<"collected", "required">, import("convex/values").VLiteral<"released", "required">], "required", never>;
|
|
3539
|
-
}, "required", "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status">, {
|
|
4043
|
+
}, "required", "accountId" | "amount" | "currency" | "groupKey" | "invoiceFunding" | "invoiceFunding.sourceChargeId" | "invoiceFunding.sourceGross" | "invoiceFunding.sourceProcessingFee" | "invoiceItemId" | "maxCredit" | "maxDebit" | "pendingOperations" | "preparationSequence" | "scopeKey" | "sourceGross" | "sourceId" | "sourceKind" | "sourceProcessingFee" | "status">, {
|
|
3540
4044
|
by_key: ["groupKey", "_creationTime"];
|
|
3541
4045
|
}, {}, {}>;
|
|
3542
4046
|
recoveryReservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutLargeAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutLargeAdoptionTestHelpers.ts"],"names":[],"mappings":"AAGA,wBAAsB,KAAK,CAAC,KAAK,SAAM,EAAE,MAAM,SAAK
|
|
1
|
+
{"version":3,"file":"payoutLargeAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutLargeAdoptionTestHelpers.ts"],"names":[],"mappings":"AAGA,wBAAsB,KAAK,CAAC,KAAK,SAAM,EAAE,MAAM,SAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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