@fantastic.dev/better-stripe 0.60.0 → 0.61.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 +12 -0
- package/README.md +5 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +26 -6
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +13 -3
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +26 -6
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +13 -3
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/usage/creditCapacity.d.ts.map +1 -1
- package/dist/client/usage/creditCapacity.js +7 -1
- package/dist/client/usage/creditCapacity.js.map +1 -1
- package/dist/client/usage/creditClient.d.ts +3 -0
- package/dist/client/usage/creditClient.d.ts.map +1 -1
- package/dist/client/usage/creditDelivery.d.ts.map +1 -1
- package/dist/client/usage/creditDelivery.js +4 -1
- package/dist/client/usage/creditDelivery.js.map +1 -1
- package/dist/client/usage/creditLifecycle.d.ts.map +1 -1
- package/dist/client/usage/creditLifecycle.js +2 -1
- package/dist/client/usage/creditLifecycle.js.map +1 -1
- package/dist/client/usage/creditNative.d.ts +3 -0
- package/dist/client/usage/creditNative.d.ts.map +1 -1
- package/dist/client/usage/creditNative.js +3 -0
- package/dist/client/usage/creditNative.js.map +1 -1
- package/dist/client/usage/creditProvider.d.ts.map +1 -1
- package/dist/client/usage/creditProvider.js +2 -1
- package/dist/client/usage/creditProvider.js.map +1 -1
- package/dist/client/usage/creditRead.d.ts +1 -0
- package/dist/client/usage/creditRead.d.ts.map +1 -1
- package/dist/client/usage/creditReconciliation.d.ts.map +1 -1
- package/dist/client/usage/creditReconciliation.js +11 -3
- package/dist/client/usage/creditReconciliation.js.map +1 -1
- package/dist/client/usage/creditSettlement.fixtures.d.ts +1 -0
- package/dist/client/usage/creditSettlement.fixtures.d.ts.map +1 -1
- package/dist/client/usage/creditTransport.fixtures.d.ts +1 -0
- package/dist/client/usage/creditTransport.fixtures.d.ts.map +1 -1
- package/dist/client/usage/creditTransport.fixtures.js +2 -1
- package/dist/client/usage/creditTransport.fixtures.js.map +1 -1
- package/dist/client/usage/index.d.ts +2 -0
- package/dist/client/usage/index.d.ts.map +1 -1
- package/dist/client/usage/subscriptionCancellation.d.ts.map +1 -1
- package/dist/client/usage/subscriptionCancellation.js +3 -2
- package/dist/client/usage/subscriptionCancellation.js.map +1 -1
- package/dist/client/usage/subscriptionCheckout.d.ts.map +1 -1
- package/dist/client/usage/subscriptionCheckout.js +3 -2
- package/dist/client/usage/subscriptionCheckout.js.map +1 -1
- package/dist/client/usage/subscriptionLifecycle.d.ts +1 -0
- package/dist/client/usage/subscriptionLifecycle.d.ts.map +1 -1
- package/dist/client/usage/subscriptionLifecycle.js +3 -2
- package/dist/client/usage/subscriptionLifecycle.js.map +1 -1
- package/dist/client/usage/subscriptionProvider.d.ts +2 -0
- package/dist/client/usage/subscriptionProvider.d.ts.map +1 -1
- package/dist/client/usage/subscriptionProvider.js +9 -2
- package/dist/client/usage/subscriptionProvider.js.map +1 -1
- package/dist/component/_generated/component.d.ts +21 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/earnings/triggers.d.ts +16 -6
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/schema.d.ts +13 -3
- package/dist/component/usage/allowance.fixtures.d.ts +4212 -0
- package/dist/component/usage/allowance.fixtures.d.ts.map +1 -0
- package/dist/component/usage/allowance.fixtures.js +67 -0
- package/dist/component/usage/allowance.fixtures.js.map +1 -0
- package/dist/component/usageCredits/accounting.fixtures.d.ts +4235 -0
- package/dist/component/usageCredits/accounting.fixtures.d.ts.map +1 -0
- package/dist/component/usageCredits/accounting.fixtures.js +89 -0
- package/dist/component/usageCredits/accounting.fixtures.js.map +1 -0
- package/dist/component/usageCredits/helpers.d.ts +7 -0
- package/dist/component/usageCredits/helpers.d.ts.map +1 -1
- package/dist/component/usageCredits/helpers.js +5 -0
- package/dist/component/usageCredits/helpers.js.map +1 -1
- package/dist/component/usageCredits/mutations.d.ts +6 -0
- package/dist/component/usageCredits/mutations.d.ts.map +1 -1
- package/dist/component/usageCredits/mutations.js +70 -7
- package/dist/component/usageCredits/mutations.js.map +1 -1
- package/dist/component/usageCredits/purchase.d.ts +1 -0
- package/dist/component/usageCredits/purchase.d.ts.map +1 -1
- package/dist/component/usageCredits/queries.d.ts +10 -0
- package/dist/component/usageCredits/queries.d.ts.map +1 -1
- package/dist/component/usageCredits/schema.d.ts +24 -4
- package/dist/component/usageCredits/schema.d.ts.map +1 -1
- package/dist/component/usageCredits/schema.js +4 -0
- package/dist/component/usageCredits/schema.js.map +1 -1
- package/dist/component/usageSubscriptions/history.d.ts.map +1 -1
- package/dist/component/usageSubscriptions/history.js +3 -1
- package/dist/component/usageSubscriptions/history.js.map +1 -1
- package/dist/component/usageSubscriptions/mutations.d.ts +5 -0
- package/dist/component/usageSubscriptions/mutations.d.ts.map +1 -1
- package/dist/component/usageSubscriptions/mutations.js +19 -0
- package/dist/component/usageSubscriptions/mutations.js.map +1 -1
- package/dist/component/usageSubscriptions/queries.d.ts +2 -0
- package/dist/component/usageSubscriptions/queries.d.ts.map +1 -1
- package/dist/component/usageSubscriptions/schema.d.ts +7 -2
- package/dist/component/usageSubscriptions/schema.d.ts.map +1 -1
- package/dist/component/usageSubscriptions/schema.js +1 -0
- package/dist/component/usageSubscriptions/schema.js.map +1 -1
- package/dist/react/index.d.ts +12 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +7 -0
- package/dist/react/index.js.map +1 -1
- package/dist/react/workflows/Pagination.d.ts +1 -0
- package/dist/react/workflows/Pagination.d.ts.map +1 -1
- package/dist/react/workflows/Pagination.js +1 -0
- package/dist/react/workflows/Pagination.js.map +1 -1
- package/dist/react/workflows/Usage.fixtures.d.ts +17 -0
- package/dist/react/workflows/Usage.fixtures.d.ts.map +1 -0
- package/dist/react/workflows/Usage.fixtures.js +79 -0
- package/dist/react/workflows/Usage.fixtures.js.map +1 -0
- package/dist/react/workflows/Usage.types.d.ts +25 -0
- package/dist/react/workflows/Usage.types.d.ts.map +1 -0
- package/dist/react/workflows/Usage.types.js +11 -0
- package/dist/react/workflows/Usage.types.js.map +1 -0
- package/dist/react/workflows/UsageAllowance.d.ts +14 -0
- package/dist/react/workflows/UsageAllowance.d.ts.map +1 -0
- package/dist/react/workflows/UsageAllowance.js +21 -0
- package/dist/react/workflows/UsageAllowance.js.map +1 -0
- package/dist/react/workflows/UsageBilling.d.ts +20 -0
- package/dist/react/workflows/UsageBilling.d.ts.map +1 -0
- package/dist/react/workflows/UsageBilling.js +40 -0
- package/dist/react/workflows/UsageBilling.js.map +1 -0
- package/dist/react/workflows/UsageCredits.d.ts +14 -0
- package/dist/react/workflows/UsageCredits.d.ts.map +1 -0
- package/dist/react/workflows/UsageCredits.js +25 -0
- package/dist/react/workflows/UsageCredits.js.map +1 -0
- package/dist/react/workflows/UsageHistory.d.ts +40 -0
- package/dist/react/workflows/UsageHistory.d.ts.map +1 -0
- package/dist/react/workflows/UsageHistory.js +74 -0
- package/dist/react/workflows/UsageHistory.js.map +1 -0
- package/dist/react/workflows/UsageSummary.d.ts +19 -0
- package/dist/react/workflows/UsageSummary.d.ts.map +1 -0
- package/dist/react/workflows/UsageSummary.js +54 -0
- package/dist/react/workflows/UsageSummary.js.map +1 -0
- package/dist/react/workflows/usage-format.d.ts +11 -0
- package/dist/react/workflows/usage-format.d.ts.map +1 -0
- package/dist/react/workflows/usage-format.js +43 -0
- package/dist/react/workflows/usage-format.js.map +1 -0
- package/dist/react/workflows/usage-scope.d.ts +5 -0
- package/dist/react/workflows/usage-scope.d.ts.map +1 -0
- package/dist/react/workflows/usage-scope.js +26 -0
- package/dist/react/workflows/usage-scope.js.map +1 -0
- package/docs/README.md +4 -0
- package/docs/react-api.md +4 -0
- package/docs/usage-credits.md +6 -1
- package/docs/usage-react.md +182 -0
- package/docs/usage-security.md +130 -0
- package/package.json +3 -1
- package/src/client/usage/creditBackingIsolation.test.ts +110 -0
- package/src/client/usage/creditCapacity.test.ts +80 -1
- package/src/client/usage/creditCapacity.ts +10 -1
- package/src/client/usage/creditDelivery.ts +4 -0
- package/src/client/usage/creditLifecycle.ts +2 -0
- package/src/client/usage/creditNative.ts +5 -0
- package/src/client/usage/creditProofBounds.test.ts +187 -0
- package/src/client/usage/creditProvider.test.ts +74 -0
- package/src/client/usage/creditProvider.ts +2 -0
- package/src/client/usage/creditReconciliation.ts +18 -3
- package/src/client/usage/creditTransport.fixtures.ts +2 -1
- package/src/client/usage/index.ts +3 -0
- package/src/client/usage/subscriptionCancellation.ts +3 -2
- package/src/client/usage/subscriptionCheckout.ts +7 -2
- package/src/client/usage/subscriptionClient.test.ts +60 -1
- package/src/client/usage/subscriptionLifecycle.ts +3 -2
- package/src/client/usage/subscriptionProvider.ts +27 -3
- package/src/component/_generated/component.ts +40 -1
- package/src/component/usage/allowance.fixtures.ts +77 -0
- package/src/component/usage/allowance.test.ts +3 -66
- package/src/component/usage/allowanceBounds.test.ts +79 -0
- package/src/component/usage/historyIsolation.test.ts +124 -0
- package/src/component/usageCredits/accounting.fixtures.ts +96 -0
- package/src/component/usageCredits/accounting.test.ts +176 -82
- package/src/component/usageCredits/freshness.test.ts +33 -0
- package/src/component/usageCredits/helpers.ts +8 -0
- package/src/component/usageCredits/mutations.ts +83 -5
- package/src/component/usageCredits/quotas.test.ts +63 -0
- package/src/component/usageCredits/schema.ts +10 -0
- package/src/component/usageSubscriptions/history.test.ts +57 -0
- package/src/component/usageSubscriptions/history.ts +3 -1
- package/src/component/usageSubscriptions/mutations.ts +23 -0
- package/src/component/usageSubscriptions/schema.ts +1 -0
- package/src/react/index.ts +20 -0
- package/src/react/workflows/Pagination.tsx +2 -0
- package/src/react/workflows/Usage.fixtures.ts +88 -0
- package/src/react/workflows/Usage.test.tsx +373 -0
- package/src/react/workflows/Usage.types.ts +39 -0
- package/src/react/workflows/UsageAllowance.tsx +114 -0
- package/src/react/workflows/UsageBilling.tsx +90 -0
- package/src/react/workflows/UsageCredits.tsx +112 -0
- package/src/react/workflows/UsageHistory.test.tsx +206 -0
- package/src/react/workflows/UsageHistory.tsx +154 -0
- package/src/react/workflows/UsageSummary.tsx +204 -0
- package/src/react/workflows/usage-format.ts +48 -0
- package/src/react/workflows/usage-scope.ts +42 -0
|
@@ -2270,13 +2270,16 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2270
2270
|
nativeExpired?: boolean | undefined;
|
|
2271
2271
|
nativeObservationJson?: string | undefined;
|
|
2272
2272
|
nativeUnused: boolean;
|
|
2273
|
+
observationConflictAt?: number | undefined;
|
|
2274
|
+
observationStartedAt?: number | undefined;
|
|
2273
2275
|
observedAt?: number | undefined;
|
|
2274
2276
|
paymentIntentId: string;
|
|
2275
2277
|
proofJson: string;
|
|
2278
|
+
proofStartedAt?: number | undefined;
|
|
2276
2279
|
purchaseKey: string;
|
|
2277
2280
|
reserved: string;
|
|
2278
2281
|
};
|
|
2279
|
-
fieldPaths: "_id" | ("_creationTime" | "accountKey" | "available" | "chargeId" | "consumed" | "creditGrantId" | "effectiveAt" | "expiresAt" | "frozen" | "nativeCreated" | "nativeCustomerKey" | "nativeExpired" | "nativeObservationJson" | "nativeUnused" | "observedAt" | "paymentIntentId" | "proofJson" | "purchaseKey" | "reserved");
|
|
2282
|
+
fieldPaths: "_id" | ("_creationTime" | "accountKey" | "available" | "chargeId" | "consumed" | "creditGrantId" | "effectiveAt" | "expiresAt" | "frozen" | "nativeCreated" | "nativeCustomerKey" | "nativeExpired" | "nativeObservationJson" | "nativeUnused" | "observationConflictAt" | "observationStartedAt" | "observedAt" | "paymentIntentId" | "proofJson" | "proofStartedAt" | "purchaseKey" | "reserved");
|
|
2280
2283
|
indexes: {
|
|
2281
2284
|
by_id: ["_id"];
|
|
2282
2285
|
by_creation_time: ["_creationTime"];
|
|
@@ -2326,11 +2329,12 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2326
2329
|
paymentIntentId?: string | undefined;
|
|
2327
2330
|
paymentKey?: string | undefined;
|
|
2328
2331
|
paymentProofJson?: string | undefined;
|
|
2332
|
+
recoveryReason?: "native_state_changed" | "payment_disputed" | "payment_refunded" | undefined;
|
|
2329
2333
|
refundedAmount?: number | undefined;
|
|
2330
2334
|
state: "canceled" | "frozen" | "pending" | "ready";
|
|
2331
2335
|
termsJson: string;
|
|
2332
2336
|
};
|
|
2333
|
-
fieldPaths: "_id" | ("_creationTime" | "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "refundedAmount" | "state" | "termsJson");
|
|
2337
|
+
fieldPaths: "_id" | ("_creationTime" | "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "recoveryReason" | "refundedAmount" | "state" | "termsJson");
|
|
2334
2338
|
indexes: {
|
|
2335
2339
|
by_id: ["_id"];
|
|
2336
2340
|
by_creation_time: ["_creationTime"];
|
|
@@ -2582,6 +2586,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2582
2586
|
historyCount?: number | undefined;
|
|
2583
2587
|
key: string;
|
|
2584
2588
|
method: "checkout" | "direct";
|
|
2589
|
+
observationStartedAt?: number | undefined;
|
|
2585
2590
|
providerId?: string | undefined;
|
|
2586
2591
|
retiredAt?: number | undefined;
|
|
2587
2592
|
retirementInvoiceId?: string | undefined;
|
|
@@ -2590,7 +2595,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2590
2595
|
termsJson: string;
|
|
2591
2596
|
viewJson?: string | undefined;
|
|
2592
2597
|
};
|
|
2593
|
-
fieldPaths: "_id" | ("_creationTime" | "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson");
|
|
2598
|
+
fieldPaths: "_id" | ("_creationTime" | "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "observationStartedAt" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson");
|
|
2594
2599
|
indexes: {
|
|
2595
2600
|
by_id: ["_id"];
|
|
2596
2601
|
by_creation_time: ["_creationTime"];
|
|
@@ -4913,13 +4918,16 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4913
4918
|
nativeExpired?: boolean | undefined;
|
|
4914
4919
|
nativeObservationJson?: string | undefined;
|
|
4915
4920
|
nativeUnused: boolean;
|
|
4921
|
+
observationConflictAt?: number | undefined;
|
|
4922
|
+
observationStartedAt?: number | undefined;
|
|
4916
4923
|
observedAt?: number | undefined;
|
|
4917
4924
|
paymentIntentId: string;
|
|
4918
4925
|
proofJson: string;
|
|
4926
|
+
proofStartedAt?: number | undefined;
|
|
4919
4927
|
purchaseKey: string;
|
|
4920
4928
|
reserved: string;
|
|
4921
4929
|
};
|
|
4922
|
-
fieldPaths: "_id" | ("_creationTime" | "accountKey" | "available" | "chargeId" | "consumed" | "creditGrantId" | "effectiveAt" | "expiresAt" | "frozen" | "nativeCreated" | "nativeCustomerKey" | "nativeExpired" | "nativeObservationJson" | "nativeUnused" | "observedAt" | "paymentIntentId" | "proofJson" | "purchaseKey" | "reserved");
|
|
4930
|
+
fieldPaths: "_id" | ("_creationTime" | "accountKey" | "available" | "chargeId" | "consumed" | "creditGrantId" | "effectiveAt" | "expiresAt" | "frozen" | "nativeCreated" | "nativeCustomerKey" | "nativeExpired" | "nativeObservationJson" | "nativeUnused" | "observationConflictAt" | "observationStartedAt" | "observedAt" | "paymentIntentId" | "proofJson" | "proofStartedAt" | "purchaseKey" | "reserved");
|
|
4923
4931
|
indexes: {
|
|
4924
4932
|
by_id: ["_id"];
|
|
4925
4933
|
by_creation_time: ["_creationTime"];
|
|
@@ -4969,11 +4977,12 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4969
4977
|
paymentIntentId?: string | undefined;
|
|
4970
4978
|
paymentKey?: string | undefined;
|
|
4971
4979
|
paymentProofJson?: string | undefined;
|
|
4980
|
+
recoveryReason?: "native_state_changed" | "payment_disputed" | "payment_refunded" | undefined;
|
|
4972
4981
|
refundedAmount?: number | undefined;
|
|
4973
4982
|
state: "canceled" | "frozen" | "pending" | "ready";
|
|
4974
4983
|
termsJson: string;
|
|
4975
4984
|
};
|
|
4976
|
-
fieldPaths: "_id" | ("_creationTime" | "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "refundedAmount" | "state" | "termsJson");
|
|
4985
|
+
fieldPaths: "_id" | ("_creationTime" | "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "recoveryReason" | "refundedAmount" | "state" | "termsJson");
|
|
4977
4986
|
indexes: {
|
|
4978
4987
|
by_id: ["_id"];
|
|
4979
4988
|
by_creation_time: ["_creationTime"];
|
|
@@ -5225,6 +5234,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
5225
5234
|
historyCount?: number | undefined;
|
|
5226
5235
|
key: string;
|
|
5227
5236
|
method: "checkout" | "direct";
|
|
5237
|
+
observationStartedAt?: number | undefined;
|
|
5228
5238
|
providerId?: string | undefined;
|
|
5229
5239
|
retiredAt?: number | undefined;
|
|
5230
5240
|
retirementInvoiceId?: string | undefined;
|
|
@@ -5233,7 +5243,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
5233
5243
|
termsJson: string;
|
|
5234
5244
|
viewJson?: string | undefined;
|
|
5235
5245
|
};
|
|
5236
|
-
fieldPaths: "_id" | ("_creationTime" | "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson");
|
|
5246
|
+
fieldPaths: "_id" | ("_creationTime" | "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "observationStartedAt" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson");
|
|
5237
5247
|
indexes: {
|
|
5238
5248
|
by_id: ["_id"];
|
|
5239
5249
|
by_creation_time: ["_creationTime"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/component/earnings/triggers.ts"],"names":[],"mappings":"AA6GA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/component/earnings/triggers.ts"],"names":[],"mappings":"AA6GA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAA0D,CAAC"}
|
|
@@ -174,6 +174,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
174
174
|
historyCount?: number | undefined;
|
|
175
175
|
key: string;
|
|
176
176
|
method: "checkout" | "direct";
|
|
177
|
+
observationStartedAt?: number | undefined;
|
|
177
178
|
providerId?: string | undefined;
|
|
178
179
|
retiredAt?: number | undefined;
|
|
179
180
|
retirementInvoiceId?: string | undefined;
|
|
@@ -191,12 +192,13 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
191
192
|
checkoutId: import("convex/values").VString<string | undefined, "optional">;
|
|
192
193
|
viewJson: import("convex/values").VString<string | undefined, "optional">;
|
|
193
194
|
startedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
195
|
+
observationStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
194
196
|
controlKey: import("convex/values").VString<string | undefined, "optional">;
|
|
195
197
|
historyCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
196
198
|
retiredAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
197
199
|
abandonedId: import("convex/values").VString<string | undefined, "optional">;
|
|
198
200
|
retirementInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
199
|
-
}, "required", "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson">, {
|
|
201
|
+
}, "required", "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "observationStartedAt" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson">, {
|
|
200
202
|
by_key: ["key", "_creationTime"];
|
|
201
203
|
by_provider: ["providerId", "_creationTime"];
|
|
202
204
|
}, {}, {}>;
|
|
@@ -476,6 +478,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
476
478
|
paymentIntentId?: string | undefined;
|
|
477
479
|
paymentKey?: string | undefined;
|
|
478
480
|
paymentProofJson?: string | undefined;
|
|
481
|
+
recoveryReason?: "native_state_changed" | "payment_disputed" | "payment_refunded" | undefined;
|
|
479
482
|
refundedAmount?: number | undefined;
|
|
480
483
|
state: "canceled" | "frozen" | "pending" | "ready";
|
|
481
484
|
termsJson: string;
|
|
@@ -492,9 +495,10 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
492
495
|
paymentKey: import("convex/values").VString<string | undefined, "optional">;
|
|
493
496
|
paymentProofJson: import("convex/values").VString<string | undefined, "optional">;
|
|
494
497
|
refundedAmount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
498
|
+
recoveryReason: import("convex/values").VUnion<"native_state_changed" | "payment_disputed" | "payment_refunded" | undefined, [import("convex/values").VLiteral<"payment_refunded", "required">, import("convex/values").VLiteral<"payment_disputed", "required">, import("convex/values").VLiteral<"native_state_changed", "required">], "optional", never>;
|
|
495
499
|
grantFirstAttemptAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
496
500
|
creditGrantId: import("convex/values").VString<string | undefined, "optional">;
|
|
497
|
-
}, "required", "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "refundedAmount" | "state" | "termsJson">, {
|
|
501
|
+
}, "required", "accountKey" | "capacityReserved" | "creditGrantId" | "firstAttemptAt" | "grantFirstAttemptAt" | "key" | "nativeCustomerKey" | "paymentAttemptedAt" | "paymentIntentId" | "paymentKey" | "paymentProofJson" | "recoveryReason" | "refundedAmount" | "state" | "termsJson">, {
|
|
498
502
|
by_account: ["accountKey", "_creationTime"];
|
|
499
503
|
by_customer_capacity: ["nativeCustomerKey", "capacityReserved", "_creationTime"];
|
|
500
504
|
by_key: ["key", "_creationTime"];
|
|
@@ -514,9 +518,12 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
514
518
|
nativeExpired?: boolean | undefined;
|
|
515
519
|
nativeObservationJson?: string | undefined;
|
|
516
520
|
nativeUnused: boolean;
|
|
521
|
+
observationConflictAt?: number | undefined;
|
|
522
|
+
observationStartedAt?: number | undefined;
|
|
517
523
|
observedAt?: number | undefined;
|
|
518
524
|
paymentIntentId: string;
|
|
519
525
|
proofJson: string;
|
|
526
|
+
proofStartedAt?: number | undefined;
|
|
520
527
|
purchaseKey: string;
|
|
521
528
|
reserved: string;
|
|
522
529
|
}, {
|
|
@@ -538,7 +545,10 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
538
545
|
nativeExpired: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
539
546
|
nativeObservationJson: import("convex/values").VString<string | undefined, "optional">;
|
|
540
547
|
observedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
541
|
-
|
|
548
|
+
proofStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
549
|
+
observationStartedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
550
|
+
observationConflictAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
551
|
+
}, "required", "accountKey" | "available" | "chargeId" | "consumed" | "creditGrantId" | "effectiveAt" | "expiresAt" | "frozen" | "nativeCreated" | "nativeCustomerKey" | "nativeExpired" | "nativeObservationJson" | "nativeUnused" | "observationConflictAt" | "observationStartedAt" | "observedAt" | "paymentIntentId" | "proofJson" | "proofStartedAt" | "purchaseKey" | "reserved">, {
|
|
542
552
|
by_account: ["accountKey", "_creationTime"];
|
|
543
553
|
by_customer_unused: ["nativeCustomerKey", "nativeUnused", "_creationTime"];
|
|
544
554
|
by_native: ["creditGrantId", "_creationTime"];
|