@fantastic.dev/better-stripe 0.58.0 → 0.59.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 +1 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +238 -18
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +119 -9
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +238 -18
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +119 -9
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/usage/allowanceClient.d.ts +1 -1
- 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/correctionClient.d.ts +33 -0
- package/dist/client/usage/correctionClient.d.ts.map +1 -0
- package/dist/client/usage/correctionClient.js +27 -0
- package/dist/client/usage/correctionClient.js.map +1 -0
- package/dist/client/usage/correctionEligibility.d.ts +4 -0
- package/dist/client/usage/correctionEligibility.d.ts.map +1 -0
- package/dist/client/usage/correctionEligibility.js +7 -0
- package/dist/client/usage/correctionEligibility.js.map +1 -0
- package/dist/client/usage/correctionInvoice.d.ts +9 -0
- package/dist/client/usage/correctionInvoice.d.ts.map +1 -0
- package/dist/client/usage/correctionInvoice.js +218 -0
- package/dist/client/usage/correctionInvoice.js.map +1 -0
- package/dist/client/usage/correctionInvoiceProof.d.ts +29 -0
- package/dist/client/usage/correctionInvoiceProof.d.ts.map +1 -0
- package/dist/client/usage/correctionInvoiceProof.js +41 -0
- package/dist/client/usage/correctionInvoiceProof.js.map +1 -0
- package/dist/client/usage/correctionProofs.d.ts +36 -0
- package/dist/client/usage/correctionProofs.d.ts.map +1 -0
- package/dist/client/usage/correctionProofs.js +41 -0
- package/dist/client/usage/correctionProofs.js.map +1 -0
- package/dist/client/usage/correctionProvider.d.ts +6 -0
- package/dist/client/usage/correctionProvider.d.ts.map +1 -0
- package/dist/client/usage/correctionProvider.js +243 -0
- package/dist/client/usage/correctionProvider.js.map +1 -0
- package/dist/client/usage/correctionRead.d.ts +27 -0
- package/dist/client/usage/correctionRead.d.ts.map +1 -0
- package/dist/client/usage/correctionRead.js +36 -0
- package/dist/client/usage/correctionRead.js.map +1 -0
- package/dist/client/usage/correctionTerms.d.ts +64 -0
- package/dist/client/usage/correctionTerms.d.ts.map +1 -0
- package/dist/client/usage/correctionTerms.js +65 -0
- package/dist/client/usage/correctionTerms.js.map +1 -0
- package/dist/client/usage/correctionTransport.fixtures.d.ts +37 -0
- package/dist/client/usage/correctionTransport.fixtures.d.ts.map +1 -0
- package/dist/client/usage/correctionTransport.fixtures.js +322 -0
- package/dist/client/usage/correctionTransport.fixtures.js.map +1 -0
- package/dist/client/usage/creditClient.d.ts +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/observationClient.d.ts +20 -0
- package/dist/client/usage/observationClient.d.ts.map +1 -1
- package/dist/client/usage/observationClient.js +20 -6
- package/dist/client/usage/observationClient.js.map +1 -1
- package/dist/client/usage/records.d.ts +1 -1
- package/dist/client/usage/records.d.ts.map +1 -1
- package/dist/client/usage/records.js.map +1 -1
- package/dist/client/usage/summary.d.ts +3 -0
- package/dist/client/usage/summary.d.ts.map +1 -1
- package/dist/client/usage/summary.js +9 -4
- package/dist/client/usage/summary.js.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 +12 -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 +255 -14
- 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 +13 -0
- package/dist/component/accountClosure/mutations.js.map +1 -1
- package/dist/component/balanceFunding/mutations.d.ts +27 -27
- package/dist/component/balanceFunding/stateHandlers.d.ts +8 -8
- package/dist/component/earnings/triggers.d.ts +212 -26
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/schema.d.ts +119 -9
- package/dist/component/schema.js +4 -0
- package/dist/component/schema.js.map +1 -1
- package/dist/component/usage/queries.d.ts +2 -2
- package/dist/component/usage/schema.d.ts +18 -13
- 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/queries.d.ts +1 -1
- package/dist/component/usageAllowance/queries.d.ts.map +1 -1
- package/dist/component/usageAllowance/queries.js +10 -1
- package/dist/component/usageAllowance/queries.js.map +1 -1
- package/dist/component/usageAllowance/schema.d.ts +5 -5
- package/dist/component/usageAllowance/schema.d.ts.map +1 -1
- package/dist/component/usageAllowance/schema.js +1 -1
- package/dist/component/usageAllowance/schema.js.map +1 -1
- package/dist/component/usageCorrections/accounting.d.ts +5 -0
- package/dist/component/usageCorrections/accounting.d.ts.map +1 -0
- package/dist/component/usageCorrections/accounting.js +55 -0
- package/dist/component/usageCorrections/accounting.js.map +1 -0
- package/dist/component/usageCorrections/cancellation.d.ts +6 -0
- package/dist/component/usageCorrections/cancellation.d.ts.map +1 -0
- package/dist/component/usageCorrections/cancellation.js +29 -0
- package/dist/component/usageCorrections/cancellation.js.map +1 -0
- package/dist/component/usageCorrections/helpers.d.ts +60 -0
- package/dist/component/usageCorrections/helpers.d.ts.map +1 -0
- package/dist/component/usageCorrections/helpers.js +52 -0
- package/dist/component/usageCorrections/helpers.js.map +1 -0
- package/dist/component/usageCorrections/invoice.d.ts +38 -0
- package/dist/component/usageCorrections/invoice.d.ts.map +1 -0
- package/dist/component/usageCorrections/invoice.js +82 -0
- package/dist/component/usageCorrections/invoice.js.map +1 -0
- package/dist/component/usageCorrections/mutations.d.ts +121 -0
- package/dist/component/usageCorrections/mutations.d.ts.map +1 -0
- package/dist/component/usageCorrections/mutations.js +256 -0
- package/dist/component/usageCorrections/mutations.js.map +1 -0
- package/dist/component/usageCorrections/queries.d.ts +115 -0
- package/dist/component/usageCorrections/queries.d.ts.map +1 -0
- package/dist/component/usageCorrections/queries.js +84 -0
- package/dist/component/usageCorrections/queries.js.map +1 -0
- package/dist/component/usageCorrections/schema.d.ts +248 -0
- package/dist/component/usageCorrections/schema.d.ts.map +1 -0
- package/dist/component/usageCorrections/schema.js +74 -0
- package/dist/component/usageCorrections/schema.js.map +1 -0
- package/dist/component/usageCredits/queries.d.ts +1 -1
- package/dist/component/usageCredits/queries.d.ts.map +1 -1
- package/dist/component/usageCredits/queries.js +6 -0
- package/dist/component/usageCredits/queries.js.map +1 -1
- package/dist/component/usageCredits/schema.d.ts +5 -5
- package/dist/component/usageCredits/schema.d.ts.map +1 -1
- package/dist/component/usageCredits/schema.js +1 -1
- package/dist/component/usageCredits/schema.js.map +1 -1
- package/dist/component/usageDelivery/fields.d.ts +2 -2
- package/dist/component/usageDelivery/fields.d.ts.map +1 -1
- package/dist/component/usageDelivery/fields.js +1 -1
- package/dist/component/usageDelivery/fields.js.map +1 -1
- package/dist/component/usageDelivery/helpers.d.ts +7 -6
- package/dist/component/usageDelivery/helpers.d.ts.map +1 -1
- package/dist/component/usageDelivery/mutations.d.ts +6 -6
- package/dist/component/usageDelivery/mutations.d.ts.map +1 -1
- package/dist/component/usageDelivery/mutations.js +9 -1
- package/dist/component/usageDelivery/mutations.js.map +1 -1
- package/dist/component/usageDelivery/queries.d.ts +8 -6
- package/dist/component/usageDelivery/queries.d.ts.map +1 -1
- package/dist/component/usageDelivery/schema.d.ts +4 -4
- package/dist/component/usageDelivery/steps.d.ts +2 -2
- package/dist/component/usageDelivery/steps.js +1 -1
- package/dist/component/usageDelivery/steps.js.map +1 -1
- package/dist/component/usageObservations/queries.d.ts.map +1 -1
- package/dist/component/usageObservations/queries.js +4 -2
- package/dist/component/usageObservations/queries.js.map +1 -1
- package/dist/component/usageSubscriptions/retirement.d.ts.map +1 -1
- package/dist/component/usageSubscriptions/retirement.js +24 -2
- package/dist/component/usageSubscriptions/retirement.js.map +1 -1
- package/docs/README.md +2 -0
- package/docs/usage-corrections.md +249 -0
- package/docs/usage-limits.md +1 -1
- package/package.json +2 -1
- package/src/client/usage/client.ts +2 -2
- package/src/client/usage/correctionClient.test.ts +153 -0
- package/src/client/usage/correctionClient.ts +62 -0
- package/src/client/usage/correctionCredits.test.ts +156 -0
- package/src/client/usage/correctionEligibility.ts +14 -0
- package/src/client/usage/correctionInvoice.test.ts +127 -0
- package/src/client/usage/correctionInvoice.ts +269 -0
- package/src/client/usage/correctionInvoiceProof.ts +40 -0
- package/src/client/usage/correctionProofs.ts +40 -0
- package/src/client/usage/correctionProvider.ts +326 -0
- package/src/client/usage/correctionRead.ts +73 -0
- package/src/client/usage/correctionRecovery.test.ts +113 -0
- package/src/client/usage/correctionTerms.ts +98 -0
- package/src/client/usage/correctionTransport.fixtures.ts +372 -0
- package/src/client/usage/index.ts +11 -0
- package/src/client/usage/observationClient.ts +20 -6
- package/src/client/usage/records.ts +7 -1
- package/src/client/usage/summary.ts +12 -4
- package/src/client/usageExports.ts +11 -0
- package/src/component/_generated/api.ts +12 -0
- package/src/component/_generated/component.ts +330 -2
- package/src/component/accountClosure/mutations.ts +17 -0
- package/src/component/schema.ts +8 -0
- package/src/component/usage/schema.ts +2 -0
- package/src/component/usageAllowance/queries.ts +8 -1
- package/src/component/usageAllowance/schema.ts +1 -0
- package/src/component/usageCorrections/accounting.ts +79 -0
- package/src/component/usageCorrections/cancellation.ts +32 -0
- package/src/component/usageCorrections/corrections.test.ts +389 -0
- package/src/component/usageCorrections/helpers.ts +57 -0
- package/src/component/usageCorrections/invoice.ts +103 -0
- package/src/component/usageCorrections/mutations.ts +278 -0
- package/src/component/usageCorrections/queries.ts +94 -0
- package/src/component/usageCorrections/schema.ts +90 -0
- package/src/component/usageCredits/queries.ts +4 -0
- package/src/component/usageCredits/schema.ts +1 -0
- package/src/component/usageDelivery/fields.ts +1 -0
- package/src/component/usageDelivery/mutations.ts +8 -3
- package/src/component/usageDelivery/steps.ts +1 -1
- package/src/component/usageObservations/queries.ts +5 -2
- package/src/component/usageSubscriptions/retirement.ts +31 -2
|
@@ -1,4 +1,112 @@
|
|
|
1
1
|
declare const _default: import("convex/server").SchemaDefinition<{
|
|
2
|
+
usageCorrectionClaims: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3
|
+
key: string;
|
|
4
|
+
operationKey: string;
|
|
5
|
+
proofJson: string;
|
|
6
|
+
}, {
|
|
7
|
+
key: import("convex/values").VString<string, "required">;
|
|
8
|
+
operationKey: import("convex/values").VString<string, "required">;
|
|
9
|
+
proofJson: import("convex/values").VString<string, "required">;
|
|
10
|
+
}, "required", "key" | "operationKey" | "proofJson">, {
|
|
11
|
+
by_key: ["key", "_creationTime"];
|
|
12
|
+
}, {}, {}>;
|
|
13
|
+
usageCorrections: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
14
|
+
adjustmentJson?: string | undefined;
|
|
15
|
+
attempt: number;
|
|
16
|
+
attemptedAt?: number | undefined;
|
|
17
|
+
cashConsequence: "none" | "operator_resolution_required" | "verified_external_adjustment";
|
|
18
|
+
correctionId: string;
|
|
19
|
+
creditNoteId?: string | undefined;
|
|
20
|
+
customerAccount?: string | undefined;
|
|
21
|
+
eventId: import("convex/values").GenericId<"usageEvents">;
|
|
22
|
+
firstAttemptAt: number;
|
|
23
|
+
historyCount: number;
|
|
24
|
+
inputJson: string;
|
|
25
|
+
invoiceId?: string | undefined;
|
|
26
|
+
key: string;
|
|
27
|
+
leaseUntil?: number | undefined;
|
|
28
|
+
nativeAdjustmentId?: string | undefined;
|
|
29
|
+
nativeCreditNoteStatus?: "issued" | "void" | undefined;
|
|
30
|
+
nativeStatus?: "complete" | "pending" | undefined;
|
|
31
|
+
observedAt?: number | undefined;
|
|
32
|
+
quantity: string;
|
|
33
|
+
reason: string;
|
|
34
|
+
recordJson: string;
|
|
35
|
+
refundId?: string | undefined;
|
|
36
|
+
resolution?: "event_cancellation" | "invoice_credit" | undefined;
|
|
37
|
+
restoredQuantity: string;
|
|
38
|
+
scaledQuantity: string;
|
|
39
|
+
scopeKey: string;
|
|
40
|
+
state: "confirmed" | "held" | "invoice_adjustment_required" | "provider_accepted" | "requested" | "unsupported";
|
|
41
|
+
stripeAccountId?: string | undefined;
|
|
42
|
+
subscriptionJson: string;
|
|
43
|
+
}, {
|
|
44
|
+
stripeAccountId: import("convex/values").VString<string | undefined, "optional">;
|
|
45
|
+
customerAccount: import("convex/values").VString<string | undefined, "optional">;
|
|
46
|
+
observedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
47
|
+
nativeCreditNoteStatus: import("convex/values").VUnion<"issued" | "void" | undefined, [import("convex/values").VLiteral<"issued", "required">, import("convex/values").VLiteral<"void", "required">], "optional", never>;
|
|
48
|
+
resolution: import("convex/values").VUnion<"event_cancellation" | "invoice_credit" | undefined, [import("convex/values").VLiteral<"event_cancellation", "required">, import("convex/values").VLiteral<"invoice_credit", "required">], "optional", never>;
|
|
49
|
+
adjustmentJson: import("convex/values").VString<string | undefined, "optional">;
|
|
50
|
+
key: import("convex/values").VString<string, "required">;
|
|
51
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
52
|
+
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents">, "required">;
|
|
53
|
+
correctionId: import("convex/values").VString<string, "required">;
|
|
54
|
+
inputJson: import("convex/values").VString<string, "required">;
|
|
55
|
+
recordJson: import("convex/values").VString<string, "required">;
|
|
56
|
+
subscriptionJson: import("convex/values").VString<string, "required">;
|
|
57
|
+
quantity: import("convex/values").VString<string, "required">;
|
|
58
|
+
scaledQuantity: import("convex/values").VString<string, "required">;
|
|
59
|
+
state: import("convex/values").VUnion<"confirmed" | "held" | "invoice_adjustment_required" | "provider_accepted" | "requested" | "unsupported", [import("convex/values").VLiteral<"requested", "required">, import("convex/values").VLiteral<"provider_accepted", "required">, import("convex/values").VLiteral<"confirmed", "required">, import("convex/values").VLiteral<"held", "required">, import("convex/values").VLiteral<"unsupported", "required">, import("convex/values").VLiteral<"invoice_adjustment_required", "required">], "required", never>;
|
|
60
|
+
reason: import("convex/values").VString<string, "required">;
|
|
61
|
+
firstAttemptAt: import("convex/values").VFloat64<number, "required">;
|
|
62
|
+
attemptedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
63
|
+
leaseUntil: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
64
|
+
attempt: import("convex/values").VFloat64<number, "required">;
|
|
65
|
+
nativeAdjustmentId: import("convex/values").VString<string | undefined, "optional">;
|
|
66
|
+
nativeStatus: import("convex/values").VUnion<"complete" | "pending" | undefined, [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"complete", "required">], "optional", never>;
|
|
67
|
+
invoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
68
|
+
creditNoteId: import("convex/values").VString<string | undefined, "optional">;
|
|
69
|
+
refundId: import("convex/values").VString<string | undefined, "optional">;
|
|
70
|
+
cashConsequence: import("convex/values").VUnion<"none" | "operator_resolution_required" | "verified_external_adjustment", [import("convex/values").VLiteral<"none", "required">, import("convex/values").VLiteral<"operator_resolution_required", "required">, import("convex/values").VLiteral<"verified_external_adjustment", "required">], "required", never>;
|
|
71
|
+
restoredQuantity: import("convex/values").VString<string, "required">;
|
|
72
|
+
historyCount: import("convex/values").VFloat64<number, "required">;
|
|
73
|
+
}, "required", "adjustmentJson" | "attempt" | "attemptedAt" | "cashConsequence" | "correctionId" | "creditNoteId" | "customerAccount" | "eventId" | "firstAttemptAt" | "historyCount" | "inputJson" | "invoiceId" | "key" | "leaseUntil" | "nativeAdjustmentId" | "nativeCreditNoteStatus" | "nativeStatus" | "observedAt" | "quantity" | "reason" | "recordJson" | "refundId" | "resolution" | "restoredQuantity" | "scaledQuantity" | "scopeKey" | "state" | "stripeAccountId" | "subscriptionJson">, {
|
|
74
|
+
by_event: ["eventId", "_creationTime"];
|
|
75
|
+
by_key: ["key", "_creationTime"];
|
|
76
|
+
by_payer_state: ["customerAccount", "state", "_creationTime"];
|
|
77
|
+
by_realm_state: ["stripeAccountId", "state", "_creationTime"];
|
|
78
|
+
by_scope: ["scopeKey", "_creationTime"];
|
|
79
|
+
by_scope_state: ["scopeKey", "state", "_creationTime"];
|
|
80
|
+
}, {}, {}>;
|
|
81
|
+
usageCorrectionHistory: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
82
|
+
at: number;
|
|
83
|
+
eventId: import("convex/values").GenericId<"usageEvents">;
|
|
84
|
+
evidenceJson: string;
|
|
85
|
+
key: string;
|
|
86
|
+
occurredAt?: number | undefined;
|
|
87
|
+
reason: string;
|
|
88
|
+
recordJson: string;
|
|
89
|
+
scopeKey: string;
|
|
90
|
+
sequence: number;
|
|
91
|
+
state: "confirmed" | "held" | "invoice_adjustment_required" | "provider_accepted" | "requested" | "unsupported";
|
|
92
|
+
subscriptionJson: string;
|
|
93
|
+
}, {
|
|
94
|
+
key: import("convex/values").VString<string, "required">;
|
|
95
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
96
|
+
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents">, "required">;
|
|
97
|
+
sequence: import("convex/values").VFloat64<number, "required">;
|
|
98
|
+
state: import("convex/values").VUnion<"confirmed" | "held" | "invoice_adjustment_required" | "provider_accepted" | "requested" | "unsupported", [import("convex/values").VLiteral<"requested", "required">, import("convex/values").VLiteral<"provider_accepted", "required">, import("convex/values").VLiteral<"confirmed", "required">, import("convex/values").VLiteral<"held", "required">, import("convex/values").VLiteral<"unsupported", "required">, import("convex/values").VLiteral<"invoice_adjustment_required", "required">], "required", never>;
|
|
99
|
+
reason: import("convex/values").VString<string, "required">;
|
|
100
|
+
recordJson: import("convex/values").VString<string, "required">;
|
|
101
|
+
subscriptionJson: import("convex/values").VString<string, "required">;
|
|
102
|
+
evidenceJson: import("convex/values").VString<string, "required">;
|
|
103
|
+
occurredAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
104
|
+
at: import("convex/values").VFloat64<number, "required">;
|
|
105
|
+
}, "required", "at" | "eventId" | "evidenceJson" | "key" | "occurredAt" | "reason" | "recordJson" | "scopeKey" | "sequence" | "state" | "subscriptionJson">, {
|
|
106
|
+
by_event: ["eventId", "_creationTime"];
|
|
107
|
+
by_scope_occurrence: ["scopeKey", "occurredAt", "_creationTime"];
|
|
108
|
+
by_scope_time: ["scopeKey", "at", "_creationTime"];
|
|
109
|
+
}, {}, {}>;
|
|
2
110
|
usageAllowancePolicies: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3
111
|
bindingJson: string;
|
|
4
112
|
consumed: string;
|
|
@@ -32,10 +140,10 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
32
140
|
at: number;
|
|
33
141
|
evidenceJson: string;
|
|
34
142
|
key: string;
|
|
35
|
-
kind: "commit" | "policy" | "release" | "reservation";
|
|
143
|
+
kind: "commit" | "correction" | "policy" | "release" | "reservation";
|
|
36
144
|
}, {
|
|
37
145
|
key: import("convex/values").VString<string, "required">;
|
|
38
|
-
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>;
|
|
146
|
+
kind: import("convex/values").VUnion<"commit" | "correction" | "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">, import("convex/values").VLiteral<"correction", "required">], "required", never>;
|
|
39
147
|
evidenceJson: import("convex/values").VString<string, "required">;
|
|
40
148
|
at: import("convex/values").VFloat64<number, "required">;
|
|
41
149
|
}, "required", "at" | "evidenceJson" | "key" | "kind">, {
|
|
@@ -242,6 +350,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
242
350
|
}, {}, {}>;
|
|
243
351
|
usageOutbox: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
244
352
|
attempts: number;
|
|
353
|
+
correctionKey?: string | undefined;
|
|
245
354
|
definitionVersion?: 1 | undefined;
|
|
246
355
|
dispatch?: string | undefined;
|
|
247
356
|
eventId: import("convex/values").GenericId<"usageEvents">;
|
|
@@ -252,13 +361,13 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
252
361
|
nextAttemptAt: number;
|
|
253
362
|
provider?: string | undefined;
|
|
254
363
|
providerIdentifier: string;
|
|
255
|
-
reason?: "administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined;
|
|
364
|
+
reason?: "administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | "usage_canceled" | undefined;
|
|
256
365
|
receipt?: {
|
|
257
366
|
created: number;
|
|
258
367
|
identifier: string;
|
|
259
368
|
} | undefined;
|
|
260
369
|
scopeKey: string;
|
|
261
|
-
state: "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown";
|
|
370
|
+
state: "canceled" | "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown";
|
|
262
371
|
workflowId?: string | undefined;
|
|
263
372
|
}, {
|
|
264
373
|
historySequence: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
@@ -268,7 +377,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
268
377
|
firstSendAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
269
378
|
leaseUntil: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
270
379
|
held: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
271
|
-
reason: import("convex/values").VUnion<"administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined, [import("convex/values").VLiteral<"billing_period_closed", "required">, import("convex/values").VLiteral<"rate_limited", "required">, import("convex/values").VLiteral<"provider_unavailable", "required">, import("convex/values").VLiteral<"provider_outcome_unknown", "required">, import("convex/values").VLiteral<"provider_rejected", "required">, import("convex/values").VLiteral<"retry_exhausted", "required">, import("convex/values").VLiteral<"delivery_window_expired", "required">, import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"administrative_hold", "required">], "optional", never>;
|
|
380
|
+
reason: import("convex/values").VUnion<"administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | "usage_canceled" | undefined, [import("convex/values").VLiteral<"usage_canceled", "required">, import("convex/values").VLiteral<"billing_period_closed", "required">, import("convex/values").VLiteral<"rate_limited", "required">, import("convex/values").VLiteral<"provider_unavailable", "required">, import("convex/values").VLiteral<"provider_outcome_unknown", "required">, import("convex/values").VLiteral<"provider_rejected", "required">, import("convex/values").VLiteral<"retry_exhausted", "required">, import("convex/values").VLiteral<"delivery_window_expired", "required">, import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"administrative_hold", "required">], "optional", never>;
|
|
272
381
|
receipt: import("convex/values").VObject<{
|
|
273
382
|
created: number;
|
|
274
383
|
identifier: string;
|
|
@@ -276,14 +385,15 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
276
385
|
identifier: import("convex/values").VString<string, "required">;
|
|
277
386
|
created: import("convex/values").VFloat64<number, "required">;
|
|
278
387
|
}, "optional", "created" | "identifier">;
|
|
388
|
+
correctionKey: import("convex/values").VString<string | undefined, "optional">;
|
|
279
389
|
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents">, "required">;
|
|
280
390
|
scopeKey: import("convex/values").VString<string, "required">;
|
|
281
|
-
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>;
|
|
391
|
+
state: import("convex/values").VUnion<"canceled" | "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"canceled", "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>;
|
|
282
392
|
attempts: import("convex/values").VFloat64<number, "required">;
|
|
283
393
|
nextAttemptAt: import("convex/values").VFloat64<number, "required">;
|
|
284
394
|
providerIdentifier: import("convex/values").VString<string, "required">;
|
|
285
395
|
dispatch: import("convex/values").VString<string | undefined, "optional">;
|
|
286
|
-
}, "required", "attempts" | "definitionVersion" | "dispatch" | "eventId" | "firstSendAt" | "held" | "historySequence" | "leaseUntil" | "nextAttemptAt" | "provider" | "providerIdentifier" | "reason" | "receipt" | "receipt.created" | "receipt.identifier" | "scopeKey" | "state" | "workflowId">, {
|
|
396
|
+
}, "required", "attempts" | "correctionKey" | "definitionVersion" | "dispatch" | "eventId" | "firstSendAt" | "held" | "historySequence" | "leaseUntil" | "nextAttemptAt" | "provider" | "providerIdentifier" | "reason" | "receipt" | "receipt.created" | "receipt.identifier" | "scopeKey" | "state" | "workflowId">, {
|
|
287
397
|
by_event: ["eventId", "_creationTime"];
|
|
288
398
|
by_provider_identifier: ["providerIdentifier", "_creationTime"];
|
|
289
399
|
by_scope_state: ["scopeKey", "state", "_creationTime"];
|
|
@@ -439,13 +549,13 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
439
549
|
at: number;
|
|
440
550
|
evidenceJson: string;
|
|
441
551
|
fingerprint: string;
|
|
442
|
-
kind: "closure" | "commit" | "grant" | "observation" | "payment" | "purchase" | "recovery" | "release" | "reservation";
|
|
552
|
+
kind: "closure" | "commit" | "correction" | "grant" | "observation" | "payment" | "purchase" | "recovery" | "release" | "reservation";
|
|
443
553
|
purchaseKey?: string | undefined;
|
|
444
554
|
sourceKey: string;
|
|
445
555
|
}, {
|
|
446
556
|
accountKey: import("convex/values").VString<string, "required">;
|
|
447
557
|
purchaseKey: import("convex/values").VString<string | undefined, "optional">;
|
|
448
|
-
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>;
|
|
558
|
+
kind: import("convex/values").VUnion<"closure" | "commit" | "correction" | "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">, import("convex/values").VLiteral<"correction", "required">], "required", never>;
|
|
449
559
|
sourceKey: import("convex/values").VString<string, "required">;
|
|
450
560
|
fingerprint: import("convex/values").VString<string, "required">;
|
|
451
561
|
evidenceJson: import("convex/values").VString<string, "required">;
|
package/dist/component/schema.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { claimsTable as usageCorrectionClaims, operationsTable as usageCorrections, historyTable as usageCorrectionHistory, } from "./usageCorrections/schema.js";
|
|
1
2
|
import { policiesTable as usageAllowancePolicies, historyTable as usageAllowanceHistory, } from "./usageAllowance/schema.js";
|
|
2
3
|
import { accountsTable as usageCreditAccounts, purchasesTable as usageCreditPurchases, grantsTable as usageCreditGrants, historyTable as usageCreditHistory, } from "./usageCredits/schema.js";
|
|
3
4
|
import { controlsTable as usageSubscriptionControls, intentsTable as usageSubscriptionIntents, locksTable as usageSubscriptionLocks, historyTable as usageSubscriptionHistory, } from "./usageSubscriptions/schema.js";
|
|
@@ -32,6 +33,9 @@ import { accountsTable } from "./core/schema";
|
|
|
32
33
|
import { pricesTable, productsTable } from "./products/schema";
|
|
33
34
|
import { webhookEventsTable } from "./webhooks/schema";
|
|
34
35
|
export default defineSchema({
|
|
36
|
+
usageCorrectionClaims,
|
|
37
|
+
usageCorrections,
|
|
38
|
+
usageCorrectionHistory,
|
|
35
39
|
usageAllowancePolicies,
|
|
36
40
|
usageAllowanceHistory,
|
|
37
41
|
usageSubscriptionControls,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,IAAI,sBAAsB,EACvC,YAAY,IAAI,qBAAqB,GACtC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,aAAa,IAAI,mBAAmB,EACpC,cAAc,IAAI,oBAAoB,EACtC,WAAW,IAAI,iBAAiB,EAChC,YAAY,IAAI,kBAAkB,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,aAAa,IAAI,yBAAyB,EAC1C,YAAY,IAAI,wBAAwB,EACxC,UAAU,IAAI,sBAAsB,EACpC,YAAY,IAAI,wB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B;IACvC,iBAAiB,EAAE,sBAAsB;IACzC,mBAAmB,EAAE,wBAAwB;IAC7C,uBAAuB,EAAE,4BAA4B;IACrD,cAAc,EAAE,aAAa;IAC7B,sBAAsB,EAAE,eAAe;IACvC,cAAc,EAAE,mBAAmB;IACnC,cAAc,EAAE,WAAW;IAC3B,gBAAgB,EAAE,aAAa;IAC/B,cAAc,EAAE,WAAW;IAC3B,oBAAoB,EAAE,iBAAiB;IACvC,qBAAqB,EAAE,gBAAgB;IACvC,eAAe,EAAE,oBAAoB;IACrC,mBAAmB,EAAE,wBAAwB;IAC7C,OAAO;IACP,QAAQ,EAAE,aAAa;IACvB,eAAe,EAAE,oBAAoB;IAErC,WAAW;IACX,QAAQ,EAAE,aAAa;IACvB,MAAM,EAAE,WAAW;IAEnB,UAAU;IACV,aAAa,EAAE,kBAAkB;IACjC,gBAAgB,EAAE,qBAAqB;IACvC,QAAQ,EAAE,aAAa;IAEvB,UAAU;IACV,QAAQ,EAAE,aAAa;IACvB,OAAO,EAAE,YAAY;IACrB,iBAAiB,EAAE,sBAAsB;IACzC,OAAO,EAAE,YAAY;IACrB,QAAQ,EAAE,aAAa;IACvB,SAAS,EAAE,cAAc;IACzB,mBAAmB,EAAE,wBAAwB;IAE7C,WAAW;IACX,aAAa,EAAE,kBAAkB;CAClC,CAAC,CAAC"}
|
|
@@ -19,7 +19,7 @@ export declare const get: import("convex/server").RegisteredQuery<"public", {
|
|
|
19
19
|
subscriptionId?: string | undefined;
|
|
20
20
|
subscriptionJson: string;
|
|
21
21
|
};
|
|
22
|
-
delivery: "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown";
|
|
22
|
+
delivery: "canceled" | "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown";
|
|
23
23
|
} | null>>;
|
|
24
24
|
export declare const read: import("convex/server").RegisteredQuery<"public", {
|
|
25
25
|
paginationOpts: {
|
|
@@ -58,7 +58,7 @@ export declare const read: import("convex/server").RegisteredQuery<"public", {
|
|
|
58
58
|
subscriptionId?: string | undefined;
|
|
59
59
|
subscriptionJson: string;
|
|
60
60
|
};
|
|
61
|
-
delivery: "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown";
|
|
61
|
+
delivery: "canceled" | "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown";
|
|
62
62
|
}[];
|
|
63
63
|
}>>;
|
|
64
64
|
//# sourceMappingURL=queries.d.ts.map
|
|
@@ -9,7 +9,7 @@ export declare const scopeValidator: import("convex/values").VObject<{
|
|
|
9
9
|
meterId: import("convex/values").VString<string, "required">;
|
|
10
10
|
livemode: import("convex/values").VBoolean<boolean, "required">;
|
|
11
11
|
}, "required", "customerAccount" | "livemode" | "meterId" | "stripeAccountId">;
|
|
12
|
-
export declare const deliveryValidator: 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>;
|
|
12
|
+
export declare const deliveryValidator: import("convex/values").VUnion<"canceled" | "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"canceled", "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>;
|
|
13
13
|
export declare const eventFields: {
|
|
14
14
|
subscriptionId: import("convex/values").VString<string | undefined, "optional">;
|
|
15
15
|
reservationId: import("convex/values").VId<import("convex/values").GenericId<"usageReservations"> | undefined, "optional">;
|
|
@@ -75,7 +75,7 @@ export declare const outboxFields: {
|
|
|
75
75
|
firstSendAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
76
76
|
leaseUntil: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
77
77
|
held: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
78
|
-
reason: import("convex/values").VUnion<"administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined, [import("convex/values").VLiteral<"billing_period_closed", "required">, import("convex/values").VLiteral<"rate_limited", "required">, import("convex/values").VLiteral<"provider_unavailable", "required">, import("convex/values").VLiteral<"provider_outcome_unknown", "required">, import("convex/values").VLiteral<"provider_rejected", "required">, import("convex/values").VLiteral<"retry_exhausted", "required">, import("convex/values").VLiteral<"delivery_window_expired", "required">, import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"administrative_hold", "required">], "optional", never>;
|
|
78
|
+
reason: import("convex/values").VUnion<"administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | "usage_canceled" | undefined, [import("convex/values").VLiteral<"usage_canceled", "required">, import("convex/values").VLiteral<"billing_period_closed", "required">, import("convex/values").VLiteral<"rate_limited", "required">, import("convex/values").VLiteral<"provider_unavailable", "required">, import("convex/values").VLiteral<"provider_outcome_unknown", "required">, import("convex/values").VLiteral<"provider_rejected", "required">, import("convex/values").VLiteral<"retry_exhausted", "required">, import("convex/values").VLiteral<"delivery_window_expired", "required">, import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"administrative_hold", "required">], "optional", never>;
|
|
79
79
|
receipt: import("convex/values").VObject<{
|
|
80
80
|
created: number;
|
|
81
81
|
identifier: string;
|
|
@@ -83,9 +83,10 @@ export declare const outboxFields: {
|
|
|
83
83
|
identifier: import("convex/values").VString<string, "required">;
|
|
84
84
|
created: import("convex/values").VFloat64<number, "required">;
|
|
85
85
|
}, "optional", "created" | "identifier">;
|
|
86
|
+
correctionKey: import("convex/values").VString<string | undefined, "optional">;
|
|
86
87
|
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents">, "required">;
|
|
87
88
|
scopeKey: import("convex/values").VString<string, "required">;
|
|
88
|
-
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>;
|
|
89
|
+
state: import("convex/values").VUnion<"canceled" | "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"canceled", "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>;
|
|
89
90
|
attempts: import("convex/values").VFloat64<number, "required">;
|
|
90
91
|
nextAttemptAt: import("convex/values").VFloat64<number, "required">;
|
|
91
92
|
providerIdentifier: import("convex/values").VString<string, "required">;
|
|
@@ -95,6 +96,7 @@ export declare const outboxDoc: import("convex/values").VObject<{
|
|
|
95
96
|
_creationTime: number;
|
|
96
97
|
_id: import("convex/values").GenericId<"usageOutbox">;
|
|
97
98
|
attempts: number;
|
|
99
|
+
correctionKey?: string | undefined;
|
|
98
100
|
definitionVersion?: 1 | undefined;
|
|
99
101
|
dispatch?: string | undefined;
|
|
100
102
|
eventId: import("convex/values").GenericId<"usageEvents">;
|
|
@@ -105,13 +107,13 @@ export declare const outboxDoc: import("convex/values").VObject<{
|
|
|
105
107
|
nextAttemptAt: number;
|
|
106
108
|
provider?: string | undefined;
|
|
107
109
|
providerIdentifier: string;
|
|
108
|
-
reason?: "administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined;
|
|
110
|
+
reason?: "administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | "usage_canceled" | undefined;
|
|
109
111
|
receipt?: {
|
|
110
112
|
created: number;
|
|
111
113
|
identifier: string;
|
|
112
114
|
} | undefined;
|
|
113
115
|
scopeKey: string;
|
|
114
|
-
state: "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown";
|
|
116
|
+
state: "canceled" | "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown";
|
|
115
117
|
workflowId?: string | undefined;
|
|
116
118
|
}, {
|
|
117
119
|
historySequence: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
@@ -121,7 +123,7 @@ export declare const outboxDoc: import("convex/values").VObject<{
|
|
|
121
123
|
firstSendAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
122
124
|
leaseUntil: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
123
125
|
held: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
124
|
-
reason: import("convex/values").VUnion<"administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined, [import("convex/values").VLiteral<"billing_period_closed", "required">, import("convex/values").VLiteral<"rate_limited", "required">, import("convex/values").VLiteral<"provider_unavailable", "required">, import("convex/values").VLiteral<"provider_outcome_unknown", "required">, import("convex/values").VLiteral<"provider_rejected", "required">, import("convex/values").VLiteral<"retry_exhausted", "required">, import("convex/values").VLiteral<"delivery_window_expired", "required">, import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"administrative_hold", "required">], "optional", never>;
|
|
126
|
+
reason: import("convex/values").VUnion<"administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | "usage_canceled" | undefined, [import("convex/values").VLiteral<"usage_canceled", "required">, import("convex/values").VLiteral<"billing_period_closed", "required">, import("convex/values").VLiteral<"rate_limited", "required">, import("convex/values").VLiteral<"provider_unavailable", "required">, import("convex/values").VLiteral<"provider_outcome_unknown", "required">, import("convex/values").VLiteral<"provider_rejected", "required">, import("convex/values").VLiteral<"retry_exhausted", "required">, import("convex/values").VLiteral<"delivery_window_expired", "required">, import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"administrative_hold", "required">], "optional", never>;
|
|
125
127
|
receipt: import("convex/values").VObject<{
|
|
126
128
|
created: number;
|
|
127
129
|
identifier: string;
|
|
@@ -129,18 +131,20 @@ export declare const outboxDoc: import("convex/values").VObject<{
|
|
|
129
131
|
identifier: import("convex/values").VString<string, "required">;
|
|
130
132
|
created: import("convex/values").VFloat64<number, "required">;
|
|
131
133
|
}, "optional", "created" | "identifier">;
|
|
134
|
+
correctionKey: import("convex/values").VString<string | undefined, "optional">;
|
|
132
135
|
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents">, "required">;
|
|
133
136
|
scopeKey: import("convex/values").VString<string, "required">;
|
|
134
|
-
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>;
|
|
137
|
+
state: import("convex/values").VUnion<"canceled" | "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"canceled", "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>;
|
|
135
138
|
attempts: import("convex/values").VFloat64<number, "required">;
|
|
136
139
|
nextAttemptAt: import("convex/values").VFloat64<number, "required">;
|
|
137
140
|
providerIdentifier: import("convex/values").VString<string, "required">;
|
|
138
141
|
dispatch: import("convex/values").VString<string | undefined, "optional">;
|
|
139
142
|
_id: import("convex/values").VId<import("convex/values").GenericId<"usageOutbox">, "required">;
|
|
140
143
|
_creationTime: import("convex/values").VFloat64<number, "required">;
|
|
141
|
-
}, "required", "_creationTime" | "_id" | "attempts" | "definitionVersion" | "dispatch" | "eventId" | "firstSendAt" | "held" | "historySequence" | "leaseUntil" | "nextAttemptAt" | "provider" | "providerIdentifier" | "reason" | "receipt" | "receipt.created" | "receipt.identifier" | "scopeKey" | "state" | "workflowId">;
|
|
144
|
+
}, "required", "_creationTime" | "_id" | "attempts" | "correctionKey" | "definitionVersion" | "dispatch" | "eventId" | "firstSendAt" | "held" | "historySequence" | "leaseUntil" | "nextAttemptAt" | "provider" | "providerIdentifier" | "reason" | "receipt" | "receipt.created" | "receipt.identifier" | "scopeKey" | "state" | "workflowId">;
|
|
142
145
|
export declare const usageOutboxTable: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
143
146
|
attempts: number;
|
|
147
|
+
correctionKey?: string | undefined;
|
|
144
148
|
definitionVersion?: 1 | undefined;
|
|
145
149
|
dispatch?: string | undefined;
|
|
146
150
|
eventId: import("convex/values").GenericId<"usageEvents">;
|
|
@@ -151,13 +155,13 @@ export declare const usageOutboxTable: import("convex/server").TableDefinition<i
|
|
|
151
155
|
nextAttemptAt: number;
|
|
152
156
|
provider?: string | undefined;
|
|
153
157
|
providerIdentifier: string;
|
|
154
|
-
reason?: "administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined;
|
|
158
|
+
reason?: "administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | "usage_canceled" | undefined;
|
|
155
159
|
receipt?: {
|
|
156
160
|
created: number;
|
|
157
161
|
identifier: string;
|
|
158
162
|
} | undefined;
|
|
159
163
|
scopeKey: string;
|
|
160
|
-
state: "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown";
|
|
164
|
+
state: "canceled" | "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown";
|
|
161
165
|
workflowId?: string | undefined;
|
|
162
166
|
}, {
|
|
163
167
|
historySequence: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
@@ -167,7 +171,7 @@ export declare const usageOutboxTable: import("convex/server").TableDefinition<i
|
|
|
167
171
|
firstSendAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
168
172
|
leaseUntil: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
169
173
|
held: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
170
|
-
reason: import("convex/values").VUnion<"administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined, [import("convex/values").VLiteral<"billing_period_closed", "required">, import("convex/values").VLiteral<"rate_limited", "required">, import("convex/values").VLiteral<"provider_unavailable", "required">, import("convex/values").VLiteral<"provider_outcome_unknown", "required">, import("convex/values").VLiteral<"provider_rejected", "required">, import("convex/values").VLiteral<"retry_exhausted", "required">, import("convex/values").VLiteral<"delivery_window_expired", "required">, import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"administrative_hold", "required">], "optional", never>;
|
|
174
|
+
reason: import("convex/values").VUnion<"administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | "usage_canceled" | undefined, [import("convex/values").VLiteral<"usage_canceled", "required">, import("convex/values").VLiteral<"billing_period_closed", "required">, import("convex/values").VLiteral<"rate_limited", "required">, import("convex/values").VLiteral<"provider_unavailable", "required">, import("convex/values").VLiteral<"provider_outcome_unknown", "required">, import("convex/values").VLiteral<"provider_rejected", "required">, import("convex/values").VLiteral<"retry_exhausted", "required">, import("convex/values").VLiteral<"delivery_window_expired", "required">, import("convex/values").VLiteral<"scope_busy", "required">, import("convex/values").VLiteral<"administrative_hold", "required">], "optional", never>;
|
|
171
175
|
receipt: import("convex/values").VObject<{
|
|
172
176
|
created: number;
|
|
173
177
|
identifier: string;
|
|
@@ -175,14 +179,15 @@ export declare const usageOutboxTable: import("convex/server").TableDefinition<i
|
|
|
175
179
|
identifier: import("convex/values").VString<string, "required">;
|
|
176
180
|
created: import("convex/values").VFloat64<number, "required">;
|
|
177
181
|
}, "optional", "created" | "identifier">;
|
|
182
|
+
correctionKey: import("convex/values").VString<string | undefined, "optional">;
|
|
178
183
|
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents">, "required">;
|
|
179
184
|
scopeKey: import("convex/values").VString<string, "required">;
|
|
180
|
-
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>;
|
|
185
|
+
state: import("convex/values").VUnion<"canceled" | "held" | "provider_accepted" | "queued" | "rejected" | "sending" | "unknown", [import("convex/values").VLiteral<"queued", "required">, import("convex/values").VLiteral<"canceled", "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>;
|
|
181
186
|
attempts: import("convex/values").VFloat64<number, "required">;
|
|
182
187
|
nextAttemptAt: import("convex/values").VFloat64<number, "required">;
|
|
183
188
|
providerIdentifier: import("convex/values").VString<string, "required">;
|
|
184
189
|
dispatch: import("convex/values").VString<string | undefined, "optional">;
|
|
185
|
-
}, "required", "attempts" | "definitionVersion" | "dispatch" | "eventId" | "firstSendAt" | "held" | "historySequence" | "leaseUntil" | "nextAttemptAt" | "provider" | "providerIdentifier" | "reason" | "receipt" | "receipt.created" | "receipt.identifier" | "scopeKey" | "state" | "workflowId">, {
|
|
190
|
+
}, "required", "attempts" | "correctionKey" | "definitionVersion" | "dispatch" | "eventId" | "firstSendAt" | "held" | "historySequence" | "leaseUntil" | "nextAttemptAt" | "provider" | "providerIdentifier" | "reason" | "receipt" | "receipt.created" | "receipt.identifier" | "scopeKey" | "state" | "workflowId">, {
|
|
186
191
|
by_event: ["eventId", "_creationTime"];
|
|
187
192
|
by_provider_identifier: ["providerIdentifier", "_creationTime"];
|
|
188
193
|
by_scope_state: ["scopeKey", "state", "_creationTime"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/usage/schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;;;;;;;8EAKzB,CAAC;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/usage/schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;;;;;;;8EAKzB,CAAC;AACH,eAAO,MAAM,iBAAiB,uiBAQ7B,CAAC;AACF,eAAO,MAAM,WAAW;IACtB,cAAc;IACd,aAAa;IACb,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,gBAAgB;IAChB,UAAU;IACV,UAAU;CACX,CAAC;AACF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;wKAInB,CAAC;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;UAQwB,CAAC;AACtD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;CAUxB,CAAC;AACF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+UAIpB,CAAC;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAIoB,CAAC;AAClD,eAAO,MAAM,uBAAuB;;;;;;;;UAGF,CAAC;AAInC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAsBc,CAAC"}
|
|
@@ -7,7 +7,7 @@ export const scopeValidator = v.object({
|
|
|
7
7
|
meterId: v.string(),
|
|
8
8
|
livemode: v.boolean(),
|
|
9
9
|
});
|
|
10
|
-
export const deliveryValidator = v.union(v.literal("queued"), v.literal("sending"), v.literal("provider_accepted"), v.literal("rejected"), v.literal("unknown"), v.literal("held"));
|
|
10
|
+
export const deliveryValidator = v.union(v.literal("queued"), v.literal("canceled"), v.literal("sending"), v.literal("provider_accepted"), v.literal("rejected"), v.literal("unknown"), v.literal("held"));
|
|
11
11
|
export const eventFields = {
|
|
12
12
|
subscriptionId: v.optional(v.string()),
|
|
13
13
|
reservationId: v.optional(v.id("usageReservations")),
|
|
@@ -33,6 +33,7 @@ export const usageEventsTable = defineTable(eventFields)
|
|
|
33
33
|
])
|
|
34
34
|
.index("by_scope_time", ["scopeKey", "occurredAt"]);
|
|
35
35
|
export const outboxFields = {
|
|
36
|
+
correctionKey: v.optional(v.string()),
|
|
36
37
|
...deliveryFields,
|
|
37
38
|
eventId: v.id("usageEvents"),
|
|
38
39
|
scopeKey: v.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/component/usage/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM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U,CAAC,EACrB,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,EACtB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CACtB;IACD,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC;IACxC,cAAc,EAAE,CAAC,CAAC,QAAQ,CACxB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CACtD;IACD,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACjC,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACxC,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACvC,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACtC,CAAC;KACC,KAAK,CAAC,kBAAkB,EAAE,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;KAClD,KAAK,CAAC,iBAAiB,EAAE,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;KACvD,KAAK,CAAC,gBAAgB,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -18,7 +18,7 @@ export declare const readHistory: import("convex/server").RegisteredQuery<"publi
|
|
|
18
18
|
at: number;
|
|
19
19
|
evidenceJson: string;
|
|
20
20
|
key: string;
|
|
21
|
-
kind: "commit" | "policy" | "release" | "reservation";
|
|
21
|
+
kind: "commit" | "correction" | "policy" | "release" | "reservation";
|
|
22
22
|
}[];
|
|
23
23
|
isDone: boolean;
|
|
24
24
|
continueCursor: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/usageAllowance/queries.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/usageAllowance/queries.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,MAAM;;0BAoBjB,CAAC;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;GAiCtB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;GAyEzB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { verifiedCancellation } from "../usageCorrections/cancellation.js";
|
|
1
2
|
import { paginationOptsValidator } from "convex/server";
|
|
2
3
|
import { v } from "convex/values";
|
|
3
4
|
import { query } from "../_generated/server.js";
|
|
@@ -89,7 +90,15 @@ export const reconciliation = query({
|
|
|
89
90
|
reservation.eventId !== event._id ||
|
|
90
91
|
reservation.scaledQuantity !== record.scaledQuantity)
|
|
91
92
|
complete = false;
|
|
92
|
-
|
|
93
|
+
const outbox = await ctx.db
|
|
94
|
+
.query("usageOutbox")
|
|
95
|
+
.withIndex("by_event", (q) => q.eq("eventId", event._id))
|
|
96
|
+
.unique();
|
|
97
|
+
const canceled = await verifiedCancellation(ctx, event, outbox);
|
|
98
|
+
if (canceled === "unverified")
|
|
99
|
+
complete = false;
|
|
100
|
+
if (canceled !== "confirmed")
|
|
101
|
+
accepted += BigInt(record.scaledQuantity);
|
|
93
102
|
}
|
|
94
103
|
for (const reservation of reservations)
|
|
95
104
|
reserved += BigInt(reservation.scaledQuantity);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../src/component/usageAllowance/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CA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pC,sBAAsB,EAAE,GAAG,CAAC,QAAQ;YACpC,sBAAsB,EAAE,QAAQ,CAAC,QAAQ,EAAE;YAC3C,QAAQ,EAAE,KAAc;SACzB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -42,7 +42,7 @@ export declare const policiesTable: import("convex/server").TableDefinition<impo
|
|
|
42
42
|
}, {}, {}>;
|
|
43
43
|
export declare const historyFields: {
|
|
44
44
|
key: import("convex/values").VString<string, "required">;
|
|
45
|
-
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>;
|
|
45
|
+
kind: import("convex/values").VUnion<"commit" | "correction" | "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">, import("convex/values").VLiteral<"correction", "required">], "required", never>;
|
|
46
46
|
evidenceJson: import("convex/values").VString<string, "required">;
|
|
47
47
|
at: import("convex/values").VFloat64<number, "required">;
|
|
48
48
|
};
|
|
@@ -52,10 +52,10 @@ export declare const historyDoc: import("convex/values").VObject<{
|
|
|
52
52
|
at: number;
|
|
53
53
|
evidenceJson: string;
|
|
54
54
|
key: string;
|
|
55
|
-
kind: "commit" | "policy" | "release" | "reservation";
|
|
55
|
+
kind: "commit" | "correction" | "policy" | "release" | "reservation";
|
|
56
56
|
}, {
|
|
57
57
|
key: import("convex/values").VString<string, "required">;
|
|
58
|
-
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>;
|
|
58
|
+
kind: import("convex/values").VUnion<"commit" | "correction" | "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">, import("convex/values").VLiteral<"correction", "required">], "required", never>;
|
|
59
59
|
evidenceJson: import("convex/values").VString<string, "required">;
|
|
60
60
|
at: import("convex/values").VFloat64<number, "required">;
|
|
61
61
|
_id: import("convex/values").VId<import("convex/values").GenericId<"usageAllowanceHistory">, "required">;
|
|
@@ -65,10 +65,10 @@ export declare const historyTable: import("convex/server").TableDefinition<impor
|
|
|
65
65
|
at: number;
|
|
66
66
|
evidenceJson: string;
|
|
67
67
|
key: string;
|
|
68
|
-
kind: "commit" | "policy" | "release" | "reservation";
|
|
68
|
+
kind: "commit" | "correction" | "policy" | "release" | "reservation";
|
|
69
69
|
}, {
|
|
70
70
|
key: import("convex/values").VString<string, "required">;
|
|
71
|
-
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>;
|
|
71
|
+
kind: import("convex/values").VUnion<"commit" | "correction" | "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">, import("convex/values").VLiteral<"correction", "required">], "required", never>;
|
|
72
72
|
evidenceJson: import("convex/values").VString<string, "required">;
|
|
73
73
|
at: import("convex/values").VFloat64<number, "required">;
|
|
74
74
|
}, "required", "at" | "evidenceJson" | "key" | "kind">, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/usageAllowance/schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;IACjB,GAAG;IACH,SAAS;IACT,QAAQ;IACR,WAAW;IACX,KAAK;IACL,GAAG;IACH,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,YAAY;CACb,CAAC;AACF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAGuB,CAAC;AAClD,eAAO,MAAM,aAAa;IACxB,GAAG;IACH,IAAI;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/component/usageAllowance/schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;IACjB,GAAG;IACH,SAAS;IACT,QAAQ;IACR,WAAW;IACX,KAAK;IACL,GAAG;IACH,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,YAAY;CACb,CAAC;AACF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAGuB,CAAC;AAClD,eAAO,MAAM,aAAa;IACxB,GAAG;IACH,IAAI;IAOJ,YAAY;IACZ,EAAE;CACH,CAAC;AACF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;gFAIrB,CAAC;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;UAAsD,CAAC"}
|