@fantastic.dev/better-stripe 0.56.0 → 0.58.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 +18 -0
- package/README.md +5 -1
- package/dist/client/billing/setup-intent-read.d.ts +12 -1
- package/dist/client/billing/setup-intent-read.d.ts.map +1 -1
- package/dist/client/billing/setup-intent-read.js +13 -8
- package/dist/client/billing/setup-intent-read.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 +183 -1
- 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 +183 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/index.d.ts +2 -12
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +3 -20
- package/dist/client/index.js.map +1 -1
- package/dist/client/types/triggers.d.ts +3 -1
- package/dist/client/types/triggers.d.ts.map +1 -1
- package/dist/client/usage/allowanceClient.d.ts +51 -0
- package/dist/client/usage/allowanceClient.d.ts.map +1 -0
- package/dist/client/usage/allowanceClient.js +64 -0
- package/dist/client/usage/allowanceClient.js.map +1 -0
- package/dist/client/usage/allowanceTerms.d.ts +64 -0
- package/dist/client/usage/allowanceTerms.d.ts.map +1 -0
- package/dist/client/usage/allowanceTerms.js +101 -0
- package/dist/client/usage/allowanceTerms.js.map +1 -0
- package/dist/client/usage/client.d.ts +2 -2
- package/dist/client/usage/client.d.ts.map +1 -1
- package/dist/client/usage/client.js +4 -4
- package/dist/client/usage/client.js.map +1 -1
- package/dist/client/usage/creditCapacity.d.ts +5 -0
- package/dist/client/usage/creditCapacity.d.ts.map +1 -0
- package/dist/client/usage/creditCapacity.js +47 -0
- package/dist/client/usage/creditCapacity.js.map +1 -0
- package/dist/client/usage/creditClient.d.ts +104 -0
- package/dist/client/usage/creditClient.d.ts.map +1 -0
- package/dist/client/usage/creditClient.js +111 -0
- package/dist/client/usage/creditClient.js.map +1 -0
- package/dist/client/usage/creditDelivery.d.ts +6 -0
- package/dist/client/usage/creditDelivery.d.ts.map +1 -0
- package/dist/client/usage/creditDelivery.js +71 -0
- package/dist/client/usage/creditDelivery.js.map +1 -0
- package/dist/client/usage/creditInvoice.d.ts +6 -0
- package/dist/client/usage/creditInvoice.d.ts.map +1 -0
- package/dist/client/usage/creditInvoice.js +63 -0
- package/dist/client/usage/creditInvoice.js.map +1 -0
- package/dist/client/usage/creditLifecycle.d.ts +14 -0
- package/dist/client/usage/creditLifecycle.d.ts.map +1 -0
- package/dist/client/usage/creditLifecycle.js +90 -0
- package/dist/client/usage/creditLifecycle.js.map +1 -0
- package/dist/client/usage/creditNative.d.ts +20 -0
- package/dist/client/usage/creditNative.d.ts.map +1 -0
- package/dist/client/usage/creditNative.js +100 -0
- package/dist/client/usage/creditNative.js.map +1 -0
- package/dist/client/usage/creditObservation.d.ts +23 -0
- package/dist/client/usage/creditObservation.d.ts.map +1 -0
- package/dist/client/usage/creditObservation.js +54 -0
- package/dist/client/usage/creditObservation.js.map +1 -0
- package/dist/client/usage/creditProofs.d.ts +50 -0
- package/dist/client/usage/creditProofs.d.ts.map +1 -0
- package/dist/client/usage/creditProofs.js +58 -0
- package/dist/client/usage/creditProofs.js.map +1 -0
- package/dist/client/usage/creditProvider.d.ts +11 -0
- package/dist/client/usage/creditProvider.d.ts.map +1 -0
- package/dist/client/usage/creditProvider.js +195 -0
- package/dist/client/usage/creditProvider.js.map +1 -0
- package/dist/client/usage/creditRead.d.ts +47 -0
- package/dist/client/usage/creditRead.d.ts.map +1 -0
- package/dist/client/usage/creditRead.js +18 -0
- package/dist/client/usage/creditRead.js.map +1 -0
- package/dist/client/usage/creditReconciliation.d.ts +20 -0
- package/dist/client/usage/creditReconciliation.d.ts.map +1 -0
- package/dist/client/usage/creditReconciliation.js +157 -0
- package/dist/client/usage/creditReconciliation.js.map +1 -0
- package/dist/client/usage/creditTerms.d.ts +89 -0
- package/dist/client/usage/creditTerms.d.ts.map +1 -0
- package/dist/client/usage/creditTerms.js +76 -0
- package/dist/client/usage/creditTerms.js.map +1 -0
- package/dist/client/usage/creditTransport.fixtures.d.ts +101 -0
- package/dist/client/usage/creditTransport.fixtures.d.ts.map +1 -0
- package/dist/client/usage/creditTransport.fixtures.js +271 -0
- package/dist/client/usage/creditTransport.fixtures.js.map +1 -0
- package/dist/client/usage/deliveryProvider.d.ts.map +1 -1
- package/dist/client/usage/deliveryProvider.js +2 -0
- package/dist/client/usage/deliveryProvider.js.map +1 -1
- package/dist/client/usage/index.d.ts +4 -0
- package/dist/client/usage/index.d.ts.map +1 -1
- package/dist/client/usage/index.js +1 -0
- package/dist/client/usage/index.js.map +1 -1
- package/dist/client/usage/records.d.ts +2 -0
- package/dist/client/usage/records.d.ts.map +1 -1
- package/dist/client/usage/records.js +22 -0
- package/dist/client/usage/records.js.map +1 -1
- package/dist/client/usage/subscriptionTransport.fixtures.d.ts +1 -1
- package/dist/client/usage/subscriptionTransport.fixtures.d.ts.map +1 -1
- package/dist/client/usage/subscriptionTransport.fixtures.js +4 -1
- package/dist/client/usage/subscriptionTransport.fixtures.js.map +1 -1
- package/dist/client/usage/summary.js +2 -2
- package/dist/client/usage/summary.js.map +1 -1
- package/dist/client/usageExports.d.ts +16 -0
- package/dist/client/usageExports.d.ts.map +1 -0
- package/dist/client/usageExports.js +3 -0
- package/dist/client/usageExports.js.map +1 -0
- package/dist/client/webhooks/subscriptionDeleted.d.ts +5 -0
- package/dist/client/webhooks/subscriptionDeleted.d.ts.map +1 -0
- package/dist/client/webhooks/subscriptionDeleted.js +34 -0
- package/dist/client/webhooks/subscriptionDeleted.js.map +1 -0
- 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 +360 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/accountClosure/mutations.d.ts.map +1 -1
- package/dist/component/accountClosure/mutations.js +10 -0
- package/dist/component/accountClosure/mutations.js.map +1 -1
- package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
- package/dist/component/balanceFunding/mutations.d.ts +16 -16
- package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
- package/dist/component/balanceFunding/queries.d.ts +1 -1
- package/dist/component/balanceFunding/stateHandlers.d.ts +8 -8
- package/dist/component/balanceFunding/workflowValidators.d.ts +16 -16
- package/dist/component/earnings/triggers.d.ts +352 -18
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/payoutRelease/queries.d.ts +2 -2
- package/dist/component/payoutRelease/queries.d.ts.map +1 -1
- package/dist/component/schema.d.ts +183 -1
- package/dist/component/schema.js +8 -0
- package/dist/component/schema.js.map +1 -1
- package/dist/component/usage/mutations.d.ts.map +1 -1
- package/dist/component/usage/mutations.js +7 -0
- package/dist/component/usage/mutations.js.map +1 -1
- package/dist/component/usage/schema.d.ts +15 -1
- package/dist/component/usage/schema.d.ts.map +1 -1
- package/dist/component/usage/schema.js +12 -0
- package/dist/component/usage/schema.js.map +1 -1
- package/dist/component/usageAllowance/helpers.d.ts +78 -0
- package/dist/component/usageAllowance/helpers.d.ts.map +1 -0
- package/dist/component/usageAllowance/helpers.js +99 -0
- package/dist/component/usageAllowance/helpers.js.map +1 -0
- package/dist/component/usageAllowance/mutations.d.ts +37 -0
- package/dist/component/usageAllowance/mutations.d.ts.map +1 -0
- package/dist/component/usageAllowance/mutations.js +99 -0
- package/dist/component/usageAllowance/mutations.js.map +1 -0
- package/dist/component/usageAllowance/queries.d.ts +36 -0
- package/dist/component/usageAllowance/queries.d.ts.map +1 -0
- package/dist/component/usageAllowance/queries.js +113 -0
- package/dist/component/usageAllowance/queries.js.map +1 -0
- package/dist/component/usageAllowance/reservations.d.ts +25 -0
- package/dist/component/usageAllowance/reservations.d.ts.map +1 -0
- package/dist/component/usageAllowance/reservations.js +150 -0
- package/dist/component/usageAllowance/reservations.js.map +1 -0
- package/dist/component/usageAllowance/schema.d.ts +77 -0
- package/dist/component/usageAllowance/schema.d.ts.map +1 -0
- package/dist/component/usageAllowance/schema.js +32 -0
- package/dist/component/usageAllowance/schema.js.map +1 -0
- package/dist/component/usageCredits/helpers.d.ts +205 -0
- package/dist/component/usageCredits/helpers.d.ts.map +1 -0
- package/dist/component/usageCredits/helpers.js +129 -0
- package/dist/component/usageCredits/helpers.js.map +1 -0
- package/dist/component/usageCredits/mutations.d.ts +80 -0
- package/dist/component/usageCredits/mutations.d.ts.map +1 -0
- package/dist/component/usageCredits/mutations.js +344 -0
- package/dist/component/usageCredits/mutations.js.map +1 -0
- package/dist/component/usageCredits/purchase.d.ts +23 -0
- package/dist/component/usageCredits/purchase.d.ts.map +1 -0
- package/dist/component/usageCredits/purchase.js +166 -0
- package/dist/component/usageCredits/purchase.js.map +1 -0
- package/dist/component/usageCredits/queries.d.ts +184 -0
- package/dist/component/usageCredits/queries.d.ts.map +1 -0
- package/dist/component/usageCredits/queries.js +243 -0
- package/dist/component/usageCredits/queries.js.map +1 -0
- package/dist/component/usageCredits/reservations.d.ts +16 -0
- package/dist/component/usageCredits/reservations.d.ts.map +1 -0
- package/dist/component/usageCredits/reservations.js +161 -0
- package/dist/component/usageCredits/reservations.js.map +1 -0
- package/dist/component/usageCredits/schema.d.ts +282 -0
- package/dist/component/usageCredits/schema.d.ts.map +1 -0
- package/dist/component/usageCredits/schema.js +92 -0
- package/dist/component/usageCredits/schema.js.map +1 -0
- package/docs/README.md +4 -0
- package/docs/setup-intent-recovery.md +7 -0
- package/docs/usage-credits.md +255 -0
- package/docs/usage-ledger.md +7 -0
- package/docs/usage-limits.md +217 -0
- package/docs/webhooks.md +15 -1
- package/package.json +3 -1
- package/src/client/billing/setup-intent-read.test.ts +40 -0
- package/src/client/billing/setup-intent-read.ts +23 -9
- package/src/client/index.ts +9 -67
- package/src/client/types/triggers.ts +2 -0
- package/src/client/usage/allowanceClient.test.ts +93 -0
- package/src/client/usage/allowanceClient.ts +134 -0
- package/src/client/usage/allowanceTerms.test.ts +131 -0
- package/src/client/usage/allowanceTerms.ts +172 -0
- package/src/client/usage/client.ts +4 -4
- package/src/client/usage/creditCapacity.test.ts +83 -0
- package/src/client/usage/creditCapacity.ts +76 -0
- package/src/client/usage/creditClient.test.ts +221 -0
- package/src/client/usage/creditClient.ts +246 -0
- package/src/client/usage/creditDelivery.ts +105 -0
- package/src/client/usage/creditInvoice.test.ts +149 -0
- package/src/client/usage/creditInvoice.ts +87 -0
- package/src/client/usage/creditLifecycle.ts +175 -0
- package/src/client/usage/creditNative.ts +148 -0
- package/src/client/usage/creditObservation.test.ts +150 -0
- package/src/client/usage/creditObservation.ts +82 -0
- package/src/client/usage/creditProofs.ts +61 -0
- package/src/client/usage/creditProvider.test.ts +202 -0
- package/src/client/usage/creditProvider.ts +304 -0
- package/src/client/usage/creditRead.ts +32 -0
- package/src/client/usage/creditReconciliation.ts +213 -0
- package/src/client/usage/creditTerms.test.ts +48 -0
- package/src/client/usage/creditTerms.ts +140 -0
- package/src/client/usage/creditTransport.fixtures.ts +282 -0
- package/src/client/usage/deliveryProvider.ts +2 -0
- package/src/client/usage/index.ts +16 -0
- package/src/client/usage/record-composition.test.ts +195 -0
- package/src/client/usage/records.ts +26 -0
- package/src/client/usage/subscriptionTransport.fixtures.ts +6 -0
- package/src/client/usage/summary.test.ts +1 -1
- package/src/client/usage/summary.ts +2 -2
- package/src/client/usageExports.ts +56 -0
- package/src/client/webhook-handlers.test.ts +0 -34
- package/src/client/webhooks/subscription-deleted-dispatch.test.ts +61 -0
- package/src/client/webhooks/subscription-deleted.integration.test.ts +313 -0
- package/src/client/webhooks/subscriptionDeleted.ts +56 -0
- package/src/component/_generated/api.ts +18 -0
- package/src/component/_generated/component.ts +486 -0
- package/src/component/accountClosure/mutations.ts +14 -0
- package/src/component/schema.ts +16 -0
- package/src/component/usage/allowance.test.ts +435 -0
- package/src/component/usage/ledger.test.ts +8 -15
- package/src/component/usage/mutations.ts +22 -0
- package/src/component/usage/schema.ts +14 -0
- package/src/component/usageAllowance/helpers.ts +137 -0
- package/src/component/usageAllowance/mutations.ts +139 -0
- package/src/component/usageAllowance/queries.ts +133 -0
- package/src/component/usageAllowance/reservations.ts +220 -0
- package/src/component/usageAllowance/schema.ts +36 -0
- package/src/component/usageCredits/accounting.test.ts +389 -0
- package/src/component/usageCredits/helpers.ts +160 -0
- package/src/component/usageCredits/mutations.ts +451 -0
- package/src/component/usageCredits/purchase.ts +219 -0
- package/src/component/usageCredits/queries.ts +300 -0
- package/src/component/usageCredits/reservations.ts +214 -0
- package/src/component/usageCredits/schema.ts +106 -0
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
export declare function large(count?: number, amount?: number): Promise<{
|
|
2
2
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
3
|
+
usageAllowancePolicies: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4
|
+
bindingJson: string;
|
|
5
|
+
consumed: string;
|
|
6
|
+
end: number;
|
|
7
|
+
historyCount: number;
|
|
8
|
+
key: string;
|
|
9
|
+
nativeKey: string;
|
|
10
|
+
policyJson: string;
|
|
11
|
+
reserved: string;
|
|
12
|
+
revision: number;
|
|
13
|
+
scopeKey: string;
|
|
14
|
+
start: number;
|
|
15
|
+
}, {
|
|
16
|
+
key: import("convex/values").VString<string, "required">;
|
|
17
|
+
nativeKey: import("convex/values").VString<string, "required">;
|
|
18
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
19
|
+
bindingJson: import("convex/values").VString<string, "required">;
|
|
20
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
21
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
22
|
+
policyJson: import("convex/values").VString<string, "required">;
|
|
23
|
+
revision: import("convex/values").VFloat64<number, "required">;
|
|
24
|
+
consumed: import("convex/values").VString<string, "required">;
|
|
25
|
+
reserved: import("convex/values").VString<string, "required">;
|
|
26
|
+
historyCount: import("convex/values").VFloat64<number, "required">;
|
|
27
|
+
}, "required", "bindingJson" | "consumed" | "end" | "historyCount" | "key" | "nativeKey" | "policyJson" | "reserved" | "revision" | "scopeKey" | "start">, {
|
|
28
|
+
by_key: ["key", "_creationTime"];
|
|
29
|
+
by_native_start: ["nativeKey", "start", "_creationTime"];
|
|
30
|
+
by_scope_start: ["scopeKey", "start", "_creationTime"];
|
|
31
|
+
}, {}, {}>;
|
|
32
|
+
usageAllowanceHistory: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
33
|
+
at: number;
|
|
34
|
+
evidenceJson: string;
|
|
35
|
+
key: string;
|
|
36
|
+
kind: "commit" | "policy" | "release" | "reservation";
|
|
37
|
+
}, {
|
|
38
|
+
key: import("convex/values").VString<string, "required">;
|
|
39
|
+
kind: import("convex/values").VUnion<"commit" | "policy" | "release" | "reservation", [import("convex/values").VLiteral<"policy", "required">, import("convex/values").VLiteral<"reservation", "required">, import("convex/values").VLiteral<"commit", "required">, import("convex/values").VLiteral<"release", "required">], "required", never>;
|
|
40
|
+
evidenceJson: import("convex/values").VString<string, "required">;
|
|
41
|
+
at: import("convex/values").VFloat64<number, "required">;
|
|
42
|
+
}, "required", "at" | "evidenceJson" | "key" | "kind">, {
|
|
43
|
+
by_key: ["key", "_creationTime"];
|
|
44
|
+
}, {}, {}>;
|
|
3
45
|
usageSubscriptionControls: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4
46
|
cancelAtPeriodEnd: boolean;
|
|
5
47
|
firstAttemptAt: number;
|
|
@@ -196,6 +238,7 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
196
238
|
}, "required", "acceptedAt" | "identity" | "occurredAt" | "recordJson" | "reservationId" | "scopeKey" | "subscriptionId" | "subscriptionJson">, {
|
|
197
239
|
by_identity: ["identity", "_creationTime"];
|
|
198
240
|
by_scope_subscription: ["scopeKey", "subscriptionId", "_creationTime"];
|
|
241
|
+
by_scope_subscription_time: ["scopeKey", "subscriptionId", "occurredAt", "_creationTime"];
|
|
199
242
|
by_scope_time: ["scopeKey", "occurredAt", "_creationTime"];
|
|
200
243
|
}, {}, {}>;
|
|
201
244
|
usageOutbox: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -257,12 +300,18 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
257
300
|
by_scope: ["scopeKey", "_creationTime"];
|
|
258
301
|
}, {}, {}>;
|
|
259
302
|
usageReservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
303
|
+
accountKey?: string | undefined;
|
|
304
|
+
accountingKind?: "allowance" | "prepaid" | undefined;
|
|
305
|
+
allocationsJson?: string | undefined;
|
|
260
306
|
eventId?: import("convex/values").GenericId<"usageEvents"> | undefined;
|
|
307
|
+
inputJson?: string | undefined;
|
|
261
308
|
planJson: string;
|
|
309
|
+
releaseReason?: string | undefined;
|
|
262
310
|
scaledQuantity: string;
|
|
263
311
|
scopeKey: string;
|
|
264
312
|
sourceEventId: string;
|
|
265
313
|
state: "committed" | "released" | "reserved";
|
|
314
|
+
subscriptionJson?: string | undefined;
|
|
266
315
|
}, {
|
|
267
316
|
scopeKey: import("convex/values").VString<string, "required">;
|
|
268
317
|
sourceEventId: import("convex/values").VString<string, "required">;
|
|
@@ -270,10 +319,143 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
270
319
|
scaledQuantity: import("convex/values").VString<string, "required">;
|
|
271
320
|
state: import("convex/values").VUnion<"committed" | "released" | "reserved", [import("convex/values").VLiteral<"reserved", "required">, import("convex/values").VLiteral<"committed", "required">, import("convex/values").VLiteral<"released", "required">], "required", never>;
|
|
272
321
|
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents"> | undefined, "optional">;
|
|
273
|
-
|
|
322
|
+
accountingKind: import("convex/values").VUnion<"allowance" | "prepaid" | undefined, [import("convex/values").VLiteral<"prepaid", "required">, import("convex/values").VLiteral<"allowance", "required">], "optional", never>;
|
|
323
|
+
accountKey: import("convex/values").VString<string | undefined, "optional">;
|
|
324
|
+
inputJson: import("convex/values").VString<string | undefined, "optional">;
|
|
325
|
+
subscriptionJson: import("convex/values").VString<string | undefined, "optional">;
|
|
326
|
+
allocationsJson: import("convex/values").VString<string | undefined, "optional">;
|
|
327
|
+
releaseReason: import("convex/values").VString<string | undefined, "optional">;
|
|
328
|
+
}, "required", "accountKey" | "accountingKind" | "allocationsJson" | "eventId" | "inputJson" | "planJson" | "releaseReason" | "scaledQuantity" | "scopeKey" | "sourceEventId" | "state" | "subscriptionJson">, {
|
|
329
|
+
by_account_state: ["accountKey", "state", "_creationTime"];
|
|
274
330
|
by_scope_source: ["scopeKey", "sourceEventId", "_creationTime"];
|
|
275
331
|
by_scope_state: ["scopeKey", "state", "_creationTime"];
|
|
276
332
|
}, {}, {}>;
|
|
333
|
+
usageCreditAccounts: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
334
|
+
bindingJson: string;
|
|
335
|
+
closed: boolean;
|
|
336
|
+
customerAccount: string;
|
|
337
|
+
frozenReason?: string | undefined;
|
|
338
|
+
historyCount: number;
|
|
339
|
+
key: string;
|
|
340
|
+
purchaseCount: number;
|
|
341
|
+
scopeKey: string;
|
|
342
|
+
stripeAccountId: string;
|
|
343
|
+
}, {
|
|
344
|
+
key: import("convex/values").VString<string, "required">;
|
|
345
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
346
|
+
bindingJson: import("convex/values").VString<string, "required">;
|
|
347
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
348
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
349
|
+
closed: import("convex/values").VBoolean<boolean, "required">;
|
|
350
|
+
purchaseCount: import("convex/values").VFloat64<number, "required">;
|
|
351
|
+
historyCount: import("convex/values").VFloat64<number, "required">;
|
|
352
|
+
frozenReason: import("convex/values").VString<string | undefined, "optional">;
|
|
353
|
+
}, "required", "bindingJson" | "closed" | "customerAccount" | "frozenReason" | "historyCount" | "key" | "purchaseCount" | "scopeKey" | "stripeAccountId">, {
|
|
354
|
+
by_key: ["key", "_creationTime"];
|
|
355
|
+
by_payer_closed: ["customerAccount", "closed", "_creationTime"];
|
|
356
|
+
by_realm_closed: ["stripeAccountId", "closed", "_creationTime"];
|
|
357
|
+
}, {}, {}>;
|
|
358
|
+
usageCreditPurchases: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
359
|
+
accountKey: string;
|
|
360
|
+
capacityReserved: boolean;
|
|
361
|
+
creditGrantId?: string | undefined;
|
|
362
|
+
firstAttemptAt: number;
|
|
363
|
+
grantFirstAttemptAt?: number | undefined;
|
|
364
|
+
key: string;
|
|
365
|
+
nativeCustomerKey: string;
|
|
366
|
+
paymentAttemptedAt?: number | undefined;
|
|
367
|
+
paymentIntentId?: string | undefined;
|
|
368
|
+
paymentKey?: string | undefined;
|
|
369
|
+
paymentProofJson?: string | undefined;
|
|
370
|
+
refundedAmount?: number | undefined;
|
|
371
|
+
state: "canceled" | "frozen" | "pending" | "ready";
|
|
372
|
+
termsJson: string;
|
|
373
|
+
}, {
|
|
374
|
+
key: import("convex/values").VString<string, "required">;
|
|
375
|
+
accountKey: import("convex/values").VString<string, "required">;
|
|
376
|
+
nativeCustomerKey: import("convex/values").VString<string, "required">;
|
|
377
|
+
capacityReserved: import("convex/values").VBoolean<boolean, "required">;
|
|
378
|
+
paymentAttemptedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
379
|
+
termsJson: import("convex/values").VString<string, "required">;
|
|
380
|
+
firstAttemptAt: import("convex/values").VFloat64<number, "required">;
|
|
381
|
+
state: import("convex/values").VUnion<"canceled" | "frozen" | "pending" | "ready", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"ready", "required">, import("convex/values").VLiteral<"frozen", "required">, import("convex/values").VLiteral<"canceled", "required">], "required", never>;
|
|
382
|
+
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
383
|
+
paymentKey: import("convex/values").VString<string | undefined, "optional">;
|
|
384
|
+
paymentProofJson: import("convex/values").VString<string | undefined, "optional">;
|
|
385
|
+
refundedAmount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
386
|
+
grantFirstAttemptAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
387
|
+
creditGrantId: import("convex/values").VString<string | undefined, "optional">;
|
|
388
|
+
}, "required", "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "refundedAmount" | "state" | "termsJson">, {
|
|
389
|
+
by_account: ["accountKey", "_creationTime"];
|
|
390
|
+
by_customer_capacity: ["nativeCustomerKey", "capacityReserved", "_creationTime"];
|
|
391
|
+
by_key: ["key", "_creationTime"];
|
|
392
|
+
by_payment: ["paymentKey", "_creationTime"];
|
|
393
|
+
}, {}, {}>;
|
|
394
|
+
usageCreditGrants: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
395
|
+
accountKey: string;
|
|
396
|
+
available: string;
|
|
397
|
+
chargeId: string;
|
|
398
|
+
consumed: string;
|
|
399
|
+
creditGrantId: string;
|
|
400
|
+
effectiveAt: number;
|
|
401
|
+
expiresAt: number | null;
|
|
402
|
+
frozen: boolean;
|
|
403
|
+
nativeCreated: number;
|
|
404
|
+
nativeCustomerKey: string;
|
|
405
|
+
nativeExpired?: boolean | undefined;
|
|
406
|
+
nativeObservationJson?: string | undefined;
|
|
407
|
+
nativeUnused: boolean;
|
|
408
|
+
observedAt?: number | undefined;
|
|
409
|
+
paymentIntentId: string;
|
|
410
|
+
proofJson: string;
|
|
411
|
+
purchaseKey: string;
|
|
412
|
+
reserved: string;
|
|
413
|
+
}, {
|
|
414
|
+
purchaseKey: import("convex/values").VString<string, "required">;
|
|
415
|
+
accountKey: import("convex/values").VString<string, "required">;
|
|
416
|
+
creditGrantId: import("convex/values").VString<string, "required">;
|
|
417
|
+
nativeCustomerKey: import("convex/values").VString<string, "required">;
|
|
418
|
+
nativeUnused: import("convex/values").VBoolean<boolean, "required">;
|
|
419
|
+
nativeCreated: import("convex/values").VFloat64<number, "required">;
|
|
420
|
+
paymentIntentId: import("convex/values").VString<string, "required">;
|
|
421
|
+
chargeId: import("convex/values").VString<string, "required">;
|
|
422
|
+
proofJson: import("convex/values").VString<string, "required">;
|
|
423
|
+
available: import("convex/values").VString<string, "required">;
|
|
424
|
+
reserved: import("convex/values").VString<string, "required">;
|
|
425
|
+
consumed: import("convex/values").VString<string, "required">;
|
|
426
|
+
effectiveAt: import("convex/values").VFloat64<number, "required">;
|
|
427
|
+
expiresAt: import("convex/values").VUnion<number | null, [import("convex/values").VFloat64<number, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
428
|
+
frozen: import("convex/values").VBoolean<boolean, "required">;
|
|
429
|
+
nativeExpired: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
430
|
+
nativeObservationJson: import("convex/values").VString<string | undefined, "optional">;
|
|
431
|
+
observedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
432
|
+
}, "required", "accountKey" | "available" | "chargeId" | "consumed" | "creditGrantId" | "effectiveAt" | "expiresAt" | "frozen" | "nativeCreated" | "nativeCustomerKey" | "nativeExpired" | "nativeObservationJson" | "nativeUnused" | "observedAt" | "paymentIntentId" | "proofJson" | "purchaseKey" | "reserved">, {
|
|
433
|
+
by_account: ["accountKey", "_creationTime"];
|
|
434
|
+
by_customer_unused: ["nativeCustomerKey", "nativeUnused", "_creationTime"];
|
|
435
|
+
by_native: ["creditGrantId", "_creationTime"];
|
|
436
|
+
by_purchase: ["purchaseKey", "_creationTime"];
|
|
437
|
+
}, {}, {}>;
|
|
438
|
+
usageCreditHistory: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
439
|
+
accountKey: string;
|
|
440
|
+
at: number;
|
|
441
|
+
evidenceJson: string;
|
|
442
|
+
fingerprint: string;
|
|
443
|
+
kind: "closure" | "commit" | "grant" | "observation" | "payment" | "purchase" | "recovery" | "release" | "reservation";
|
|
444
|
+
purchaseKey?: string | undefined;
|
|
445
|
+
sourceKey: string;
|
|
446
|
+
}, {
|
|
447
|
+
accountKey: import("convex/values").VString<string, "required">;
|
|
448
|
+
purchaseKey: import("convex/values").VString<string | undefined, "optional">;
|
|
449
|
+
kind: import("convex/values").VUnion<"closure" | "commit" | "grant" | "observation" | "payment" | "purchase" | "recovery" | "release" | "reservation", [import("convex/values").VLiteral<"purchase", "required">, import("convex/values").VLiteral<"payment", "required">, import("convex/values").VLiteral<"grant", "required">, import("convex/values").VLiteral<"reservation", "required">, import("convex/values").VLiteral<"commit", "required">, import("convex/values").VLiteral<"release", "required">, import("convex/values").VLiteral<"observation", "required">, import("convex/values").VLiteral<"recovery", "required">, import("convex/values").VLiteral<"closure", "required">], "required", never>;
|
|
450
|
+
sourceKey: import("convex/values").VString<string, "required">;
|
|
451
|
+
fingerprint: import("convex/values").VString<string, "required">;
|
|
452
|
+
evidenceJson: import("convex/values").VString<string, "required">;
|
|
453
|
+
at: import("convex/values").VFloat64<number, "required">;
|
|
454
|
+
}, "required", "accountKey" | "at" | "evidenceJson" | "fingerprint" | "kind" | "purchaseKey" | "sourceKey">, {
|
|
455
|
+
by_account: ["accountKey", "_creationTime"];
|
|
456
|
+
by_fingerprint: ["fingerprint", "_creationTime"];
|
|
457
|
+
by_purchase: ["accountKey", "purchaseKey", "_creationTime"];
|
|
458
|
+
}, {}, {}>;
|
|
277
459
|
refundSyncClaims: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
278
460
|
acceptedAt?: number | undefined;
|
|
279
461
|
acceptedContext?: string | undefined;
|
|
@@ -3682,6 +3864,48 @@ export declare function large(count?: number, amount?: number): Promise<{
|
|
|
3682
3864
|
export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
3683
3865
|
s: {
|
|
3684
3866
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
3867
|
+
usageAllowancePolicies: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3868
|
+
bindingJson: string;
|
|
3869
|
+
consumed: string;
|
|
3870
|
+
end: number;
|
|
3871
|
+
historyCount: number;
|
|
3872
|
+
key: string;
|
|
3873
|
+
nativeKey: string;
|
|
3874
|
+
policyJson: string;
|
|
3875
|
+
reserved: string;
|
|
3876
|
+
revision: number;
|
|
3877
|
+
scopeKey: string;
|
|
3878
|
+
start: number;
|
|
3879
|
+
}, {
|
|
3880
|
+
key: import("convex/values").VString<string, "required">;
|
|
3881
|
+
nativeKey: import("convex/values").VString<string, "required">;
|
|
3882
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
3883
|
+
bindingJson: import("convex/values").VString<string, "required">;
|
|
3884
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
3885
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
3886
|
+
policyJson: import("convex/values").VString<string, "required">;
|
|
3887
|
+
revision: import("convex/values").VFloat64<number, "required">;
|
|
3888
|
+
consumed: import("convex/values").VString<string, "required">;
|
|
3889
|
+
reserved: import("convex/values").VString<string, "required">;
|
|
3890
|
+
historyCount: import("convex/values").VFloat64<number, "required">;
|
|
3891
|
+
}, "required", "bindingJson" | "consumed" | "end" | "historyCount" | "key" | "nativeKey" | "policyJson" | "reserved" | "revision" | "scopeKey" | "start">, {
|
|
3892
|
+
by_key: ["key", "_creationTime"];
|
|
3893
|
+
by_native_start: ["nativeKey", "start", "_creationTime"];
|
|
3894
|
+
by_scope_start: ["scopeKey", "start", "_creationTime"];
|
|
3895
|
+
}, {}, {}>;
|
|
3896
|
+
usageAllowanceHistory: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3897
|
+
at: number;
|
|
3898
|
+
evidenceJson: string;
|
|
3899
|
+
key: string;
|
|
3900
|
+
kind: "commit" | "policy" | "release" | "reservation";
|
|
3901
|
+
}, {
|
|
3902
|
+
key: import("convex/values").VString<string, "required">;
|
|
3903
|
+
kind: import("convex/values").VUnion<"commit" | "policy" | "release" | "reservation", [import("convex/values").VLiteral<"policy", "required">, import("convex/values").VLiteral<"reservation", "required">, import("convex/values").VLiteral<"commit", "required">, import("convex/values").VLiteral<"release", "required">], "required", never>;
|
|
3904
|
+
evidenceJson: import("convex/values").VString<string, "required">;
|
|
3905
|
+
at: import("convex/values").VFloat64<number, "required">;
|
|
3906
|
+
}, "required", "at" | "evidenceJson" | "key" | "kind">, {
|
|
3907
|
+
by_key: ["key", "_creationTime"];
|
|
3908
|
+
}, {}, {}>;
|
|
3685
3909
|
usageSubscriptionControls: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3686
3910
|
cancelAtPeriodEnd: boolean;
|
|
3687
3911
|
firstAttemptAt: number;
|
|
@@ -3878,6 +4102,7 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
3878
4102
|
}, "required", "acceptedAt" | "identity" | "occurredAt" | "recordJson" | "reservationId" | "scopeKey" | "subscriptionId" | "subscriptionJson">, {
|
|
3879
4103
|
by_identity: ["identity", "_creationTime"];
|
|
3880
4104
|
by_scope_subscription: ["scopeKey", "subscriptionId", "_creationTime"];
|
|
4105
|
+
by_scope_subscription_time: ["scopeKey", "subscriptionId", "occurredAt", "_creationTime"];
|
|
3881
4106
|
by_scope_time: ["scopeKey", "occurredAt", "_creationTime"];
|
|
3882
4107
|
}, {}, {}>;
|
|
3883
4108
|
usageOutbox: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -3939,12 +4164,18 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
3939
4164
|
by_scope: ["scopeKey", "_creationTime"];
|
|
3940
4165
|
}, {}, {}>;
|
|
3941
4166
|
usageReservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4167
|
+
accountKey?: string | undefined;
|
|
4168
|
+
accountingKind?: "allowance" | "prepaid" | undefined;
|
|
4169
|
+
allocationsJson?: string | undefined;
|
|
3942
4170
|
eventId?: import("convex/values").GenericId<"usageEvents"> | undefined;
|
|
4171
|
+
inputJson?: string | undefined;
|
|
3943
4172
|
planJson: string;
|
|
4173
|
+
releaseReason?: string | undefined;
|
|
3944
4174
|
scaledQuantity: string;
|
|
3945
4175
|
scopeKey: string;
|
|
3946
4176
|
sourceEventId: string;
|
|
3947
4177
|
state: "committed" | "released" | "reserved";
|
|
4178
|
+
subscriptionJson?: string | undefined;
|
|
3948
4179
|
}, {
|
|
3949
4180
|
scopeKey: import("convex/values").VString<string, "required">;
|
|
3950
4181
|
sourceEventId: import("convex/values").VString<string, "required">;
|
|
@@ -3952,10 +4183,143 @@ export declare function withHistory(count?: number, amount?: number): Promise<{
|
|
|
3952
4183
|
scaledQuantity: import("convex/values").VString<string, "required">;
|
|
3953
4184
|
state: import("convex/values").VUnion<"committed" | "released" | "reserved", [import("convex/values").VLiteral<"reserved", "required">, import("convex/values").VLiteral<"committed", "required">, import("convex/values").VLiteral<"released", "required">], "required", never>;
|
|
3954
4185
|
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents"> | undefined, "optional">;
|
|
3955
|
-
|
|
4186
|
+
accountingKind: import("convex/values").VUnion<"allowance" | "prepaid" | undefined, [import("convex/values").VLiteral<"prepaid", "required">, import("convex/values").VLiteral<"allowance", "required">], "optional", never>;
|
|
4187
|
+
accountKey: import("convex/values").VString<string | undefined, "optional">;
|
|
4188
|
+
inputJson: import("convex/values").VString<string | undefined, "optional">;
|
|
4189
|
+
subscriptionJson: import("convex/values").VString<string | undefined, "optional">;
|
|
4190
|
+
allocationsJson: import("convex/values").VString<string | undefined, "optional">;
|
|
4191
|
+
releaseReason: import("convex/values").VString<string | undefined, "optional">;
|
|
4192
|
+
}, "required", "accountKey" | "accountingKind" | "allocationsJson" | "eventId" | "inputJson" | "planJson" | "releaseReason" | "scaledQuantity" | "scopeKey" | "sourceEventId" | "state" | "subscriptionJson">, {
|
|
4193
|
+
by_account_state: ["accountKey", "state", "_creationTime"];
|
|
3956
4194
|
by_scope_source: ["scopeKey", "sourceEventId", "_creationTime"];
|
|
3957
4195
|
by_scope_state: ["scopeKey", "state", "_creationTime"];
|
|
3958
4196
|
}, {}, {}>;
|
|
4197
|
+
usageCreditAccounts: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4198
|
+
bindingJson: string;
|
|
4199
|
+
closed: boolean;
|
|
4200
|
+
customerAccount: string;
|
|
4201
|
+
frozenReason?: string | undefined;
|
|
4202
|
+
historyCount: number;
|
|
4203
|
+
key: string;
|
|
4204
|
+
purchaseCount: number;
|
|
4205
|
+
scopeKey: string;
|
|
4206
|
+
stripeAccountId: string;
|
|
4207
|
+
}, {
|
|
4208
|
+
key: import("convex/values").VString<string, "required">;
|
|
4209
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
4210
|
+
bindingJson: import("convex/values").VString<string, "required">;
|
|
4211
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
4212
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
4213
|
+
closed: import("convex/values").VBoolean<boolean, "required">;
|
|
4214
|
+
purchaseCount: import("convex/values").VFloat64<number, "required">;
|
|
4215
|
+
historyCount: import("convex/values").VFloat64<number, "required">;
|
|
4216
|
+
frozenReason: import("convex/values").VString<string | undefined, "optional">;
|
|
4217
|
+
}, "required", "bindingJson" | "closed" | "customerAccount" | "frozenReason" | "historyCount" | "key" | "purchaseCount" | "scopeKey" | "stripeAccountId">, {
|
|
4218
|
+
by_key: ["key", "_creationTime"];
|
|
4219
|
+
by_payer_closed: ["customerAccount", "closed", "_creationTime"];
|
|
4220
|
+
by_realm_closed: ["stripeAccountId", "closed", "_creationTime"];
|
|
4221
|
+
}, {}, {}>;
|
|
4222
|
+
usageCreditPurchases: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4223
|
+
accountKey: string;
|
|
4224
|
+
capacityReserved: boolean;
|
|
4225
|
+
creditGrantId?: string | undefined;
|
|
4226
|
+
firstAttemptAt: number;
|
|
4227
|
+
grantFirstAttemptAt?: number | undefined;
|
|
4228
|
+
key: string;
|
|
4229
|
+
nativeCustomerKey: string;
|
|
4230
|
+
paymentAttemptedAt?: number | undefined;
|
|
4231
|
+
paymentIntentId?: string | undefined;
|
|
4232
|
+
paymentKey?: string | undefined;
|
|
4233
|
+
paymentProofJson?: string | undefined;
|
|
4234
|
+
refundedAmount?: number | undefined;
|
|
4235
|
+
state: "canceled" | "frozen" | "pending" | "ready";
|
|
4236
|
+
termsJson: string;
|
|
4237
|
+
}, {
|
|
4238
|
+
key: import("convex/values").VString<string, "required">;
|
|
4239
|
+
accountKey: import("convex/values").VString<string, "required">;
|
|
4240
|
+
nativeCustomerKey: import("convex/values").VString<string, "required">;
|
|
4241
|
+
capacityReserved: import("convex/values").VBoolean<boolean, "required">;
|
|
4242
|
+
paymentAttemptedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4243
|
+
termsJson: import("convex/values").VString<string, "required">;
|
|
4244
|
+
firstAttemptAt: import("convex/values").VFloat64<number, "required">;
|
|
4245
|
+
state: import("convex/values").VUnion<"canceled" | "frozen" | "pending" | "ready", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"ready", "required">, import("convex/values").VLiteral<"frozen", "required">, import("convex/values").VLiteral<"canceled", "required">], "required", never>;
|
|
4246
|
+
paymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
4247
|
+
paymentKey: import("convex/values").VString<string | undefined, "optional">;
|
|
4248
|
+
paymentProofJson: import("convex/values").VString<string | undefined, "optional">;
|
|
4249
|
+
refundedAmount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4250
|
+
grantFirstAttemptAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4251
|
+
creditGrantId: import("convex/values").VString<string | undefined, "optional">;
|
|
4252
|
+
}, "required", "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "refundedAmount" | "state" | "termsJson">, {
|
|
4253
|
+
by_account: ["accountKey", "_creationTime"];
|
|
4254
|
+
by_customer_capacity: ["nativeCustomerKey", "capacityReserved", "_creationTime"];
|
|
4255
|
+
by_key: ["key", "_creationTime"];
|
|
4256
|
+
by_payment: ["paymentKey", "_creationTime"];
|
|
4257
|
+
}, {}, {}>;
|
|
4258
|
+
usageCreditGrants: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4259
|
+
accountKey: string;
|
|
4260
|
+
available: string;
|
|
4261
|
+
chargeId: string;
|
|
4262
|
+
consumed: string;
|
|
4263
|
+
creditGrantId: string;
|
|
4264
|
+
effectiveAt: number;
|
|
4265
|
+
expiresAt: number | null;
|
|
4266
|
+
frozen: boolean;
|
|
4267
|
+
nativeCreated: number;
|
|
4268
|
+
nativeCustomerKey: string;
|
|
4269
|
+
nativeExpired?: boolean | undefined;
|
|
4270
|
+
nativeObservationJson?: string | undefined;
|
|
4271
|
+
nativeUnused: boolean;
|
|
4272
|
+
observedAt?: number | undefined;
|
|
4273
|
+
paymentIntentId: string;
|
|
4274
|
+
proofJson: string;
|
|
4275
|
+
purchaseKey: string;
|
|
4276
|
+
reserved: string;
|
|
4277
|
+
}, {
|
|
4278
|
+
purchaseKey: import("convex/values").VString<string, "required">;
|
|
4279
|
+
accountKey: import("convex/values").VString<string, "required">;
|
|
4280
|
+
creditGrantId: import("convex/values").VString<string, "required">;
|
|
4281
|
+
nativeCustomerKey: import("convex/values").VString<string, "required">;
|
|
4282
|
+
nativeUnused: import("convex/values").VBoolean<boolean, "required">;
|
|
4283
|
+
nativeCreated: import("convex/values").VFloat64<number, "required">;
|
|
4284
|
+
paymentIntentId: import("convex/values").VString<string, "required">;
|
|
4285
|
+
chargeId: import("convex/values").VString<string, "required">;
|
|
4286
|
+
proofJson: import("convex/values").VString<string, "required">;
|
|
4287
|
+
available: import("convex/values").VString<string, "required">;
|
|
4288
|
+
reserved: import("convex/values").VString<string, "required">;
|
|
4289
|
+
consumed: import("convex/values").VString<string, "required">;
|
|
4290
|
+
effectiveAt: import("convex/values").VFloat64<number, "required">;
|
|
4291
|
+
expiresAt: import("convex/values").VUnion<number | null, [import("convex/values").VFloat64<number, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
4292
|
+
frozen: import("convex/values").VBoolean<boolean, "required">;
|
|
4293
|
+
nativeExpired: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
4294
|
+
nativeObservationJson: import("convex/values").VString<string | undefined, "optional">;
|
|
4295
|
+
observedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
4296
|
+
}, "required", "accountKey" | "available" | "chargeId" | "consumed" | "creditGrantId" | "effectiveAt" | "expiresAt" | "frozen" | "nativeCreated" | "nativeCustomerKey" | "nativeExpired" | "nativeObservationJson" | "nativeUnused" | "observedAt" | "paymentIntentId" | "proofJson" | "purchaseKey" | "reserved">, {
|
|
4297
|
+
by_account: ["accountKey", "_creationTime"];
|
|
4298
|
+
by_customer_unused: ["nativeCustomerKey", "nativeUnused", "_creationTime"];
|
|
4299
|
+
by_native: ["creditGrantId", "_creationTime"];
|
|
4300
|
+
by_purchase: ["purchaseKey", "_creationTime"];
|
|
4301
|
+
}, {}, {}>;
|
|
4302
|
+
usageCreditHistory: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4303
|
+
accountKey: string;
|
|
4304
|
+
at: number;
|
|
4305
|
+
evidenceJson: string;
|
|
4306
|
+
fingerprint: string;
|
|
4307
|
+
kind: "closure" | "commit" | "grant" | "observation" | "payment" | "purchase" | "recovery" | "release" | "reservation";
|
|
4308
|
+
purchaseKey?: string | undefined;
|
|
4309
|
+
sourceKey: string;
|
|
4310
|
+
}, {
|
|
4311
|
+
accountKey: import("convex/values").VString<string, "required">;
|
|
4312
|
+
purchaseKey: import("convex/values").VString<string | undefined, "optional">;
|
|
4313
|
+
kind: import("convex/values").VUnion<"closure" | "commit" | "grant" | "observation" | "payment" | "purchase" | "recovery" | "release" | "reservation", [import("convex/values").VLiteral<"purchase", "required">, import("convex/values").VLiteral<"payment", "required">, import("convex/values").VLiteral<"grant", "required">, import("convex/values").VLiteral<"reservation", "required">, import("convex/values").VLiteral<"commit", "required">, import("convex/values").VLiteral<"release", "required">, import("convex/values").VLiteral<"observation", "required">, import("convex/values").VLiteral<"recovery", "required">, import("convex/values").VLiteral<"closure", "required">], "required", never>;
|
|
4314
|
+
sourceKey: import("convex/values").VString<string, "required">;
|
|
4315
|
+
fingerprint: import("convex/values").VString<string, "required">;
|
|
4316
|
+
evidenceJson: import("convex/values").VString<string, "required">;
|
|
4317
|
+
at: import("convex/values").VFloat64<number, "required">;
|
|
4318
|
+
}, "required", "accountKey" | "at" | "evidenceJson" | "fingerprint" | "kind" | "purchaseKey" | "sourceKey">, {
|
|
4319
|
+
by_account: ["accountKey", "_creationTime"];
|
|
4320
|
+
by_fingerprint: ["fingerprint", "_creationTime"];
|
|
4321
|
+
by_purchase: ["accountKey", "purchaseKey", "_creationTime"];
|
|
4322
|
+
}, {}, {}>;
|
|
3959
4323
|
refundSyncClaims: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3960
4324
|
acceptedAt?: number | undefined;
|
|
3961
4325
|
acceptedContext?: string | undefined;
|
|
@@ -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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