@fantastic.dev/better-stripe 0.55.0 → 0.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +3 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +216 -38
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +92 -3
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +216 -38
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +92 -3
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/index.d.ts +4 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/usage/catalogPrices.d.ts +2 -0
- package/dist/client/usage/catalogPrices.d.ts.map +1 -1
- package/dist/client/usage/catalogPrices.js +15 -0
- package/dist/client/usage/catalogPrices.js.map +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/deliveryProvider.d.ts.map +1 -1
- package/dist/client/usage/deliveryProvider.js +26 -1
- package/dist/client/usage/deliveryProvider.js.map +1 -1
- package/dist/client/usage/index.d.ts +4 -0
- package/dist/client/usage/index.d.ts.map +1 -1
- package/dist/client/usage/index.js +1 -0
- package/dist/client/usage/index.js.map +1 -1
- package/dist/client/usage/subscription.fixtures.d.ts +118 -0
- package/dist/client/usage/subscription.fixtures.d.ts.map +1 -0
- package/dist/client/usage/subscription.fixtures.js +84 -0
- package/dist/client/usage/subscription.fixtures.js.map +1 -0
- package/dist/client/usage/subscriptionAbandonment.d.ts +8 -0
- package/dist/client/usage/subscriptionAbandonment.d.ts.map +1 -0
- package/dist/client/usage/subscriptionAbandonment.js +82 -0
- package/dist/client/usage/subscriptionAbandonment.js.map +1 -0
- package/dist/client/usage/subscriptionCancellation.d.ts +9 -0
- package/dist/client/usage/subscriptionCancellation.d.ts.map +1 -0
- package/dist/client/usage/subscriptionCancellation.js +39 -0
- package/dist/client/usage/subscriptionCancellation.js.map +1 -0
- package/dist/client/usage/subscriptionCheckout.d.ts +52 -0
- package/dist/client/usage/subscriptionCheckout.d.ts.map +1 -0
- package/dist/client/usage/subscriptionCheckout.js +94 -0
- package/dist/client/usage/subscriptionCheckout.js.map +1 -0
- package/dist/client/usage/subscriptionClient.d.ts +267 -0
- package/dist/client/usage/subscriptionClient.d.ts.map +1 -0
- package/dist/client/usage/subscriptionClient.js +93 -0
- package/dist/client/usage/subscriptionClient.js.map +1 -0
- package/dist/client/usage/subscriptionErrors.d.ts +5 -0
- package/dist/client/usage/subscriptionErrors.d.ts.map +1 -0
- package/dist/client/usage/subscriptionErrors.js +9 -0
- package/dist/client/usage/subscriptionErrors.js.map +1 -0
- package/dist/client/usage/subscriptionInvoiceSchema.d.ts +203 -0
- package/dist/client/usage/subscriptionInvoiceSchema.d.ts.map +1 -0
- package/dist/client/usage/subscriptionInvoiceSchema.js +108 -0
- package/dist/client/usage/subscriptionInvoiceSchema.js.map +1 -0
- package/dist/client/usage/subscriptionLifecycle.d.ts +80 -0
- package/dist/client/usage/subscriptionLifecycle.d.ts.map +1 -0
- package/dist/client/usage/subscriptionLifecycle.js +87 -0
- package/dist/client/usage/subscriptionLifecycle.js.map +1 -0
- package/dist/client/usage/subscriptionProvider.d.ts +111 -0
- package/dist/client/usage/subscriptionProvider.d.ts.map +1 -0
- package/dist/client/usage/subscriptionProvider.js +147 -0
- package/dist/client/usage/subscriptionProvider.js.map +1 -0
- package/dist/client/usage/subscriptionTerms.d.ts +161 -0
- package/dist/client/usage/subscriptionTerms.d.ts.map +1 -0
- package/dist/client/usage/subscriptionTerms.js +242 -0
- package/dist/client/usage/subscriptionTerms.js.map +1 -0
- package/dist/client/usage/subscriptionTransport.fixtures.d.ts +25 -0
- package/dist/client/usage/subscriptionTransport.fixtures.d.ts.map +1 -0
- package/dist/client/usage/subscriptionTransport.fixtures.js +203 -0
- package/dist/client/usage/subscriptionTransport.fixtures.js.map +1 -0
- package/dist/client/webhooks/processors.d.ts.map +1 -1
- package/dist/client/webhooks/processors.js +2 -0
- package/dist/client/webhooks/processors.js.map +1 -1
- package/dist/client/webhooks/usageSubscriptions.d.ts +5 -0
- package/dist/client/webhooks/usageSubscriptions.d.ts.map +1 -0
- package/dist/client/webhooks/usageSubscriptions.js +54 -0
- package/dist/client/webhooks/usageSubscriptions.js.map +1 -0
- package/dist/component/_generated/api.d.ts +14 -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 +160 -5
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/accountClosure/mutations.d.ts.map +1 -1
- package/dist/component/accountClosure/mutations.js +10 -0
- package/dist/component/accountClosure/mutations.js.map +1 -1
- package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
- package/dist/component/balanceFunding/workflowValidators.d.ts +16 -16
- package/dist/component/earnings/triggers.d.ts +192 -4
- 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 +92 -3
- package/dist/component/schema.js +5 -0
- package/dist/component/schema.js.map +1 -1
- package/dist/component/usage/mutations.d.ts.map +1 -1
- package/dist/component/usage/mutations.js +5 -0
- package/dist/component/usage/mutations.js.map +1 -1
- package/dist/component/usage/queries.d.ts +2 -0
- package/dist/component/usage/queries.d.ts.map +1 -1
- package/dist/component/usage/schema.d.ts +14 -7
- package/dist/component/usage/schema.d.ts.map +1 -1
- package/dist/component/usage/schema.js +5 -1
- package/dist/component/usage/schema.js.map +1 -1
- package/dist/component/usageDelivery/fields.d.ts +3 -2
- package/dist/component/usageDelivery/fields.d.ts.map +1 -1
- package/dist/component/usageDelivery/fields.js +2 -1
- package/dist/component/usageDelivery/fields.js.map +1 -1
- package/dist/component/usageDelivery/helpers.d.ts +4 -3
- package/dist/component/usageDelivery/helpers.d.ts.map +1 -1
- package/dist/component/usageDelivery/mutations.d.ts +3 -3
- package/dist/component/usageDelivery/queries.d.ts +17 -3
- package/dist/component/usageDelivery/queries.d.ts.map +1 -1
- package/dist/component/usageDelivery/queries.js +20 -3
- package/dist/component/usageDelivery/queries.js.map +1 -1
- package/dist/component/usageDelivery/schema.d.ts +2 -2
- package/dist/component/usageDelivery/steps.d.ts +1 -1
- package/dist/component/usageDelivery/steps.d.ts.map +1 -1
- package/dist/component/usageDelivery/steps.js +12 -1
- package/dist/component/usageDelivery/steps.js.map +1 -1
- package/dist/component/usageSubscriptions/abandonment.d.ts +4 -0
- package/dist/component/usageSubscriptions/abandonment.d.ts.map +1 -0
- package/dist/component/usageSubscriptions/abandonment.js +59 -0
- package/dist/component/usageSubscriptions/abandonment.js.map +1 -0
- package/dist/component/usageSubscriptions/acceptance.d.ts +11 -0
- package/dist/component/usageSubscriptions/acceptance.d.ts.map +1 -0
- package/dist/component/usageSubscriptions/acceptance.js +38 -0
- package/dist/component/usageSubscriptions/acceptance.js.map +1 -0
- package/dist/component/usageSubscriptions/helpers.d.ts +39 -0
- package/dist/component/usageSubscriptions/helpers.d.ts.map +1 -0
- package/dist/component/usageSubscriptions/helpers.js +28 -0
- package/dist/component/usageSubscriptions/helpers.js.map +1 -0
- package/dist/component/usageSubscriptions/history.d.ts +46 -0
- package/dist/component/usageSubscriptions/history.d.ts.map +1 -0
- package/dist/component/usageSubscriptions/history.js +46 -0
- package/dist/component/usageSubscriptions/history.js.map +1 -0
- package/dist/component/usageSubscriptions/mutations.d.ts +64 -0
- package/dist/component/usageSubscriptions/mutations.d.ts.map +1 -0
- package/dist/component/usageSubscriptions/mutations.js +252 -0
- package/dist/component/usageSubscriptions/mutations.js.map +1 -0
- package/dist/component/usageSubscriptions/queries.d.ts +81 -0
- package/dist/component/usageSubscriptions/queries.d.ts.map +1 -0
- package/dist/component/usageSubscriptions/queries.js +70 -0
- package/dist/component/usageSubscriptions/queries.js.map +1 -0
- package/dist/component/usageSubscriptions/retirement.d.ts +4 -0
- package/dist/component/usageSubscriptions/retirement.d.ts.map +1 -0
- package/dist/component/usageSubscriptions/retirement.js +80 -0
- package/dist/component/usageSubscriptions/retirement.js.map +1 -0
- package/dist/component/usageSubscriptions/schema.d.ts +191 -0
- package/dist/component/usageSubscriptions/schema.d.ts.map +1 -0
- package/dist/component/usageSubscriptions/schema.js +69 -0
- package/dist/component/usageSubscriptions/schema.js.map +1 -0
- package/dist/test.d.ts +6 -0
- package/dist/test.d.ts.map +1 -0
- package/dist/test.js +15 -0
- package/dist/test.js.map +1 -0
- package/docs/README.md +2 -0
- package/docs/evidence/native-metering/clock-finalization-run.json +129 -0
- package/docs/evidence/native-metering/clock-lag-run.json +111 -0
- package/docs/evidence/native-metering/paid-run.json +107 -0
- package/docs/evidence/native-metering/promotional-run.json +103 -0
- package/docs/metered-usage.md +14 -0
- package/docs/metering-setup.md +5 -1
- package/docs/usage-subscriptions.md +278 -0
- package/package.json +4 -2
- package/src/client/index.ts +8 -0
- package/src/client/usage/catalogPrices.ts +21 -0
- package/src/client/usage/client.ts +2 -2
- package/src/client/usage/deliveryProvider.test.ts +70 -1
- package/src/client/usage/deliveryProvider.ts +43 -2
- package/src/client/usage/index.ts +9 -0
- package/src/client/usage/subscription.fixtures.ts +84 -0
- package/src/client/usage/subscriptionAbandonment.test.ts +124 -0
- package/src/client/usage/subscriptionAbandonment.ts +116 -0
- package/src/client/usage/subscriptionCancellation.ts +90 -0
- package/src/client/usage/subscriptionCheckout.test.ts +31 -0
- package/src/client/usage/subscriptionCheckout.ts +152 -0
- package/src/client/usage/subscriptionClient.test.ts +316 -0
- package/src/client/usage/subscriptionClient.ts +204 -0
- package/src/client/usage/subscriptionErrors.ts +14 -0
- package/src/client/usage/subscriptionInvoiceSchema.ts +116 -0
- package/src/client/usage/subscriptionLifecycle.ts +165 -0
- package/src/client/usage/subscriptionProvider.test.ts +48 -0
- package/src/client/usage/subscriptionProvider.ts +247 -0
- package/src/client/usage/subscriptionTerms.test.ts +158 -0
- package/src/client/usage/subscriptionTerms.ts +294 -0
- package/src/client/usage/subscriptionTransport.fixtures.ts +241 -0
- package/src/client/webhooks/processors.ts +2 -0
- package/src/client/webhooks/usageSubscriptions.test.ts +162 -0
- package/src/client/webhooks/usageSubscriptions.ts +81 -0
- package/src/component/_generated/api.ts +14 -0
- package/src/component/_generated/component.ts +200 -0
- package/src/component/accountClosure/mutations.ts +12 -0
- package/src/component/schema.ts +10 -0
- package/src/component/usage/mutations.ts +5 -0
- package/src/component/usage/schema.ts +5 -1
- package/src/component/usageDelivery/fields.ts +2 -0
- package/src/component/usageDelivery/queries.ts +30 -3
- package/src/component/usageDelivery/steps.ts +22 -1
- package/src/component/usageSubscriptions/abandonment.ts +80 -0
- package/src/component/usageSubscriptions/acceptance.test.ts +122 -0
- package/src/component/usageSubscriptions/acceptance.ts +66 -0
- package/src/component/usageSubscriptions/helpers.ts +33 -0
- package/src/component/usageSubscriptions/history.test.ts +69 -0
- package/src/component/usageSubscriptions/history.ts +68 -0
- package/src/component/usageSubscriptions/mutations.test.ts +205 -0
- package/src/component/usageSubscriptions/mutations.ts +275 -0
- package/src/component/usageSubscriptions/queries.ts +78 -0
- package/src/component/usageSubscriptions/retirement.ts +105 -0
- package/src/component/usageSubscriptions/schema.ts +73 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/accountClosure/mutations.ts"],"names":[],"mappings":"AAIA,yFAAyF;AACzF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/accountClosure/mutations.ts"],"names":[],"mappings":"AAIA,yFAAyF;AACzF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;GAmClB,CAAC;AAEH,eAAO,MAAM,QAAQ;;iBAyBnB,CAAC"}
|
|
@@ -7,6 +7,16 @@ export const prepare = mutation({
|
|
|
7
7
|
args: { stripeAccountId: v.string() },
|
|
8
8
|
returns: v.object({ closure: closureDoc, isRetry: v.boolean() }),
|
|
9
9
|
handler: async (ctx, { stripeAccountId }) => {
|
|
10
|
+
const payerLock = await ctx.db
|
|
11
|
+
.query("usageSubscriptionLocks")
|
|
12
|
+
.withIndex("by_payer", (q) => q.eq("customerAccount", stripeAccountId))
|
|
13
|
+
.first();
|
|
14
|
+
const realmLock = await ctx.db
|
|
15
|
+
.query("usageSubscriptionLocks")
|
|
16
|
+
.withIndex("by_realm", (q) => q.eq("stripeAccountId", stripeAccountId))
|
|
17
|
+
.first();
|
|
18
|
+
if (payerLock || realmLock)
|
|
19
|
+
throw new Error("Close out managed usage enrollment before account closure");
|
|
10
20
|
const existing = await closureByStripeId(ctx, stripeAccountId);
|
|
11
21
|
if (existing)
|
|
12
22
|
return { closure: existing, isRetry: true };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.js","sourceRoot":"","sources":["../../../src/component/accountClosure/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,yFAAyF;AACzF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC;IAC9B,IAAI,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,OA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CAAC;QACZ,IACE,OAAO;YACP,CAAC,OAAO,CAAC,MAAM,KAAK,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,KAAK,KAAK,OAAO,CAAC,KAAK,CAAC;YAEtE,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;QAC9D,MAAM,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,EAAE,OAAO,CAAC,GAAG,EAAE;YACjD,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,IAAI,CAAC,GAAG,EAAE;SACrB,CAAC,CAAC;QACH,IAAI,OAAO;YAAE,MAAM,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;QAC1D,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -2,6 +2,14 @@ import type { Infer } from "convex/values";
|
|
|
2
2
|
import type { MutationCtx } from "../_generated/server.js";
|
|
3
3
|
import { prepareArgs, finishPreparationArgs } from "./mutationValidators.js";
|
|
4
4
|
export declare function prepareHandler(ctx: MutationCtx, args: Infer<typeof prepareArgs>): Promise<{
|
|
5
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
6
|
+
retryable: false;
|
|
7
|
+
status: "conflict";
|
|
8
|
+
} | {
|
|
9
|
+
reason: "policy_invalid";
|
|
10
|
+
retryable: false;
|
|
11
|
+
status: "rejected";
|
|
12
|
+
} | {
|
|
5
13
|
operation: {
|
|
6
14
|
accountId: string;
|
|
7
15
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -12,14 +20,6 @@ export declare function prepareHandler(ctx: MutationCtx, args: Infer<typeof prep
|
|
|
12
20
|
} | {
|
|
13
21
|
enabled: boolean;
|
|
14
22
|
status: "unchanged";
|
|
15
|
-
} | {
|
|
16
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
17
|
-
retryable: false;
|
|
18
|
-
status: "conflict";
|
|
19
|
-
} | {
|
|
20
|
-
reason: "policy_invalid";
|
|
21
|
-
retryable: false;
|
|
22
|
-
status: "rejected";
|
|
23
23
|
} | {
|
|
24
24
|
reason: "provider_pending";
|
|
25
25
|
retryable: true;
|
|
@@ -60,6 +60,22 @@ export declare const phaseRef: import("convex/values").VObject<{
|
|
|
60
60
|
}, "required", "accountId" | "definitionVersion" | "operationId" | "phase" | "providerApiVersion" | "providerKey" | "scopeKey" | "stripeSubscriptionId" | "version">;
|
|
61
61
|
export type FundingPhaseRef = Infer<typeof phaseRef>;
|
|
62
62
|
export declare const workflowStartResult: import("convex/values").VUnion<{
|
|
63
|
+
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
64
|
+
retryable: false;
|
|
65
|
+
status: "unknown";
|
|
66
|
+
} | {
|
|
67
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
68
|
+
retryable: false;
|
|
69
|
+
status: "conflict";
|
|
70
|
+
} | {
|
|
71
|
+
reason: "invalid_scope" | "policy_invalid" | "unsupported_source";
|
|
72
|
+
retryable: false;
|
|
73
|
+
status: "rejected";
|
|
74
|
+
} | {
|
|
75
|
+
reason: "provider_pending";
|
|
76
|
+
retryable: true;
|
|
77
|
+
status: "not_ready";
|
|
78
|
+
} | {
|
|
63
79
|
operation: {
|
|
64
80
|
accountId: string;
|
|
65
81
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -76,22 +92,6 @@ export declare const workflowStartResult: import("convex/values").VUnion<{
|
|
|
76
92
|
version: number;
|
|
77
93
|
};
|
|
78
94
|
status: "canceled";
|
|
79
|
-
} | {
|
|
80
|
-
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
81
|
-
retryable: false;
|
|
82
|
-
status: "unknown";
|
|
83
|
-
} | {
|
|
84
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
85
|
-
retryable: false;
|
|
86
|
-
status: "conflict";
|
|
87
|
-
} | {
|
|
88
|
-
reason: "invalid_scope" | "policy_invalid" | "unsupported_source";
|
|
89
|
-
retryable: false;
|
|
90
|
-
status: "rejected";
|
|
91
|
-
} | {
|
|
92
|
-
reason: "provider_pending";
|
|
93
|
-
retryable: true;
|
|
94
|
-
status: "not_ready";
|
|
95
95
|
}, [import("convex/values").VObject<{
|
|
96
96
|
operation: {
|
|
97
97
|
accountId: string;
|
|
@@ -2033,6 +2033,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2033
2033
|
by_creation_time: ["_creationTime"];
|
|
2034
2034
|
by_dedupe: ["dedupe", "_creationTime"];
|
|
2035
2035
|
by_event: ["eventId", "_creationTime"];
|
|
2036
|
+
by_scope: ["scopeKey", "_creationTime"];
|
|
2036
2037
|
};
|
|
2037
2038
|
searchIndexes: {};
|
|
2038
2039
|
vectorIndexes: {};
|
|
@@ -2088,13 +2089,15 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2088
2089
|
recordJson: string;
|
|
2089
2090
|
reservationId?: import("convex/values").GenericId<"usageReservations"> | undefined;
|
|
2090
2091
|
scopeKey: string;
|
|
2092
|
+
subscriptionId?: string | undefined;
|
|
2091
2093
|
subscriptionJson: string;
|
|
2092
2094
|
};
|
|
2093
|
-
fieldPaths: "_id" | ("_creationTime" | "acceptedAt" | "identity" | "occurredAt" | "recordJson" | "reservationId" | "scopeKey" | "subscriptionJson");
|
|
2095
|
+
fieldPaths: "_id" | ("_creationTime" | "acceptedAt" | "identity" | "occurredAt" | "recordJson" | "reservationId" | "scopeKey" | "subscriptionId" | "subscriptionJson");
|
|
2094
2096
|
indexes: {
|
|
2095
2097
|
by_id: ["_id"];
|
|
2096
2098
|
by_creation_time: ["_creationTime"];
|
|
2097
2099
|
by_identity: ["identity", "_creationTime"];
|
|
2100
|
+
by_scope_subscription: ["scopeKey", "subscriptionId", "_creationTime"];
|
|
2098
2101
|
by_scope_time: ["scopeKey", "occurredAt", "_creationTime"];
|
|
2099
2102
|
};
|
|
2100
2103
|
searchIndexes: {};
|
|
@@ -2115,7 +2118,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2115
2118
|
nextAttemptAt: number;
|
|
2116
2119
|
provider?: string | undefined;
|
|
2117
2120
|
providerIdentifier: string;
|
|
2118
|
-
reason?: "administrative_hold" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined;
|
|
2121
|
+
reason?: "administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined;
|
|
2119
2122
|
receipt?: {
|
|
2120
2123
|
created: number;
|
|
2121
2124
|
identifier: string;
|
|
@@ -2171,6 +2174,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2171
2174
|
by_id: ["_id"];
|
|
2172
2175
|
by_creation_time: ["_creationTime"];
|
|
2173
2176
|
by_scope_source: ["scopeKey", "sourceEventId", "_creationTime"];
|
|
2177
|
+
by_scope_state: ["scopeKey", "state", "_creationTime"];
|
|
2174
2178
|
};
|
|
2175
2179
|
searchIndexes: {};
|
|
2176
2180
|
vectorIndexes: {};
|
|
@@ -2191,6 +2195,96 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2191
2195
|
searchIndexes: {};
|
|
2192
2196
|
vectorIndexes: {};
|
|
2193
2197
|
};
|
|
2198
|
+
usageSubscriptionControls: {
|
|
2199
|
+
document: {
|
|
2200
|
+
_creationTime: number;
|
|
2201
|
+
_id: import("convex/values").GenericId<"usageSubscriptionControls">;
|
|
2202
|
+
cancelAtPeriodEnd: boolean;
|
|
2203
|
+
firstAttemptAt: number;
|
|
2204
|
+
intentKey: string;
|
|
2205
|
+
key: string;
|
|
2206
|
+
operationId: string;
|
|
2207
|
+
resultJson?: string | undefined;
|
|
2208
|
+
};
|
|
2209
|
+
fieldPaths: "_id" | ("_creationTime" | "cancelAtPeriodEnd" | "firstAttemptAt" | "intentKey" | "key" | "operationId" | "resultJson");
|
|
2210
|
+
indexes: {
|
|
2211
|
+
by_id: ["_id"];
|
|
2212
|
+
by_creation_time: ["_creationTime"];
|
|
2213
|
+
by_key: ["key", "_creationTime"];
|
|
2214
|
+
};
|
|
2215
|
+
searchIndexes: {};
|
|
2216
|
+
vectorIndexes: {};
|
|
2217
|
+
};
|
|
2218
|
+
usageSubscriptionHistory: {
|
|
2219
|
+
document: {
|
|
2220
|
+
_creationTime: number;
|
|
2221
|
+
_id: import("convex/values").GenericId<"usageSubscriptionHistory">;
|
|
2222
|
+
fingerprint: string;
|
|
2223
|
+
intentKey: string;
|
|
2224
|
+
kind: "invoice" | "retirement" | "subscription";
|
|
2225
|
+
observationJson: string;
|
|
2226
|
+
resourceId: string;
|
|
2227
|
+
startedAt: number;
|
|
2228
|
+
};
|
|
2229
|
+
fieldPaths: "_id" | ("_creationTime" | "fingerprint" | "intentKey" | "kind" | "observationJson" | "resourceId" | "startedAt");
|
|
2230
|
+
indexes: {
|
|
2231
|
+
by_id: ["_id"];
|
|
2232
|
+
by_creation_time: ["_creationTime"];
|
|
2233
|
+
by_fingerprint: ["fingerprint", "_creationTime"];
|
|
2234
|
+
by_intent_kind: ["intentKey", "kind", "_creationTime"];
|
|
2235
|
+
};
|
|
2236
|
+
searchIndexes: {};
|
|
2237
|
+
vectorIndexes: {};
|
|
2238
|
+
};
|
|
2239
|
+
usageSubscriptionIntents: {
|
|
2240
|
+
document: {
|
|
2241
|
+
_creationTime: number;
|
|
2242
|
+
_id: import("convex/values").GenericId<"usageSubscriptionIntents">;
|
|
2243
|
+
abandonedId?: string | undefined;
|
|
2244
|
+
checkoutId?: string | undefined;
|
|
2245
|
+
controlKey?: string | undefined;
|
|
2246
|
+
firstAttemptAt: number;
|
|
2247
|
+
historyCount?: number | undefined;
|
|
2248
|
+
key: string;
|
|
2249
|
+
method: "checkout" | "direct";
|
|
2250
|
+
providerId?: string | undefined;
|
|
2251
|
+
retiredAt?: number | undefined;
|
|
2252
|
+
retirementInvoiceId?: string | undefined;
|
|
2253
|
+
scopeKey: string;
|
|
2254
|
+
startedAt?: number | undefined;
|
|
2255
|
+
termsJson: string;
|
|
2256
|
+
viewJson?: string | undefined;
|
|
2257
|
+
};
|
|
2258
|
+
fieldPaths: "_id" | ("_creationTime" | "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson");
|
|
2259
|
+
indexes: {
|
|
2260
|
+
by_id: ["_id"];
|
|
2261
|
+
by_creation_time: ["_creationTime"];
|
|
2262
|
+
by_key: ["key", "_creationTime"];
|
|
2263
|
+
by_provider: ["providerId", "_creationTime"];
|
|
2264
|
+
};
|
|
2265
|
+
searchIndexes: {};
|
|
2266
|
+
vectorIndexes: {};
|
|
2267
|
+
};
|
|
2268
|
+
usageSubscriptionLocks: {
|
|
2269
|
+
document: {
|
|
2270
|
+
_creationTime: number;
|
|
2271
|
+
_id: import("convex/values").GenericId<"usageSubscriptionLocks">;
|
|
2272
|
+
customerAccount: string;
|
|
2273
|
+
intentKey: string;
|
|
2274
|
+
key: string;
|
|
2275
|
+
stripeAccountId: string;
|
|
2276
|
+
};
|
|
2277
|
+
fieldPaths: "_id" | ("_creationTime" | "customerAccount" | "intentKey" | "key" | "stripeAccountId");
|
|
2278
|
+
indexes: {
|
|
2279
|
+
by_id: ["_id"];
|
|
2280
|
+
by_creation_time: ["_creationTime"];
|
|
2281
|
+
by_key: ["key", "_creationTime"];
|
|
2282
|
+
by_payer: ["customerAccount", "_creationTime"];
|
|
2283
|
+
by_realm: ["stripeAccountId", "_creationTime"];
|
|
2284
|
+
};
|
|
2285
|
+
searchIndexes: {};
|
|
2286
|
+
vectorIndexes: {};
|
|
2287
|
+
};
|
|
2194
2288
|
webhookEvents: {
|
|
2195
2289
|
document: {
|
|
2196
2290
|
_creationTime: number;
|
|
@@ -4247,6 +4341,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4247
4341
|
by_creation_time: ["_creationTime"];
|
|
4248
4342
|
by_dedupe: ["dedupe", "_creationTime"];
|
|
4249
4343
|
by_event: ["eventId", "_creationTime"];
|
|
4344
|
+
by_scope: ["scopeKey", "_creationTime"];
|
|
4250
4345
|
};
|
|
4251
4346
|
searchIndexes: {};
|
|
4252
4347
|
vectorIndexes: {};
|
|
@@ -4302,13 +4397,15 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4302
4397
|
recordJson: string;
|
|
4303
4398
|
reservationId?: import("convex/values").GenericId<"usageReservations"> | undefined;
|
|
4304
4399
|
scopeKey: string;
|
|
4400
|
+
subscriptionId?: string | undefined;
|
|
4305
4401
|
subscriptionJson: string;
|
|
4306
4402
|
};
|
|
4307
|
-
fieldPaths: "_id" | ("_creationTime" | "acceptedAt" | "identity" | "occurredAt" | "recordJson" | "reservationId" | "scopeKey" | "subscriptionJson");
|
|
4403
|
+
fieldPaths: "_id" | ("_creationTime" | "acceptedAt" | "identity" | "occurredAt" | "recordJson" | "reservationId" | "scopeKey" | "subscriptionId" | "subscriptionJson");
|
|
4308
4404
|
indexes: {
|
|
4309
4405
|
by_id: ["_id"];
|
|
4310
4406
|
by_creation_time: ["_creationTime"];
|
|
4311
4407
|
by_identity: ["identity", "_creationTime"];
|
|
4408
|
+
by_scope_subscription: ["scopeKey", "subscriptionId", "_creationTime"];
|
|
4312
4409
|
by_scope_time: ["scopeKey", "occurredAt", "_creationTime"];
|
|
4313
4410
|
};
|
|
4314
4411
|
searchIndexes: {};
|
|
@@ -4329,7 +4426,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4329
4426
|
nextAttemptAt: number;
|
|
4330
4427
|
provider?: string | undefined;
|
|
4331
4428
|
providerIdentifier: string;
|
|
4332
|
-
reason?: "administrative_hold" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined;
|
|
4429
|
+
reason?: "administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined;
|
|
4333
4430
|
receipt?: {
|
|
4334
4431
|
created: number;
|
|
4335
4432
|
identifier: string;
|
|
@@ -4385,6 +4482,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4385
4482
|
by_id: ["_id"];
|
|
4386
4483
|
by_creation_time: ["_creationTime"];
|
|
4387
4484
|
by_scope_source: ["scopeKey", "sourceEventId", "_creationTime"];
|
|
4485
|
+
by_scope_state: ["scopeKey", "state", "_creationTime"];
|
|
4388
4486
|
};
|
|
4389
4487
|
searchIndexes: {};
|
|
4390
4488
|
vectorIndexes: {};
|
|
@@ -4405,6 +4503,96 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4405
4503
|
searchIndexes: {};
|
|
4406
4504
|
vectorIndexes: {};
|
|
4407
4505
|
};
|
|
4506
|
+
usageSubscriptionControls: {
|
|
4507
|
+
document: {
|
|
4508
|
+
_creationTime: number;
|
|
4509
|
+
_id: import("convex/values").GenericId<"usageSubscriptionControls">;
|
|
4510
|
+
cancelAtPeriodEnd: boolean;
|
|
4511
|
+
firstAttemptAt: number;
|
|
4512
|
+
intentKey: string;
|
|
4513
|
+
key: string;
|
|
4514
|
+
operationId: string;
|
|
4515
|
+
resultJson?: string | undefined;
|
|
4516
|
+
};
|
|
4517
|
+
fieldPaths: "_id" | ("_creationTime" | "cancelAtPeriodEnd" | "firstAttemptAt" | "intentKey" | "key" | "operationId" | "resultJson");
|
|
4518
|
+
indexes: {
|
|
4519
|
+
by_id: ["_id"];
|
|
4520
|
+
by_creation_time: ["_creationTime"];
|
|
4521
|
+
by_key: ["key", "_creationTime"];
|
|
4522
|
+
};
|
|
4523
|
+
searchIndexes: {};
|
|
4524
|
+
vectorIndexes: {};
|
|
4525
|
+
};
|
|
4526
|
+
usageSubscriptionHistory: {
|
|
4527
|
+
document: {
|
|
4528
|
+
_creationTime: number;
|
|
4529
|
+
_id: import("convex/values").GenericId<"usageSubscriptionHistory">;
|
|
4530
|
+
fingerprint: string;
|
|
4531
|
+
intentKey: string;
|
|
4532
|
+
kind: "invoice" | "retirement" | "subscription";
|
|
4533
|
+
observationJson: string;
|
|
4534
|
+
resourceId: string;
|
|
4535
|
+
startedAt: number;
|
|
4536
|
+
};
|
|
4537
|
+
fieldPaths: "_id" | ("_creationTime" | "fingerprint" | "intentKey" | "kind" | "observationJson" | "resourceId" | "startedAt");
|
|
4538
|
+
indexes: {
|
|
4539
|
+
by_id: ["_id"];
|
|
4540
|
+
by_creation_time: ["_creationTime"];
|
|
4541
|
+
by_fingerprint: ["fingerprint", "_creationTime"];
|
|
4542
|
+
by_intent_kind: ["intentKey", "kind", "_creationTime"];
|
|
4543
|
+
};
|
|
4544
|
+
searchIndexes: {};
|
|
4545
|
+
vectorIndexes: {};
|
|
4546
|
+
};
|
|
4547
|
+
usageSubscriptionIntents: {
|
|
4548
|
+
document: {
|
|
4549
|
+
_creationTime: number;
|
|
4550
|
+
_id: import("convex/values").GenericId<"usageSubscriptionIntents">;
|
|
4551
|
+
abandonedId?: string | undefined;
|
|
4552
|
+
checkoutId?: string | undefined;
|
|
4553
|
+
controlKey?: string | undefined;
|
|
4554
|
+
firstAttemptAt: number;
|
|
4555
|
+
historyCount?: number | undefined;
|
|
4556
|
+
key: string;
|
|
4557
|
+
method: "checkout" | "direct";
|
|
4558
|
+
providerId?: string | undefined;
|
|
4559
|
+
retiredAt?: number | undefined;
|
|
4560
|
+
retirementInvoiceId?: string | undefined;
|
|
4561
|
+
scopeKey: string;
|
|
4562
|
+
startedAt?: number | undefined;
|
|
4563
|
+
termsJson: string;
|
|
4564
|
+
viewJson?: string | undefined;
|
|
4565
|
+
};
|
|
4566
|
+
fieldPaths: "_id" | ("_creationTime" | "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson");
|
|
4567
|
+
indexes: {
|
|
4568
|
+
by_id: ["_id"];
|
|
4569
|
+
by_creation_time: ["_creationTime"];
|
|
4570
|
+
by_key: ["key", "_creationTime"];
|
|
4571
|
+
by_provider: ["providerId", "_creationTime"];
|
|
4572
|
+
};
|
|
4573
|
+
searchIndexes: {};
|
|
4574
|
+
vectorIndexes: {};
|
|
4575
|
+
};
|
|
4576
|
+
usageSubscriptionLocks: {
|
|
4577
|
+
document: {
|
|
4578
|
+
_creationTime: number;
|
|
4579
|
+
_id: import("convex/values").GenericId<"usageSubscriptionLocks">;
|
|
4580
|
+
customerAccount: string;
|
|
4581
|
+
intentKey: string;
|
|
4582
|
+
key: string;
|
|
4583
|
+
stripeAccountId: string;
|
|
4584
|
+
};
|
|
4585
|
+
fieldPaths: "_id" | ("_creationTime" | "customerAccount" | "intentKey" | "key" | "stripeAccountId");
|
|
4586
|
+
indexes: {
|
|
4587
|
+
by_id: ["_id"];
|
|
4588
|
+
by_creation_time: ["_creationTime"];
|
|
4589
|
+
by_key: ["key", "_creationTime"];
|
|
4590
|
+
by_payer: ["customerAccount", "_creationTime"];
|
|
4591
|
+
by_realm: ["stripeAccountId", "_creationTime"];
|
|
4592
|
+
};
|
|
4593
|
+
searchIndexes: {};
|
|
4594
|
+
vectorIndexes: {};
|
|
4595
|
+
};
|
|
4408
4596
|
webhookEvents: {
|
|
4409
4597
|
document: {
|
|
4410
4598
|
_creationTime: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/component/earnings/triggers.ts"],"names":[],"mappings":"AA6GA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/component/earnings/triggers.ts"],"names":[],"mappings":"AA6GA,eAAO,MAAM,QAAQ;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAA0D,CAAC"}
|
|
@@ -163,10 +163,10 @@ export declare const snapshot: import("convex/server").RegisteredQuery<"public",
|
|
|
163
163
|
accountId: string;
|
|
164
164
|
ownerKey: string;
|
|
165
165
|
}, Promise<{
|
|
166
|
-
transfers?: undefined;
|
|
167
|
-
claims?: undefined;
|
|
168
166
|
status: "held";
|
|
169
167
|
reason: "snapshot_limit";
|
|
168
|
+
transfers?: undefined;
|
|
169
|
+
claims?: undefined;
|
|
170
170
|
} | {
|
|
171
171
|
reason?: undefined;
|
|
172
172
|
status: "ready";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/payoutRelease/queries.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIlB,CAAC;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiBd,CAAC;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BlB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;GAQf,CAAC;AAEH,4FAA4F;AAC5F,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/payoutRelease/queries.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIlB,CAAC;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiBd,CAAC;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BlB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;GAQf,CAAC;AAEH,4FAA4F;AAC5F,eAAO,MAAM,QAAQ;;;;YAsBE,MAAM;YAAmB,gBAAgB;;;;;YAS3C,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAE1B,CAAC"}
|
|
@@ -1,4 +1,88 @@
|
|
|
1
1
|
declare const _default: import("convex/server").SchemaDefinition<{
|
|
2
|
+
usageSubscriptionControls: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3
|
+
cancelAtPeriodEnd: boolean;
|
|
4
|
+
firstAttemptAt: number;
|
|
5
|
+
intentKey: string;
|
|
6
|
+
key: string;
|
|
7
|
+
operationId: string;
|
|
8
|
+
resultJson?: string | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
key: import("convex/values").VString<string, "required">;
|
|
11
|
+
intentKey: import("convex/values").VString<string, "required">;
|
|
12
|
+
operationId: import("convex/values").VString<string, "required">;
|
|
13
|
+
cancelAtPeriodEnd: import("convex/values").VBoolean<boolean, "required">;
|
|
14
|
+
firstAttemptAt: import("convex/values").VFloat64<number, "required">;
|
|
15
|
+
resultJson: import("convex/values").VString<string | undefined, "optional">;
|
|
16
|
+
}, "required", "cancelAtPeriodEnd" | "firstAttemptAt" | "intentKey" | "key" | "operationId" | "resultJson">, {
|
|
17
|
+
by_key: ["key", "_creationTime"];
|
|
18
|
+
}, {}, {}>;
|
|
19
|
+
usageSubscriptionIntents: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
20
|
+
abandonedId?: string | undefined;
|
|
21
|
+
checkoutId?: string | undefined;
|
|
22
|
+
controlKey?: string | undefined;
|
|
23
|
+
firstAttemptAt: number;
|
|
24
|
+
historyCount?: number | undefined;
|
|
25
|
+
key: string;
|
|
26
|
+
method: "checkout" | "direct";
|
|
27
|
+
providerId?: string | undefined;
|
|
28
|
+
retiredAt?: number | undefined;
|
|
29
|
+
retirementInvoiceId?: string | undefined;
|
|
30
|
+
scopeKey: string;
|
|
31
|
+
startedAt?: number | undefined;
|
|
32
|
+
termsJson: string;
|
|
33
|
+
viewJson?: string | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
key: import("convex/values").VString<string, "required">;
|
|
36
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
37
|
+
termsJson: import("convex/values").VString<string, "required">;
|
|
38
|
+
method: import("convex/values").VUnion<"checkout" | "direct", [import("convex/values").VLiteral<"direct", "required">, import("convex/values").VLiteral<"checkout", "required">], "required", never>;
|
|
39
|
+
firstAttemptAt: import("convex/values").VFloat64<number, "required">;
|
|
40
|
+
providerId: import("convex/values").VString<string | undefined, "optional">;
|
|
41
|
+
checkoutId: import("convex/values").VString<string | undefined, "optional">;
|
|
42
|
+
viewJson: import("convex/values").VString<string | undefined, "optional">;
|
|
43
|
+
startedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
44
|
+
controlKey: import("convex/values").VString<string | undefined, "optional">;
|
|
45
|
+
historyCount: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
46
|
+
retiredAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
47
|
+
abandonedId: import("convex/values").VString<string | undefined, "optional">;
|
|
48
|
+
retirementInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
49
|
+
}, "required", "abandonedId" | "checkoutId" | "controlKey" | "firstAttemptAt" | "historyCount" | "key" | "method" | "providerId" | "retiredAt" | "retirementInvoiceId" | "scopeKey" | "startedAt" | "termsJson" | "viewJson">, {
|
|
50
|
+
by_key: ["key", "_creationTime"];
|
|
51
|
+
by_provider: ["providerId", "_creationTime"];
|
|
52
|
+
}, {}, {}>;
|
|
53
|
+
usageSubscriptionLocks: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
54
|
+
customerAccount: string;
|
|
55
|
+
intentKey: string;
|
|
56
|
+
key: string;
|
|
57
|
+
stripeAccountId: string;
|
|
58
|
+
}, {
|
|
59
|
+
key: import("convex/values").VString<string, "required">;
|
|
60
|
+
intentKey: import("convex/values").VString<string, "required">;
|
|
61
|
+
stripeAccountId: import("convex/values").VString<string, "required">;
|
|
62
|
+
customerAccount: import("convex/values").VString<string, "required">;
|
|
63
|
+
}, "required", "customerAccount" | "intentKey" | "key" | "stripeAccountId">, {
|
|
64
|
+
by_key: ["key", "_creationTime"];
|
|
65
|
+
by_payer: ["customerAccount", "_creationTime"];
|
|
66
|
+
by_realm: ["stripeAccountId", "_creationTime"];
|
|
67
|
+
}, {}, {}>;
|
|
68
|
+
usageSubscriptionHistory: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
69
|
+
fingerprint: string;
|
|
70
|
+
intentKey: string;
|
|
71
|
+
kind: "invoice" | "retirement" | "subscription";
|
|
72
|
+
observationJson: string;
|
|
73
|
+
resourceId: string;
|
|
74
|
+
startedAt: number;
|
|
75
|
+
}, {
|
|
76
|
+
intentKey: import("convex/values").VString<string, "required">;
|
|
77
|
+
kind: import("convex/values").VUnion<"invoice" | "retirement" | "subscription", [import("convex/values").VLiteral<"subscription", "required">, import("convex/values").VLiteral<"invoice", "required">, import("convex/values").VLiteral<"retirement", "required">], "required", never>;
|
|
78
|
+
resourceId: import("convex/values").VString<string, "required">;
|
|
79
|
+
fingerprint: import("convex/values").VString<string, "required">;
|
|
80
|
+
observationJson: import("convex/values").VString<string, "required">;
|
|
81
|
+
startedAt: import("convex/values").VFloat64<number, "required">;
|
|
82
|
+
}, "required", "fingerprint" | "intentKey" | "kind" | "observationJson" | "resourceId" | "startedAt">, {
|
|
83
|
+
by_fingerprint: ["fingerprint", "_creationTime"];
|
|
84
|
+
by_intent_kind: ["intentKey", "kind", "_creationTime"];
|
|
85
|
+
}, {}, {}>;
|
|
2
86
|
usageProviderObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3
87
|
key: string;
|
|
4
88
|
observationJson: string;
|
|
@@ -66,6 +150,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
66
150
|
}, "required", "code" | "dedupe" | "eventId" | "observedAt" | "providerEventId" | "scopeKey">, {
|
|
67
151
|
by_dedupe: ["dedupe", "_creationTime"];
|
|
68
152
|
by_event: ["eventId", "_creationTime"];
|
|
153
|
+
by_scope: ["scopeKey", "_creationTime"];
|
|
69
154
|
}, {}, {}>;
|
|
70
155
|
usageCatalog: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
71
156
|
firstAttemptAt: number;
|
|
@@ -96,8 +181,10 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
96
181
|
recordJson: string;
|
|
97
182
|
reservationId?: import("convex/values").GenericId<"usageReservations"> | undefined;
|
|
98
183
|
scopeKey: string;
|
|
184
|
+
subscriptionId?: string | undefined;
|
|
99
185
|
subscriptionJson: string;
|
|
100
186
|
}, {
|
|
187
|
+
subscriptionId: import("convex/values").VString<string | undefined, "optional">;
|
|
101
188
|
reservationId: import("convex/values").VId<import("convex/values").GenericId<"usageReservations"> | undefined, "optional">;
|
|
102
189
|
scopeKey: import("convex/values").VString<string, "required">;
|
|
103
190
|
identity: import("convex/values").VString<string, "required">;
|
|
@@ -105,8 +192,9 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
105
192
|
subscriptionJson: import("convex/values").VString<string, "required">;
|
|
106
193
|
occurredAt: import("convex/values").VFloat64<number, "required">;
|
|
107
194
|
acceptedAt: import("convex/values").VFloat64<number, "required">;
|
|
108
|
-
}, "required", "acceptedAt" | "identity" | "occurredAt" | "recordJson" | "reservationId" | "scopeKey" | "subscriptionJson">, {
|
|
195
|
+
}, "required", "acceptedAt" | "identity" | "occurredAt" | "recordJson" | "reservationId" | "scopeKey" | "subscriptionId" | "subscriptionJson">, {
|
|
109
196
|
by_identity: ["identity", "_creationTime"];
|
|
197
|
+
by_scope_subscription: ["scopeKey", "subscriptionId", "_creationTime"];
|
|
110
198
|
by_scope_time: ["scopeKey", "occurredAt", "_creationTime"];
|
|
111
199
|
}, {}, {}>;
|
|
112
200
|
usageOutbox: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
@@ -121,7 +209,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
121
209
|
nextAttemptAt: number;
|
|
122
210
|
provider?: string | undefined;
|
|
123
211
|
providerIdentifier: string;
|
|
124
|
-
reason?: "administrative_hold" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined;
|
|
212
|
+
reason?: "administrative_hold" | "billing_period_closed" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined;
|
|
125
213
|
receipt?: {
|
|
126
214
|
created: number;
|
|
127
215
|
identifier: string;
|
|
@@ -137,7 +225,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
137
225
|
firstSendAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
138
226
|
leaseUntil: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
139
227
|
held: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
140
|
-
reason: import("convex/values").VUnion<"administrative_hold" | "delivery_window_expired" | "provider_outcome_unknown" | "provider_rejected" | "provider_unavailable" | "rate_limited" | "retry_exhausted" | "scope_busy" | undefined, [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>;
|
|
228
|
+
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>;
|
|
141
229
|
receipt: import("convex/values").VObject<{
|
|
142
230
|
created: number;
|
|
143
231
|
identifier: string;
|
|
@@ -183,6 +271,7 @@ declare const _default: import("convex/server").SchemaDefinition<{
|
|
|
183
271
|
eventId: import("convex/values").VId<import("convex/values").GenericId<"usageEvents"> | undefined, "optional">;
|
|
184
272
|
}, "required", "eventId" | "planJson" | "scaledQuantity" | "scopeKey" | "sourceEventId" | "state">, {
|
|
185
273
|
by_scope_source: ["scopeKey", "sourceEventId", "_creationTime"];
|
|
274
|
+
by_scope_state: ["scopeKey", "state", "_creationTime"];
|
|
186
275
|
}, {}, {}>;
|
|
187
276
|
refundSyncClaims: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
188
277
|
acceptedAt?: number | undefined;
|
package/dist/component/schema.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { controlsTable as usageSubscriptionControls, intentsTable as usageSubscriptionIntents, locksTable as usageSubscriptionLocks, historyTable as usageSubscriptionHistory, } from "./usageSubscriptions/schema.js";
|
|
1
2
|
import { historyTable as usageDeliveryHistory, observationsTable as usageProviderObservations, } from "./usageObservations/schema.js";
|
|
2
3
|
import { errorsTable as usageDeliveryErrors, locksTable as usageDeliveryLocks, } from "./usageDelivery/fields.js";
|
|
3
4
|
import { claimsTable as refundSyncClaimsTable } from "./refundSync/schema.js";
|
|
@@ -29,6 +30,10 @@ import { accountsTable } from "./core/schema";
|
|
|
29
30
|
import { pricesTable, productsTable } from "./products/schema";
|
|
30
31
|
import { webhookEventsTable } from "./webhooks/schema";
|
|
31
32
|
export default defineSchema({
|
|
33
|
+
usageSubscriptionControls,
|
|
34
|
+
usageSubscriptionIntents,
|
|
35
|
+
usageSubscriptionLocks,
|
|
36
|
+
usageSubscriptionHistory,
|
|
32
37
|
usageProviderObservations,
|
|
33
38
|
usageDeliveryHistory,
|
|
34
39
|
usageDeliveryLocks,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,IAAI,oBAAoB,EACpC,iBAAiB,IAAI,yBAAyB,GAC/C,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,WAAW,IAAI,mBAAmB,EAClC,UAAU,IAAI,kBAAkB,GACjC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,WAAW,IAAI,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAE,eAAe,IAAI,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AACrH,OAAO,EACL,eAAe,IAAI,0BAA0B,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AAmB;IACzC,kBAAkB,EAAE,iBAAiB;IACrC,oBAAoB,EAAE,yBAAyB;IAC/C,2BAA2B,EAAE,mBAAmB;IAChD,uBAAuB;IACvB,iBAAiB;IACjB,gBAAgB;IAChB,yBAAyB,EAAE,iBAAiB;IAC5C,yBAAyB,EAAE,8BAA8B;IACzD,gBAAgB,EAAE,qBAAqB;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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/usage/mutations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/usage/mutations.ts"],"names":[],"mappings":"AAYA,4FAA4F;AAC5F,eAAO,MAAM,MAAM;;;;;;;;;;cA+CD,QAAQ;GAmFxB,CAAC"}
|