@fantastic.dev/better-stripe 0.57.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 +6 -0
- package/README.md +3 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +122 -36
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +45 -2
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +122 -36
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +45 -2
- package/dist/client/connect/payoutSyncTestHelpers.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 +2 -2
- package/dist/client/usage/client.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/usageExports.d.ts +2 -0
- package/dist/client/usageExports.d.ts.map +1 -1
- package/dist/component/_generated/api.d.ts +8 -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 +70 -0
- package/dist/component/_generated/component.d.ts.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/stateHandlers.d.ts +8 -8
- package/dist/component/balanceFunding/workflowValidators.d.ts +16 -16
- package/dist/component/earnings/triggers.d.ts +110 -18
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/schema.d.ts +45 -2
- package/dist/component/schema.js +3 -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 +4 -0
- package/dist/component/usage/mutations.js.map +1 -1
- package/dist/component/usage/schema.d.ts +3 -2
- package/dist/component/usage/schema.d.ts.map +1 -1
- package/dist/component/usage/schema.js +2 -1
- 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/docs/README.md +2 -0
- package/docs/usage-limits.md +217 -0
- package/package.json +2 -1
- 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 +2 -2
- package/src/client/usage/index.ts +8 -0
- package/src/client/usageExports.ts +8 -0
- package/src/component/_generated/api.ts +8 -0
- package/src/component/_generated/component.ts +94 -0
- package/src/component/schema.ts +6 -0
- package/src/component/usage/allowance.test.ts +435 -0
- package/src/component/usage/mutations.ts +13 -0
- package/src/component/usage/schema.ts +4 -1
- 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/CHANGELOG.md
CHANGED
|
@@ -26,6 +26,12 @@
|
|
|
26
26
|
- Remove internal tracker references from public documentation and add a
|
|
27
27
|
regression check that prevents their reintroduction.
|
|
28
28
|
|
|
29
|
+
## [0.58.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.57.0...v0.58.0) (2026-10-18)
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
- add atomic included usage and optional limits ([#333](https://github.com/FantasticDevHQ/better-stripe/issues/333)) ([3980483](https://github.com/FantasticDevHQ/better-stripe/commit/398048346056f5ca85fd0bfafa2fa4cceab40443))
|
|
34
|
+
|
|
29
35
|
## [0.57.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.56.0...v0.57.0) (2026-10-18)
|
|
30
36
|
|
|
31
37
|
### Features
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ billing, and Connect marketplaces. It provides checkout, subscriptions, webhook
|
|
|
5
5
|
syncing, marketplace fees and splits, payouts, refunds, and disputes, with React
|
|
6
6
|
hooks and headless UI components.
|
|
7
7
|
|
|
8
|
-
**Version**: `0.
|
|
8
|
+
**Version**: `0.58.0` <!-- x-release-please-version --> (pre-1.0). API may change between minor versions until 1.0.
|
|
9
9
|
|
|
10
10
|
Connect platforms use the default GA API version. Non-Connect merchants using
|
|
11
11
|
customer-only Accounts v2 need preview access and an explicit preview version.
|
|
@@ -134,3 +134,5 @@ Native Stripe integration supports shared configuration and exact quantity helpe
|
|
|
134
134
|
[Managed usage subscriptions](docs/usage-subscriptions.md) supports all three billing models, mixed fixed/metered items and Checkout, with retained renewal and invoice provenance.
|
|
135
135
|
|
|
136
136
|
See [payment-backed prepaid usage](docs/usage-credits.md) for purchases, atomic reservations, credit history and recovery.
|
|
137
|
+
|
|
138
|
+
See [included usage and optional limits](./docs/usage-limits.md) for atomic reservation accounting, monthly resets and overage policy.
|
|
@@ -9,6 +9,48 @@ export declare const scope: {
|
|
|
9
9
|
};
|
|
10
10
|
export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
11
11
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
12
|
+
usageAllowancePolicies: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
13
|
+
bindingJson: string;
|
|
14
|
+
consumed: string;
|
|
15
|
+
end: number;
|
|
16
|
+
historyCount: number;
|
|
17
|
+
key: string;
|
|
18
|
+
nativeKey: string;
|
|
19
|
+
policyJson: string;
|
|
20
|
+
reserved: string;
|
|
21
|
+
revision: number;
|
|
22
|
+
scopeKey: string;
|
|
23
|
+
start: number;
|
|
24
|
+
}, {
|
|
25
|
+
key: import("convex/values").VString<string, "required">;
|
|
26
|
+
nativeKey: import("convex/values").VString<string, "required">;
|
|
27
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
28
|
+
bindingJson: import("convex/values").VString<string, "required">;
|
|
29
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
30
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
31
|
+
policyJson: import("convex/values").VString<string, "required">;
|
|
32
|
+
revision: import("convex/values").VFloat64<number, "required">;
|
|
33
|
+
consumed: import("convex/values").VString<string, "required">;
|
|
34
|
+
reserved: import("convex/values").VString<string, "required">;
|
|
35
|
+
historyCount: import("convex/values").VFloat64<number, "required">;
|
|
36
|
+
}, "required", "bindingJson" | "consumed" | "end" | "historyCount" | "key" | "nativeKey" | "policyJson" | "reserved" | "revision" | "scopeKey" | "start">, {
|
|
37
|
+
by_key: ["key", "_creationTime"];
|
|
38
|
+
by_native_start: ["nativeKey", "start", "_creationTime"];
|
|
39
|
+
by_scope_start: ["scopeKey", "start", "_creationTime"];
|
|
40
|
+
}, {}, {}>;
|
|
41
|
+
usageAllowanceHistory: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
42
|
+
at: number;
|
|
43
|
+
evidenceJson: string;
|
|
44
|
+
key: string;
|
|
45
|
+
kind: "commit" | "policy" | "release" | "reservation";
|
|
46
|
+
}, {
|
|
47
|
+
key: import("convex/values").VString<string, "required">;
|
|
48
|
+
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>;
|
|
49
|
+
evidenceJson: import("convex/values").VString<string, "required">;
|
|
50
|
+
at: import("convex/values").VFloat64<number, "required">;
|
|
51
|
+
}, "required", "at" | "evidenceJson" | "key" | "kind">, {
|
|
52
|
+
by_key: ["key", "_creationTime"];
|
|
53
|
+
}, {}, {}>;
|
|
12
54
|
usageSubscriptionControls: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
13
55
|
cancelAtPeriodEnd: boolean;
|
|
14
56
|
firstAttemptAt: number;
|
|
@@ -268,7 +310,7 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
268
310
|
}, {}, {}>;
|
|
269
311
|
usageReservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
270
312
|
accountKey?: string | undefined;
|
|
271
|
-
accountingKind?: "prepaid" | undefined;
|
|
313
|
+
accountingKind?: "allowance" | "prepaid" | undefined;
|
|
272
314
|
allocationsJson?: string | undefined;
|
|
273
315
|
eventId?: import("convex/values").GenericId<"usageEvents"> | undefined;
|
|
274
316
|
inputJson?: string | undefined;
|
|
@@ -286,13 +328,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
286
328
|
scaledQuantity: import("convex/values").VString<string, "required">;
|
|
287
329
|
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>;
|
|
288
330
|
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents"> | undefined, "optional">;
|
|
289
|
-
accountingKind: import("convex/values").
|
|
331
|
+
accountingKind: import("convex/values").VUnion<"allowance" | "prepaid" | undefined, [import("convex/values").VLiteral<"prepaid", "required">, import("convex/values").VLiteral<"allowance", "required">], "optional", never>;
|
|
290
332
|
accountKey: import("convex/values").VString<string | undefined, "optional">;
|
|
291
333
|
inputJson: import("convex/values").VString<string | undefined, "optional">;
|
|
292
334
|
subscriptionJson: import("convex/values").VString<string | undefined, "optional">;
|
|
293
335
|
allocationsJson: import("convex/values").VString<string | undefined, "optional">;
|
|
294
336
|
releaseReason: import("convex/values").VString<string | undefined, "optional">;
|
|
295
337
|
}, "required", "accountKey" | "accountingKind" | "allocationsJson" | "eventId" | "inputJson" | "planJson" | "releaseReason" | "scaledQuantity" | "scopeKey" | "sourceEventId" | "state" | "subscriptionJson">, {
|
|
338
|
+
by_account_state: ["accountKey", "state", "_creationTime"];
|
|
296
339
|
by_scope_source: ["scopeKey", "sourceEventId", "_creationTime"];
|
|
297
340
|
by_scope_state: ["scopeKey", "state", "_creationTime"];
|
|
298
341
|
}, {}, {}>;
|
|
@@ -1482,6 +1525,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1482
1525
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
1483
1526
|
requestKey: string;
|
|
1484
1527
|
result?: {
|
|
1528
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1529
|
+
retryable: false;
|
|
1530
|
+
status: "conflict";
|
|
1531
|
+
} | {
|
|
1532
|
+
reason: "policy_invalid";
|
|
1533
|
+
retryable: false;
|
|
1534
|
+
status: "rejected";
|
|
1535
|
+
} | {
|
|
1485
1536
|
operation: {
|
|
1486
1537
|
accountId: string;
|
|
1487
1538
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -1492,14 +1543,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1492
1543
|
} | {
|
|
1493
1544
|
enabled: boolean;
|
|
1494
1545
|
status: "unchanged";
|
|
1495
|
-
} | {
|
|
1496
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1497
|
-
retryable: false;
|
|
1498
|
-
status: "conflict";
|
|
1499
|
-
} | {
|
|
1500
|
-
reason: "policy_invalid";
|
|
1501
|
-
retryable: false;
|
|
1502
|
-
status: "rejected";
|
|
1503
1546
|
} | {
|
|
1504
1547
|
reason: "provider_pending";
|
|
1505
1548
|
retryable: true;
|
|
@@ -1510,6 +1553,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1510
1553
|
payload: import("convex/values").VString<string, "required">;
|
|
1511
1554
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
1512
1555
|
result: import("convex/values").VUnion<{
|
|
1556
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1557
|
+
retryable: false;
|
|
1558
|
+
status: "conflict";
|
|
1559
|
+
} | {
|
|
1560
|
+
reason: "policy_invalid";
|
|
1561
|
+
retryable: false;
|
|
1562
|
+
status: "rejected";
|
|
1563
|
+
} | {
|
|
1513
1564
|
operation: {
|
|
1514
1565
|
accountId: string;
|
|
1515
1566
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -1520,14 +1571,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1520
1571
|
} | {
|
|
1521
1572
|
enabled: boolean;
|
|
1522
1573
|
status: "unchanged";
|
|
1523
|
-
} | {
|
|
1524
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1525
|
-
retryable: false;
|
|
1526
|
-
status: "conflict";
|
|
1527
|
-
} | {
|
|
1528
|
-
reason: "policy_invalid";
|
|
1529
|
-
retryable: false;
|
|
1530
|
-
status: "rejected";
|
|
1531
1574
|
} | {
|
|
1532
1575
|
reason: "provider_pending";
|
|
1533
1576
|
retryable: true;
|
|
@@ -3829,6 +3872,48 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
3829
3872
|
}>;
|
|
3830
3873
|
export declare function historical(currency?: string): Promise<{
|
|
3831
3874
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
3875
|
+
usageAllowancePolicies: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3876
|
+
bindingJson: string;
|
|
3877
|
+
consumed: string;
|
|
3878
|
+
end: number;
|
|
3879
|
+
historyCount: number;
|
|
3880
|
+
key: string;
|
|
3881
|
+
nativeKey: string;
|
|
3882
|
+
policyJson: string;
|
|
3883
|
+
reserved: string;
|
|
3884
|
+
revision: number;
|
|
3885
|
+
scopeKey: string;
|
|
3886
|
+
start: number;
|
|
3887
|
+
}, {
|
|
3888
|
+
key: import("convex/values").VString<string, "required">;
|
|
3889
|
+
nativeKey: import("convex/values").VString<string, "required">;
|
|
3890
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
3891
|
+
bindingJson: import("convex/values").VString<string, "required">;
|
|
3892
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
3893
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
3894
|
+
policyJson: import("convex/values").VString<string, "required">;
|
|
3895
|
+
revision: import("convex/values").VFloat64<number, "required">;
|
|
3896
|
+
consumed: import("convex/values").VString<string, "required">;
|
|
3897
|
+
reserved: import("convex/values").VString<string, "required">;
|
|
3898
|
+
historyCount: import("convex/values").VFloat64<number, "required">;
|
|
3899
|
+
}, "required", "bindingJson" | "consumed" | "end" | "historyCount" | "key" | "nativeKey" | "policyJson" | "reserved" | "revision" | "scopeKey" | "start">, {
|
|
3900
|
+
by_key: ["key", "_creationTime"];
|
|
3901
|
+
by_native_start: ["nativeKey", "start", "_creationTime"];
|
|
3902
|
+
by_scope_start: ["scopeKey", "start", "_creationTime"];
|
|
3903
|
+
}, {}, {}>;
|
|
3904
|
+
usageAllowanceHistory: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3905
|
+
at: number;
|
|
3906
|
+
evidenceJson: string;
|
|
3907
|
+
key: string;
|
|
3908
|
+
kind: "commit" | "policy" | "release" | "reservation";
|
|
3909
|
+
}, {
|
|
3910
|
+
key: import("convex/values").VString<string, "required">;
|
|
3911
|
+
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>;
|
|
3912
|
+
evidenceJson: import("convex/values").VString<string, "required">;
|
|
3913
|
+
at: import("convex/values").VFloat64<number, "required">;
|
|
3914
|
+
}, "required", "at" | "evidenceJson" | "key" | "kind">, {
|
|
3915
|
+
by_key: ["key", "_creationTime"];
|
|
3916
|
+
}, {}, {}>;
|
|
3832
3917
|
usageSubscriptionControls: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3833
3918
|
cancelAtPeriodEnd: boolean;
|
|
3834
3919
|
firstAttemptAt: number;
|
|
@@ -4088,7 +4173,7 @@ export declare function historical(currency?: string): Promise<{
|
|
|
4088
4173
|
}, {}, {}>;
|
|
4089
4174
|
usageReservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
4090
4175
|
accountKey?: string | undefined;
|
|
4091
|
-
accountingKind?: "prepaid" | undefined;
|
|
4176
|
+
accountingKind?: "allowance" | "prepaid" | undefined;
|
|
4092
4177
|
allocationsJson?: string | undefined;
|
|
4093
4178
|
eventId?: import("convex/values").GenericId<"usageEvents"> | undefined;
|
|
4094
4179
|
inputJson?: string | undefined;
|
|
@@ -4106,13 +4191,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
4106
4191
|
scaledQuantity: import("convex/values").VString<string, "required">;
|
|
4107
4192
|
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>;
|
|
4108
4193
|
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents"> | undefined, "optional">;
|
|
4109
|
-
accountingKind: import("convex/values").
|
|
4194
|
+
accountingKind: import("convex/values").VUnion<"allowance" | "prepaid" | undefined, [import("convex/values").VLiteral<"prepaid", "required">, import("convex/values").VLiteral<"allowance", "required">], "optional", never>;
|
|
4110
4195
|
accountKey: import("convex/values").VString<string | undefined, "optional">;
|
|
4111
4196
|
inputJson: import("convex/values").VString<string | undefined, "optional">;
|
|
4112
4197
|
subscriptionJson: import("convex/values").VString<string | undefined, "optional">;
|
|
4113
4198
|
allocationsJson: import("convex/values").VString<string | undefined, "optional">;
|
|
4114
4199
|
releaseReason: import("convex/values").VString<string | undefined, "optional">;
|
|
4115
4200
|
}, "required", "accountKey" | "accountingKind" | "allocationsJson" | "eventId" | "inputJson" | "planJson" | "releaseReason" | "scaledQuantity" | "scopeKey" | "sourceEventId" | "state" | "subscriptionJson">, {
|
|
4201
|
+
by_account_state: ["accountKey", "state", "_creationTime"];
|
|
4116
4202
|
by_scope_source: ["scopeKey", "sourceEventId", "_creationTime"];
|
|
4117
4203
|
by_scope_state: ["scopeKey", "state", "_creationTime"];
|
|
4118
4204
|
}, {}, {}>;
|
|
@@ -5302,6 +5388,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5302
5388
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
5303
5389
|
requestKey: string;
|
|
5304
5390
|
result?: {
|
|
5391
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
5392
|
+
retryable: false;
|
|
5393
|
+
status: "conflict";
|
|
5394
|
+
} | {
|
|
5395
|
+
reason: "policy_invalid";
|
|
5396
|
+
retryable: false;
|
|
5397
|
+
status: "rejected";
|
|
5398
|
+
} | {
|
|
5305
5399
|
operation: {
|
|
5306
5400
|
accountId: string;
|
|
5307
5401
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -5312,14 +5406,6 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5312
5406
|
} | {
|
|
5313
5407
|
enabled: boolean;
|
|
5314
5408
|
status: "unchanged";
|
|
5315
|
-
} | {
|
|
5316
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
5317
|
-
retryable: false;
|
|
5318
|
-
status: "conflict";
|
|
5319
|
-
} | {
|
|
5320
|
-
reason: "policy_invalid";
|
|
5321
|
-
retryable: false;
|
|
5322
|
-
status: "rejected";
|
|
5323
5409
|
} | {
|
|
5324
5410
|
reason: "provider_pending";
|
|
5325
5411
|
retryable: true;
|
|
@@ -5330,6 +5416,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5330
5416
|
payload: import("convex/values").VString<string, "required">;
|
|
5331
5417
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
5332
5418
|
result: import("convex/values").VUnion<{
|
|
5419
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
5420
|
+
retryable: false;
|
|
5421
|
+
status: "conflict";
|
|
5422
|
+
} | {
|
|
5423
|
+
reason: "policy_invalid";
|
|
5424
|
+
retryable: false;
|
|
5425
|
+
status: "rejected";
|
|
5426
|
+
} | {
|
|
5333
5427
|
operation: {
|
|
5334
5428
|
accountId: string;
|
|
5335
5429
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -5340,14 +5434,6 @@ export declare function historical(currency?: string): Promise<{
|
|
|
5340
5434
|
} | {
|
|
5341
5435
|
enabled: boolean;
|
|
5342
5436
|
status: "unchanged";
|
|
5343
|
-
} | {
|
|
5344
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
5345
|
-
retryable: false;
|
|
5346
|
-
status: "conflict";
|
|
5347
|
-
} | {
|
|
5348
|
-
reason: "policy_invalid";
|
|
5349
|
-
retryable: false;
|
|
5350
|
-
status: "rejected";
|
|
5351
5437
|
} | {
|
|
5352
5438
|
reason: "provider_pending";
|
|
5353
5439
|
retryable: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutAdoptionTestHelpers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAqBvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,eAAO,MAAM,KAAK;IAChB,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,sBAAsB;CACvB,CAAC;AACF,wBAAsB,KAAK,CAAC,OAAO,WAAa,EAAE,QAAQ,SAAQ
|
|
1
|
+
{"version":3,"file":"payoutAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutAdoptionTestHelpers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAqBvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,eAAO,MAAM,KAAK;IAChB,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,sBAAsB;CACvB,CAAC;AACF,wBAAsB,KAAK,CAAC,OAAO,WAAa,EAAE,QAAQ,SAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A2CG,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDrB"}
|
|
@@ -10,6 +10,48 @@ export declare const scope: {
|
|
|
10
10
|
};
|
|
11
11
|
export declare function setup(amounts?: number[]): Promise<{
|
|
12
12
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
13
|
+
usageAllowancePolicies: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
14
|
+
bindingJson: string;
|
|
15
|
+
consumed: string;
|
|
16
|
+
end: number;
|
|
17
|
+
historyCount: number;
|
|
18
|
+
key: string;
|
|
19
|
+
nativeKey: string;
|
|
20
|
+
policyJson: string;
|
|
21
|
+
reserved: string;
|
|
22
|
+
revision: number;
|
|
23
|
+
scopeKey: string;
|
|
24
|
+
start: number;
|
|
25
|
+
}, {
|
|
26
|
+
key: import("convex/values").VString<string, "required">;
|
|
27
|
+
nativeKey: import("convex/values").VString<string, "required">;
|
|
28
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
29
|
+
bindingJson: import("convex/values").VString<string, "required">;
|
|
30
|
+
start: import("convex/values").VFloat64<number, "required">;
|
|
31
|
+
end: import("convex/values").VFloat64<number, "required">;
|
|
32
|
+
policyJson: import("convex/values").VString<string, "required">;
|
|
33
|
+
revision: import("convex/values").VFloat64<number, "required">;
|
|
34
|
+
consumed: import("convex/values").VString<string, "required">;
|
|
35
|
+
reserved: import("convex/values").VString<string, "required">;
|
|
36
|
+
historyCount: import("convex/values").VFloat64<number, "required">;
|
|
37
|
+
}, "required", "bindingJson" | "consumed" | "end" | "historyCount" | "key" | "nativeKey" | "policyJson" | "reserved" | "revision" | "scopeKey" | "start">, {
|
|
38
|
+
by_key: ["key", "_creationTime"];
|
|
39
|
+
by_native_start: ["nativeKey", "start", "_creationTime"];
|
|
40
|
+
by_scope_start: ["scopeKey", "start", "_creationTime"];
|
|
41
|
+
}, {}, {}>;
|
|
42
|
+
usageAllowanceHistory: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
43
|
+
at: number;
|
|
44
|
+
evidenceJson: string;
|
|
45
|
+
key: string;
|
|
46
|
+
kind: "commit" | "policy" | "release" | "reservation";
|
|
47
|
+
}, {
|
|
48
|
+
key: import("convex/values").VString<string, "required">;
|
|
49
|
+
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>;
|
|
50
|
+
evidenceJson: import("convex/values").VString<string, "required">;
|
|
51
|
+
at: import("convex/values").VFloat64<number, "required">;
|
|
52
|
+
}, "required", "at" | "evidenceJson" | "key" | "kind">, {
|
|
53
|
+
by_key: ["key", "_creationTime"];
|
|
54
|
+
}, {}, {}>;
|
|
13
55
|
usageSubscriptionControls: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
14
56
|
cancelAtPeriodEnd: boolean;
|
|
15
57
|
firstAttemptAt: number;
|
|
@@ -269,7 +311,7 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
269
311
|
}, {}, {}>;
|
|
270
312
|
usageReservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
271
313
|
accountKey?: string | undefined;
|
|
272
|
-
accountingKind?: "prepaid" | undefined;
|
|
314
|
+
accountingKind?: "allowance" | "prepaid" | undefined;
|
|
273
315
|
allocationsJson?: string | undefined;
|
|
274
316
|
eventId?: import("convex/values").GenericId<"usageEvents"> | undefined;
|
|
275
317
|
inputJson?: string | undefined;
|
|
@@ -287,13 +329,14 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
287
329
|
scaledQuantity: import("convex/values").VString<string, "required">;
|
|
288
330
|
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>;
|
|
289
331
|
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents"> | undefined, "optional">;
|
|
290
|
-
accountingKind: import("convex/values").
|
|
332
|
+
accountingKind: import("convex/values").VUnion<"allowance" | "prepaid" | undefined, [import("convex/values").VLiteral<"prepaid", "required">, import("convex/values").VLiteral<"allowance", "required">], "optional", never>;
|
|
291
333
|
accountKey: import("convex/values").VString<string | undefined, "optional">;
|
|
292
334
|
inputJson: import("convex/values").VString<string | undefined, "optional">;
|
|
293
335
|
subscriptionJson: import("convex/values").VString<string | undefined, "optional">;
|
|
294
336
|
allocationsJson: import("convex/values").VString<string | undefined, "optional">;
|
|
295
337
|
releaseReason: import("convex/values").VString<string | undefined, "optional">;
|
|
296
338
|
}, "required", "accountKey" | "accountingKind" | "allocationsJson" | "eventId" | "inputJson" | "planJson" | "releaseReason" | "scaledQuantity" | "scopeKey" | "sourceEventId" | "state" | "subscriptionJson">, {
|
|
339
|
+
by_account_state: ["accountKey", "state", "_creationTime"];
|
|
297
340
|
by_scope_source: ["scopeKey", "sourceEventId", "_creationTime"];
|
|
298
341
|
by_scope_state: ["scopeKey", "state", "_creationTime"];
|
|
299
342
|
}, {}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutExecutionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutExecutionTestHelpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAoBvD,eAAO,MAAM,SAAS,EAIN,SAAS,CAAC;AAC1B,eAAO,MAAM,KAAK;IAChB,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,sBAAsB;CACvB,CAAC;AACF,wBAAsB,KAAK,CAAC,OAAO,WAAa
|
|
1
|
+
{"version":3,"file":"payoutExecutionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/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