@fantastic.dev/better-stripe 0.50.3 → 0.52.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 +33 -0
- package/README.md +5 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +166 -32
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +83 -16
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +134 -0
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +67 -0
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +4 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/usage/boundaries.d.ts +132 -0
- package/dist/client/usage/boundaries.d.ts.map +1 -0
- package/dist/client/usage/boundaries.js +43 -0
- package/dist/client/usage/boundaries.js.map +1 -0
- package/dist/client/usage/client.d.ts +37 -0
- package/dist/client/usage/client.d.ts.map +1 -0
- package/dist/client/usage/client.js +59 -0
- package/dist/client/usage/client.js.map +1 -0
- package/dist/client/usage/contracts.d.ts +59 -0
- package/dist/client/usage/contracts.d.ts.map +1 -0
- package/dist/client/usage/contracts.js +63 -0
- package/dist/client/usage/contracts.js.map +1 -0
- package/dist/client/usage/index.d.ts +7 -0
- package/dist/client/usage/index.d.ts.map +1 -0
- package/dist/client/usage/index.js +4 -0
- package/dist/client/usage/index.js.map +1 -0
- package/dist/client/usage/records.d.ts +50 -0
- package/dist/client/usage/records.d.ts.map +1 -0
- package/dist/client/usage/records.js +54 -0
- package/dist/client/usage/records.js.map +1 -0
- package/dist/component/_generated/api.d.ts +6 -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 +79 -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/stateHandlers.d.ts +8 -8
- package/dist/component/earnings/triggers.d.ts +178 -16
- 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 +67 -0
- package/dist/component/schema.js +5 -0
- package/dist/component/schema.js.map +1 -1
- package/dist/component/usage/helpers.d.ts +13 -0
- package/dist/component/usage/helpers.d.ts.map +1 -0
- package/dist/component/usage/helpers.js +34 -0
- package/dist/component/usage/helpers.js.map +1 -0
- package/dist/component/usage/mutations.d.ts +14 -0
- package/dist/component/usage/mutations.d.ts.map +1 -0
- package/dist/component/usage/mutations.js +124 -0
- package/dist/component/usage/mutations.js.map +1 -0
- package/dist/component/usage/queries.d.ts +62 -0
- package/dist/component/usage/queries.d.ts.map +1 -0
- package/dist/component/usage/queries.js +65 -0
- package/dist/component/usage/queries.js.map +1 -0
- package/dist/component/usage/schema.d.ts +110 -0
- package/dist/component/usage/schema.d.ts.map +1 -0
- package/dist/component/usage/schema.js +54 -0
- package/dist/component/usage/schema.js.map +1 -0
- package/docs/README.md +7 -0
- package/docs/development.md +26 -8
- package/docs/metered-usage.md +289 -37
- package/docs/metering-setup.md +184 -0
- package/docs/usage-ledger.md +62 -0
- package/package.json +8 -2
- package/src/client/index.ts +5 -0
- package/src/client/transferContinuation.test.ts +2 -6
- package/src/client/usage/boundaries.test.ts +136 -0
- package/src/client/usage/boundaries.ts +182 -0
- package/src/client/usage/client.ts +97 -0
- package/src/client/usage/contracts.test.ts +145 -0
- package/src/client/usage/contracts.ts +79 -0
- package/src/client/usage/index.ts +34 -0
- package/src/client/usage/ledger-client.test.ts +74 -0
- package/src/client/usage/records.ts +76 -0
- package/src/component/_generated/api.ts +6 -0
- package/src/component/_generated/component.ts +106 -0
- package/src/component/schema.ts +10 -0
- package/src/component/usage/helpers.ts +33 -0
- package/src/component/usage/ledger.test.ts +310 -0
- package/src/component/usage/mutations.ts +139 -0
- package/src/component/usage/queries.ts +69 -0
- package/src/component/usage/schema.ts +65 -0
package/CHANGELOG.md
CHANGED
|
@@ -26,6 +26,39 @@
|
|
|
26
26
|
- Remove internal tracker references from public documentation and add a
|
|
27
27
|
regression check that prevents their reintroduction.
|
|
28
28
|
|
|
29
|
+
## [0.52.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.51.0...v0.52.0) (2026-10-18)
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
- add atomic scoped usage ledger and durable outbox ([c4a4f39](https://github.com/FantasticDevHQ/better-stripe/commit/c4a4f39749ec6399514176e1deb02a379278349a))
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
|
|
37
|
+
- reject unavailable usage reservation references ([d6b7f16](https://github.com/FantasticDevHQ/better-stripe/commit/d6b7f1666a2acf35aae45e590ffc1f5eb3fca8a5))
|
|
38
|
+
|
|
39
|
+
### Tests
|
|
40
|
+
|
|
41
|
+
- retain improved atomic ledger coverage floors ([4b88773](https://github.com/FantasticDevHQ/better-stripe/commit/4b88773e3ff5489c4f473f4e4f5a6ecaf2a7cfbf))
|
|
42
|
+
|
|
43
|
+
## [0.51.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.50.3...v0.51.0) (2026-10-18)
|
|
44
|
+
|
|
45
|
+
### Features
|
|
46
|
+
|
|
47
|
+
- complete scoped usage API and host authorization contracts ([41d58ac](https://github.com/FantasticDevHQ/better-stripe/commit/41d58ac99ff63c89c17143dde5e59de04ee2c80d))
|
|
48
|
+
|
|
49
|
+
### Documentation
|
|
50
|
+
|
|
51
|
+
- align metering status and index with native sandbox evidence ([d1c1bf5](https://github.com/FantasticDevHQ/better-stripe/commit/d1c1bf57893c6045c91a8c9103ea02103c871ed9))
|
|
52
|
+
|
|
53
|
+
### Continuous Integration
|
|
54
|
+
|
|
55
|
+
- batch coverage floor increases in weekly PRs ([d648b82](https://github.com/FantasticDevHQ/better-stripe/commit/d648b82f6c910b16c6349096a2022c798777f608))
|
|
56
|
+
- batch coverage floor increases in weekly PRs ([8217f1f](https://github.com/FantasticDevHQ/better-stripe/commit/8217f1fe9e1bdac5c730d98cc1022ea7cd1c385c))
|
|
57
|
+
|
|
58
|
+
### Tests
|
|
59
|
+
|
|
60
|
+
- ratchet native usage contract coverage floors ([5c8ff1b](https://github.com/FantasticDevHQ/better-stripe/commit/5c8ff1b31913a08db9493cc5a0219601ad540608))
|
|
61
|
+
|
|
29
62
|
## [0.50.3](https://github.com/FantasticDevHQ/better-stripe/compare/v0.50.2...v0.50.3) (2026-10-18)
|
|
30
63
|
|
|
31
64
|
### Documentation
|
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.52.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.
|
|
@@ -126,3 +126,7 @@ for publishing. Run `pnpm run check:all` before submitting changes.
|
|
|
126
126
|
## License
|
|
127
127
|
|
|
128
128
|
MIT
|
|
129
|
+
|
|
130
|
+
## Metered usage
|
|
131
|
+
|
|
132
|
+
Native Stripe integration supports shared configuration and exact quantity helpers at `@fantastic.dev/better-stripe/usage`. See the [setup guide for developers and AI agents](docs/metering-setup.md) and [contracts and sandbox evidence](docs/metered-usage.md). Operational billing APIs are still under development.
|
|
@@ -9,6 +9,73 @@ 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
|
+
usageEvents: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
13
|
+
acceptedAt: number;
|
|
14
|
+
identity: string;
|
|
15
|
+
occurredAt: number;
|
|
16
|
+
recordJson: string;
|
|
17
|
+
reservationId?: import("convex/values").GenericId<"usageReservations"> | undefined;
|
|
18
|
+
scopeKey: string;
|
|
19
|
+
subscriptionJson: string;
|
|
20
|
+
}, {
|
|
21
|
+
reservationId: import("convex/values").VId<import("convex/values").GenericId<"usageReservations"> | undefined, "optional">;
|
|
22
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
23
|
+
identity: import("convex/values").VString<string, "required">;
|
|
24
|
+
recordJson: import("convex/values").VString<string, "required">;
|
|
25
|
+
subscriptionJson: import("convex/values").VString<string, "required">;
|
|
26
|
+
occurredAt: import("convex/values").VFloat64<number, "required">;
|
|
27
|
+
acceptedAt: import("convex/values").VFloat64<number, "required">;
|
|
28
|
+
}, "required", "acceptedAt" | "identity" | "occurredAt" | "recordJson" | "reservationId" | "scopeKey" | "subscriptionJson">, {
|
|
29
|
+
by_identity: ["identity", "_creationTime"];
|
|
30
|
+
by_scope_time: ["scopeKey", "occurredAt", "_creationTime"];
|
|
31
|
+
}, {}, {}>;
|
|
32
|
+
usageOutbox: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
33
|
+
attempts: number;
|
|
34
|
+
dispatch?: string | undefined;
|
|
35
|
+
eventId: import("convex/values").GenericId<"usageEvents">;
|
|
36
|
+
nextAttemptAt: number;
|
|
37
|
+
providerIdentifier: string;
|
|
38
|
+
scopeKey: string;
|
|
39
|
+
state: "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown";
|
|
40
|
+
}, {
|
|
41
|
+
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents">, "required">;
|
|
42
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
43
|
+
state: import("convex/values").VUnion<"held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"sending", "required">, import("convex/values").VLiteral<"provider_accepted", "required">, import("convex/values").VLiteral<"rejected", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"held", "required">], "required", never>;
|
|
44
|
+
attempts: import("convex/values").VFloat64<number, "required">;
|
|
45
|
+
nextAttemptAt: import("convex/values").VFloat64<number, "required">;
|
|
46
|
+
providerIdentifier: import("convex/values").VString<string, "required">;
|
|
47
|
+
dispatch: import("convex/values").VString<string | undefined, "optional">;
|
|
48
|
+
}, "required", "attempts" | "dispatch" | "eventId" | "nextAttemptAt" | "providerIdentifier" | "scopeKey" | "state">, {
|
|
49
|
+
by_event: ["eventId", "_creationTime"];
|
|
50
|
+
by_scope_state: ["scopeKey", "state", "_creationTime"];
|
|
51
|
+
by_state_next: ["state", "nextAttemptAt", "_creationTime"];
|
|
52
|
+
}, {}, {}>;
|
|
53
|
+
usageScopeCounters: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
54
|
+
count: number;
|
|
55
|
+
scopeKey: string;
|
|
56
|
+
}, {
|
|
57
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
58
|
+
count: import("convex/values").VFloat64<number, "required">;
|
|
59
|
+
}, "required", "count" | "scopeKey">, {
|
|
60
|
+
by_scope: ["scopeKey", "_creationTime"];
|
|
61
|
+
}, {}, {}>;
|
|
62
|
+
usageReservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
63
|
+
eventId?: import("convex/values").GenericId<"usageEvents"> | undefined;
|
|
64
|
+
planJson: string;
|
|
65
|
+
scaledQuantity: string;
|
|
66
|
+
scopeKey: string;
|
|
67
|
+
sourceEventId: string;
|
|
68
|
+
state: "committed" | "released" | "reserved";
|
|
69
|
+
}, {
|
|
70
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
71
|
+
sourceEventId: import("convex/values").VString<string, "required">;
|
|
72
|
+
planJson: import("convex/values").VString<string, "required">;
|
|
73
|
+
scaledQuantity: import("convex/values").VString<string, "required">;
|
|
74
|
+
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>;
|
|
75
|
+
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents"> | undefined, "optional">;
|
|
76
|
+
}, "required", "eventId" | "planJson" | "scaledQuantity" | "scopeKey" | "sourceEventId" | "state">, {
|
|
77
|
+
by_scope_source: ["scopeKey", "sourceEventId", "_creationTime"];
|
|
78
|
+
}, {}, {}>;
|
|
12
79
|
refundSyncClaims: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
13
80
|
acceptedAt?: number | undefined;
|
|
14
81
|
acceptedContext?: string | undefined;
|
|
@@ -1069,6 +1136,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1069
1136
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
1070
1137
|
requestKey: string;
|
|
1071
1138
|
result?: {
|
|
1139
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1140
|
+
retryable: false;
|
|
1141
|
+
status: "conflict";
|
|
1142
|
+
} | {
|
|
1143
|
+
reason: "policy_invalid";
|
|
1144
|
+
retryable: false;
|
|
1145
|
+
status: "rejected";
|
|
1146
|
+
} | {
|
|
1072
1147
|
operation: {
|
|
1073
1148
|
accountId: string;
|
|
1074
1149
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -1079,14 +1154,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1079
1154
|
} | {
|
|
1080
1155
|
enabled: boolean;
|
|
1081
1156
|
status: "unchanged";
|
|
1082
|
-
} | {
|
|
1083
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1084
|
-
retryable: false;
|
|
1085
|
-
status: "conflict";
|
|
1086
|
-
} | {
|
|
1087
|
-
reason: "policy_invalid";
|
|
1088
|
-
retryable: false;
|
|
1089
|
-
status: "rejected";
|
|
1090
1157
|
} | {
|
|
1091
1158
|
reason: "provider_pending";
|
|
1092
1159
|
retryable: true;
|
|
@@ -1097,6 +1164,14 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1097
1164
|
payload: import("convex/values").VString<string, "required">;
|
|
1098
1165
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
1099
1166
|
result: import("convex/values").VUnion<{
|
|
1167
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1168
|
+
retryable: false;
|
|
1169
|
+
status: "conflict";
|
|
1170
|
+
} | {
|
|
1171
|
+
reason: "policy_invalid";
|
|
1172
|
+
retryable: false;
|
|
1173
|
+
status: "rejected";
|
|
1174
|
+
} | {
|
|
1100
1175
|
operation: {
|
|
1101
1176
|
accountId: string;
|
|
1102
1177
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -1107,14 +1182,6 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
1107
1182
|
} | {
|
|
1108
1183
|
enabled: boolean;
|
|
1109
1184
|
status: "unchanged";
|
|
1110
|
-
} | {
|
|
1111
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1112
|
-
retryable: false;
|
|
1113
|
-
status: "conflict";
|
|
1114
|
-
} | {
|
|
1115
|
-
reason: "policy_invalid";
|
|
1116
|
-
retryable: false;
|
|
1117
|
-
status: "rejected";
|
|
1118
1185
|
} | {
|
|
1119
1186
|
reason: "provider_pending";
|
|
1120
1187
|
retryable: true;
|
|
@@ -3416,6 +3483,73 @@ export declare function setup(amounts?: number[], currency?: string): Promise<{
|
|
|
3416
3483
|
}>;
|
|
3417
3484
|
export declare function historical(currency?: string): Promise<{
|
|
3418
3485
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
3486
|
+
usageEvents: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3487
|
+
acceptedAt: number;
|
|
3488
|
+
identity: string;
|
|
3489
|
+
occurredAt: number;
|
|
3490
|
+
recordJson: string;
|
|
3491
|
+
reservationId?: import("convex/values").GenericId<"usageReservations"> | undefined;
|
|
3492
|
+
scopeKey: string;
|
|
3493
|
+
subscriptionJson: string;
|
|
3494
|
+
}, {
|
|
3495
|
+
reservationId: import("convex/values").VId<import("convex/values").GenericId<"usageReservations"> | undefined, "optional">;
|
|
3496
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
3497
|
+
identity: import("convex/values").VString<string, "required">;
|
|
3498
|
+
recordJson: import("convex/values").VString<string, "required">;
|
|
3499
|
+
subscriptionJson: import("convex/values").VString<string, "required">;
|
|
3500
|
+
occurredAt: import("convex/values").VFloat64<number, "required">;
|
|
3501
|
+
acceptedAt: import("convex/values").VFloat64<number, "required">;
|
|
3502
|
+
}, "required", "acceptedAt" | "identity" | "occurredAt" | "recordJson" | "reservationId" | "scopeKey" | "subscriptionJson">, {
|
|
3503
|
+
by_identity: ["identity", "_creationTime"];
|
|
3504
|
+
by_scope_time: ["scopeKey", "occurredAt", "_creationTime"];
|
|
3505
|
+
}, {}, {}>;
|
|
3506
|
+
usageOutbox: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3507
|
+
attempts: number;
|
|
3508
|
+
dispatch?: string | undefined;
|
|
3509
|
+
eventId: import("convex/values").GenericId<"usageEvents">;
|
|
3510
|
+
nextAttemptAt: number;
|
|
3511
|
+
providerIdentifier: string;
|
|
3512
|
+
scopeKey: string;
|
|
3513
|
+
state: "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown";
|
|
3514
|
+
}, {
|
|
3515
|
+
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents">, "required">;
|
|
3516
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
3517
|
+
state: import("convex/values").VUnion<"held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"sending", "required">, import("convex/values").VLiteral<"provider_accepted", "required">, import("convex/values").VLiteral<"rejected", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"held", "required">], "required", never>;
|
|
3518
|
+
attempts: import("convex/values").VFloat64<number, "required">;
|
|
3519
|
+
nextAttemptAt: import("convex/values").VFloat64<number, "required">;
|
|
3520
|
+
providerIdentifier: import("convex/values").VString<string, "required">;
|
|
3521
|
+
dispatch: import("convex/values").VString<string | undefined, "optional">;
|
|
3522
|
+
}, "required", "attempts" | "dispatch" | "eventId" | "nextAttemptAt" | "providerIdentifier" | "scopeKey" | "state">, {
|
|
3523
|
+
by_event: ["eventId", "_creationTime"];
|
|
3524
|
+
by_scope_state: ["scopeKey", "state", "_creationTime"];
|
|
3525
|
+
by_state_next: ["state", "nextAttemptAt", "_creationTime"];
|
|
3526
|
+
}, {}, {}>;
|
|
3527
|
+
usageScopeCounters: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3528
|
+
count: number;
|
|
3529
|
+
scopeKey: string;
|
|
3530
|
+
}, {
|
|
3531
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
3532
|
+
count: import("convex/values").VFloat64<number, "required">;
|
|
3533
|
+
}, "required", "count" | "scopeKey">, {
|
|
3534
|
+
by_scope: ["scopeKey", "_creationTime"];
|
|
3535
|
+
}, {}, {}>;
|
|
3536
|
+
usageReservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3537
|
+
eventId?: import("convex/values").GenericId<"usageEvents"> | undefined;
|
|
3538
|
+
planJson: string;
|
|
3539
|
+
scaledQuantity: string;
|
|
3540
|
+
scopeKey: string;
|
|
3541
|
+
sourceEventId: string;
|
|
3542
|
+
state: "committed" | "released" | "reserved";
|
|
3543
|
+
}, {
|
|
3544
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
3545
|
+
sourceEventId: import("convex/values").VString<string, "required">;
|
|
3546
|
+
planJson: import("convex/values").VString<string, "required">;
|
|
3547
|
+
scaledQuantity: import("convex/values").VString<string, "required">;
|
|
3548
|
+
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>;
|
|
3549
|
+
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents"> | undefined, "optional">;
|
|
3550
|
+
}, "required", "eventId" | "planJson" | "scaledQuantity" | "scopeKey" | "sourceEventId" | "state">, {
|
|
3551
|
+
by_scope_source: ["scopeKey", "sourceEventId", "_creationTime"];
|
|
3552
|
+
}, {}, {}>;
|
|
3419
3553
|
refundSyncClaims: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3420
3554
|
acceptedAt?: number | undefined;
|
|
3421
3555
|
acceptedContext?: string | undefined;
|
|
@@ -4476,6 +4610,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
4476
4610
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
4477
4611
|
requestKey: string;
|
|
4478
4612
|
result?: {
|
|
4613
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
4614
|
+
retryable: false;
|
|
4615
|
+
status: "conflict";
|
|
4616
|
+
} | {
|
|
4617
|
+
reason: "policy_invalid";
|
|
4618
|
+
retryable: false;
|
|
4619
|
+
status: "rejected";
|
|
4620
|
+
} | {
|
|
4479
4621
|
operation: {
|
|
4480
4622
|
accountId: string;
|
|
4481
4623
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -4486,14 +4628,6 @@ export declare function historical(currency?: string): Promise<{
|
|
|
4486
4628
|
} | {
|
|
4487
4629
|
enabled: boolean;
|
|
4488
4630
|
status: "unchanged";
|
|
4489
|
-
} | {
|
|
4490
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
4491
|
-
retryable: false;
|
|
4492
|
-
status: "conflict";
|
|
4493
|
-
} | {
|
|
4494
|
-
reason: "policy_invalid";
|
|
4495
|
-
retryable: false;
|
|
4496
|
-
status: "rejected";
|
|
4497
4631
|
} | {
|
|
4498
4632
|
reason: "provider_pending";
|
|
4499
4633
|
retryable: true;
|
|
@@ -4504,6 +4638,14 @@ export declare function historical(currency?: string): Promise<{
|
|
|
4504
4638
|
payload: import("convex/values").VString<string, "required">;
|
|
4505
4639
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
4506
4640
|
result: import("convex/values").VUnion<{
|
|
4641
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
4642
|
+
retryable: false;
|
|
4643
|
+
status: "conflict";
|
|
4644
|
+
} | {
|
|
4645
|
+
reason: "policy_invalid";
|
|
4646
|
+
retryable: false;
|
|
4647
|
+
status: "rejected";
|
|
4648
|
+
} | {
|
|
4507
4649
|
operation: {
|
|
4508
4650
|
accountId: string;
|
|
4509
4651
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -4514,14 +4656,6 @@ export declare function historical(currency?: string): Promise<{
|
|
|
4514
4656
|
} | {
|
|
4515
4657
|
enabled: boolean;
|
|
4516
4658
|
status: "unchanged";
|
|
4517
|
-
} | {
|
|
4518
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
4519
|
-
retryable: false;
|
|
4520
|
-
status: "conflict";
|
|
4521
|
-
} | {
|
|
4522
|
-
reason: "policy_invalid";
|
|
4523
|
-
retryable: false;
|
|
4524
|
-
status: "rejected";
|
|
4525
4659
|
} | {
|
|
4526
4660
|
reason: "provider_pending";
|
|
4527
4661
|
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,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@@ 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
|
+
usageEvents: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
14
|
+
acceptedAt: number;
|
|
15
|
+
identity: string;
|
|
16
|
+
occurredAt: number;
|
|
17
|
+
recordJson: string;
|
|
18
|
+
reservationId?: import("convex/values").GenericId<"usageReservations"> | undefined;
|
|
19
|
+
scopeKey: string;
|
|
20
|
+
subscriptionJson: string;
|
|
21
|
+
}, {
|
|
22
|
+
reservationId: import("convex/values").VId<import("convex/values").GenericId<"usageReservations"> | undefined, "optional">;
|
|
23
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
24
|
+
identity: import("convex/values").VString<string, "required">;
|
|
25
|
+
recordJson: import("convex/values").VString<string, "required">;
|
|
26
|
+
subscriptionJson: import("convex/values").VString<string, "required">;
|
|
27
|
+
occurredAt: import("convex/values").VFloat64<number, "required">;
|
|
28
|
+
acceptedAt: import("convex/values").VFloat64<number, "required">;
|
|
29
|
+
}, "required", "acceptedAt" | "identity" | "occurredAt" | "recordJson" | "reservationId" | "scopeKey" | "subscriptionJson">, {
|
|
30
|
+
by_identity: ["identity", "_creationTime"];
|
|
31
|
+
by_scope_time: ["scopeKey", "occurredAt", "_creationTime"];
|
|
32
|
+
}, {}, {}>;
|
|
33
|
+
usageOutbox: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
34
|
+
attempts: number;
|
|
35
|
+
dispatch?: string | undefined;
|
|
36
|
+
eventId: import("convex/values").GenericId<"usageEvents">;
|
|
37
|
+
nextAttemptAt: number;
|
|
38
|
+
providerIdentifier: string;
|
|
39
|
+
scopeKey: string;
|
|
40
|
+
state: "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown";
|
|
41
|
+
}, {
|
|
42
|
+
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents">, "required">;
|
|
43
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
44
|
+
state: import("convex/values").VUnion<"held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"sending", "required">, import("convex/values").VLiteral<"provider_accepted", "required">, import("convex/values").VLiteral<"rejected", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"held", "required">], "required", never>;
|
|
45
|
+
attempts: import("convex/values").VFloat64<number, "required">;
|
|
46
|
+
nextAttemptAt: import("convex/values").VFloat64<number, "required">;
|
|
47
|
+
providerIdentifier: import("convex/values").VString<string, "required">;
|
|
48
|
+
dispatch: import("convex/values").VString<string | undefined, "optional">;
|
|
49
|
+
}, "required", "attempts" | "dispatch" | "eventId" | "nextAttemptAt" | "providerIdentifier" | "scopeKey" | "state">, {
|
|
50
|
+
by_event: ["eventId", "_creationTime"];
|
|
51
|
+
by_scope_state: ["scopeKey", "state", "_creationTime"];
|
|
52
|
+
by_state_next: ["state", "nextAttemptAt", "_creationTime"];
|
|
53
|
+
}, {}, {}>;
|
|
54
|
+
usageScopeCounters: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
55
|
+
count: number;
|
|
56
|
+
scopeKey: string;
|
|
57
|
+
}, {
|
|
58
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
59
|
+
count: import("convex/values").VFloat64<number, "required">;
|
|
60
|
+
}, "required", "count" | "scopeKey">, {
|
|
61
|
+
by_scope: ["scopeKey", "_creationTime"];
|
|
62
|
+
}, {}, {}>;
|
|
63
|
+
usageReservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
64
|
+
eventId?: import("convex/values").GenericId<"usageEvents"> | undefined;
|
|
65
|
+
planJson: string;
|
|
66
|
+
scaledQuantity: string;
|
|
67
|
+
scopeKey: string;
|
|
68
|
+
sourceEventId: string;
|
|
69
|
+
state: "committed" | "released" | "reserved";
|
|
70
|
+
}, {
|
|
71
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
72
|
+
sourceEventId: import("convex/values").VString<string, "required">;
|
|
73
|
+
planJson: import("convex/values").VString<string, "required">;
|
|
74
|
+
scaledQuantity: import("convex/values").VString<string, "required">;
|
|
75
|
+
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>;
|
|
76
|
+
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents"> | undefined, "optional">;
|
|
77
|
+
}, "required", "eventId" | "planJson" | "scaledQuantity" | "scopeKey" | "sourceEventId" | "state">, {
|
|
78
|
+
by_scope_source: ["scopeKey", "sourceEventId", "_creationTime"];
|
|
79
|
+
}, {}, {}>;
|
|
13
80
|
refundSyncClaims: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
14
81
|
acceptedAt?: number | undefined;
|
|
15
82
|
acceptedContext?: string | undefined;
|
|
@@ -1070,14 +1137,6 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1070
1137
|
preparationId: import("convex/values").GenericId<"balanceFundingPreparations">;
|
|
1071
1138
|
requestKey: string;
|
|
1072
1139
|
result?: {
|
|
1073
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1074
|
-
retryable: false;
|
|
1075
|
-
status: "conflict";
|
|
1076
|
-
} | {
|
|
1077
|
-
reason: "policy_invalid";
|
|
1078
|
-
retryable: false;
|
|
1079
|
-
status: "rejected";
|
|
1080
|
-
} | {
|
|
1081
1140
|
operation: {
|
|
1082
1141
|
accountId: string;
|
|
1083
1142
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -1088,6 +1147,14 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1088
1147
|
} | {
|
|
1089
1148
|
enabled: boolean;
|
|
1090
1149
|
status: "unchanged";
|
|
1150
|
+
} | {
|
|
1151
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1152
|
+
retryable: false;
|
|
1153
|
+
status: "conflict";
|
|
1154
|
+
} | {
|
|
1155
|
+
reason: "policy_invalid";
|
|
1156
|
+
retryable: false;
|
|
1157
|
+
status: "rejected";
|
|
1091
1158
|
} | {
|
|
1092
1159
|
reason: "provider_pending";
|
|
1093
1160
|
retryable: true;
|
|
@@ -1098,14 +1165,6 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1098
1165
|
payload: import("convex/values").VString<string, "required">;
|
|
1099
1166
|
preparationId: import("convex/values").VId<import("convex/values").GenericId<"balanceFundingPreparations">, "required">;
|
|
1100
1167
|
result: import("convex/values").VUnion<{
|
|
1101
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1102
|
-
retryable: false;
|
|
1103
|
-
status: "conflict";
|
|
1104
|
-
} | {
|
|
1105
|
-
reason: "policy_invalid";
|
|
1106
|
-
retryable: false;
|
|
1107
|
-
status: "rejected";
|
|
1108
|
-
} | {
|
|
1109
1168
|
operation: {
|
|
1110
1169
|
accountId: string;
|
|
1111
1170
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -1116,6 +1175,14 @@ export declare function setup(amounts?: number[]): Promise<{
|
|
|
1116
1175
|
} | {
|
|
1117
1176
|
enabled: boolean;
|
|
1118
1177
|
status: "unchanged";
|
|
1178
|
+
} | {
|
|
1179
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
1180
|
+
retryable: false;
|
|
1181
|
+
status: "conflict";
|
|
1182
|
+
} | {
|
|
1183
|
+
reason: "policy_invalid";
|
|
1184
|
+
retryable: false;
|
|
1185
|
+
status: "rejected";
|
|
1119
1186
|
} | {
|
|
1120
1187
|
reason: "provider_pending";
|
|
1121
1188
|
retryable: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutExecutionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutExecutionTestHelpers.ts"],"names":[],"mappings":"AAIA,OAAO,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