@fantastic.dev/better-stripe 0.71.0 → 0.72.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/client/billing/checkoutPages.d.ts.map +1 -1
- package/dist/client/billing/checkoutPages.js +0 -1
- package/dist/client/billing/checkoutPages.js.map +1 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +524 -50
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +246 -9
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +524 -50
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +246 -9
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/paymentSource/resolver.d.ts +6 -1
- package/dist/client/paymentSource/resolver.d.ts.map +1 -1
- package/dist/client/paymentSource/resolver.js +49 -41
- package/dist/client/paymentSource/resolver.js.map +1 -1
- package/dist/client/processingCostReconciliation/provider.d.ts.map +1 -1
- package/dist/client/processingCostReconciliation/provider.js +14 -2
- package/dist/client/processingCostReconciliation/provider.js.map +1 -1
- package/dist/client/settlement/authorization.fixture.d.ts +26 -0
- package/dist/client/settlement/authorization.fixture.d.ts.map +1 -1
- package/dist/client/settlement/execution.d.ts +2 -0
- package/dist/client/settlement/execution.d.ts.map +1 -1
- package/dist/client/settlement/execution.js.map +1 -1
- package/dist/client/usage/index.d.ts +1 -0
- package/dist/client/usage/index.d.ts.map +1 -1
- package/dist/client/usage/invoiceSale.d.ts +8 -0
- package/dist/client/usage/invoiceSale.d.ts.map +1 -1
- package/dist/client/usage/invoiceSale.js +3 -0
- package/dist/client/usage/invoiceSale.js.map +1 -1
- package/dist/client/usage/mixedInvoice.fixtures.d.ts +315 -0
- package/dist/client/usage/mixedInvoice.fixtures.d.ts.map +1 -0
- package/dist/client/usage/mixedInvoice.fixtures.js +55 -0
- package/dist/client/usage/mixedInvoice.fixtures.js.map +1 -0
- package/dist/client/usage/mixedInvoiceSale.d.ts +6 -0
- package/dist/client/usage/mixedInvoiceSale.d.ts.map +1 -0
- package/dist/client/usage/mixedInvoiceSale.js +160 -0
- package/dist/client/usage/mixedInvoiceSale.js.map +1 -0
- package/dist/client/usage/observationClient.d.ts +2 -2
- package/dist/client/usage/observationClient.d.ts.map +1 -1
- package/dist/client/usage/retainedInvoiceSource.d.ts +20 -0
- package/dist/client/usage/retainedInvoiceSource.d.ts.map +1 -0
- package/dist/client/usage/retainedInvoiceSource.js +92 -0
- package/dist/client/usage/retainedInvoiceSource.js.map +1 -0
- package/dist/client/usage/settlement.d.ts +5 -0
- package/dist/client/usage/settlement.d.ts.map +1 -1
- package/dist/client/usage/settlement.js +28 -9
- package/dist/client/usage/settlement.js.map +1 -1
- package/dist/component/_generated/component.d.ts +65 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
- package/dist/component/balanceFunding/mutations.d.ts +16 -16
- package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
- package/dist/component/balanceFunding/workflowValidators.d.ts +16 -16
- package/dist/component/earnings/triggers.d.ts +84 -6
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/processingCostReconciliation/rollback.d.ts +1 -1
- package/dist/component/recoveryWorkflow/helpers.d.ts +13 -0
- package/dist/component/recoveryWorkflow/helpers.d.ts.map +1 -1
- package/dist/component/recoveryWorkflow/mutations.d.ts +13 -0
- package/dist/component/recoveryWorkflow/mutations.d.ts.map +1 -1
- package/dist/component/recoveryWorkflow/queries.d.ts +26 -0
- package/dist/component/recoveryWorkflow/queries.d.ts.map +1 -1
- package/dist/component/recoveryWorkflow/schema.d.ts +464 -16
- package/dist/component/recoveryWorkflow/schema.d.ts.map +1 -1
- package/dist/component/schema.d.ts +246 -9
- package/dist/component/settlement/mutations.d.ts +26 -0
- package/dist/component/settlement/mutations.d.ts.map +1 -1
- package/dist/component/settlement/queries.d.ts +13 -0
- package/dist/component/settlement/queries.d.ts.map +1 -1
- package/dist/component/settlement/schema.d.ts +122 -3
- package/dist/component/settlement/schema.d.ts.map +1 -1
- package/dist/component/settlement/schema.js +2 -0
- package/dist/component/settlement/schema.js.map +1 -1
- package/dist/component/usage/allowance.fixtures.d.ts +262 -25
- package/dist/component/usage/allowance.fixtures.d.ts.map +1 -1
- package/dist/component/usageCredits/accounting.fixtures.d.ts +246 -9
- package/dist/component/usageCredits/accounting.fixtures.d.ts.map +1 -1
- package/dist/shared/usageInvoiceLines.d.ts +32 -0
- package/dist/shared/usageInvoiceLines.d.ts.map +1 -0
- package/dist/shared/usageInvoiceLines.js +13 -0
- package/dist/shared/usageInvoiceLines.js.map +1 -0
- package/docs/checkout-session-pages.md +5 -0
- package/docs/evidence/native-metering/mixed-settlement-2026-10-20.json +284 -0
- package/docs/metering-setup.md +3 -2
- package/docs/usage-example.md +24 -5
- package/docs/usage-settlement.md +74 -8
- package/docs/usage-verification.md +22 -2
- package/package.json +1 -1
- package/src/client/billing/checkoutPages.test.ts +20 -1
- package/src/client/billing/checkoutPages.ts +0 -1
- package/src/client/paymentSource/resolver.ts +80 -59
- package/src/client/processingCostReconciliation/provider.ts +20 -2
- package/src/client/settlement/execution.ts +2 -0
- package/src/client/usage/index.ts +2 -0
- package/src/client/usage/invoiceSale.ts +10 -0
- package/src/client/usage/mixedInvoice.fixtures.ts +54 -0
- package/src/client/usage/mixedInvoiceSale.test.ts +92 -0
- package/src/client/usage/mixedInvoiceSale.ts +196 -0
- package/src/client/usage/mixedSettlement.test.ts +187 -0
- package/src/client/usage/retainedInvoiceSource.ts +118 -0
- package/src/client/usage/settlement.ts +47 -9
- package/src/component/_generated/component.ts +50 -0
- package/src/component/settlement/schema.ts +2 -0
- package/src/shared/usageInvoiceLines.ts +14 -0
|
@@ -9,17 +9,6 @@ export declare const bridge: import("convex/server").RegisteredAction<"internal"
|
|
|
9
9
|
stripeSubscriptionId: string;
|
|
10
10
|
version: number;
|
|
11
11
|
}, Promise<{
|
|
12
|
-
status: "ready";
|
|
13
|
-
value: {
|
|
14
|
-
customerAccount: string;
|
|
15
|
-
enabled?: boolean | undefined;
|
|
16
|
-
paymentMethodId: string | null;
|
|
17
|
-
paymentMethodTypes?: string[] | null | undefined;
|
|
18
|
-
phase: "apply" | "attach" | "create";
|
|
19
|
-
providerApiVersion: string;
|
|
20
|
-
stripeSubscriptionId: string;
|
|
21
|
-
};
|
|
22
|
-
} | {
|
|
23
12
|
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
24
13
|
retryable: false;
|
|
25
14
|
status: "unknown";
|
|
@@ -35,5 +24,16 @@ export declare const bridge: import("convex/server").RegisteredAction<"internal"
|
|
|
35
24
|
reason: "provider_pending";
|
|
36
25
|
retryable: true;
|
|
37
26
|
status: "not_ready";
|
|
27
|
+
} | {
|
|
28
|
+
status: "ready";
|
|
29
|
+
value: {
|
|
30
|
+
customerAccount: string;
|
|
31
|
+
enabled?: boolean | undefined;
|
|
32
|
+
paymentMethodId: string | null;
|
|
33
|
+
paymentMethodTypes?: string[] | null | undefined;
|
|
34
|
+
phase: "apply" | "attach" | "create";
|
|
35
|
+
providerApiVersion: string;
|
|
36
|
+
stripeSubscriptionId: string;
|
|
37
|
+
};
|
|
38
38
|
}>>;
|
|
39
39
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -22,14 +22,6 @@ export declare const begin: import("convex/server").RegisteredMutation<"public",
|
|
|
22
22
|
requestKey: string;
|
|
23
23
|
scopeKey: string;
|
|
24
24
|
}, Promise<{
|
|
25
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
26
|
-
retryable: false;
|
|
27
|
-
status: "conflict";
|
|
28
|
-
} | {
|
|
29
|
-
reason: "policy_invalid";
|
|
30
|
-
retryable: false;
|
|
31
|
-
status: "rejected";
|
|
32
|
-
} | {
|
|
33
25
|
operation: {
|
|
34
26
|
accountId: string;
|
|
35
27
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -40,6 +32,14 @@ export declare const begin: import("convex/server").RegisteredMutation<"public",
|
|
|
40
32
|
} | {
|
|
41
33
|
enabled: boolean;
|
|
42
34
|
status: "unchanged";
|
|
35
|
+
} | {
|
|
36
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
37
|
+
retryable: false;
|
|
38
|
+
status: "conflict";
|
|
39
|
+
} | {
|
|
40
|
+
reason: "policy_invalid";
|
|
41
|
+
retryable: false;
|
|
42
|
+
status: "rejected";
|
|
43
43
|
} | {
|
|
44
44
|
reason: "provider_pending";
|
|
45
45
|
retryable: true;
|
|
@@ -395,14 +395,6 @@ export declare const prepare: import("convex/server").RegisteredMutation<"public
|
|
|
395
395
|
requestKey: string;
|
|
396
396
|
scopeKey: string;
|
|
397
397
|
}, Promise<{
|
|
398
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
399
|
-
retryable: false;
|
|
400
|
-
status: "conflict";
|
|
401
|
-
} | {
|
|
402
|
-
reason: "policy_invalid";
|
|
403
|
-
retryable: false;
|
|
404
|
-
status: "rejected";
|
|
405
|
-
} | {
|
|
406
398
|
operation: {
|
|
407
399
|
accountId: string;
|
|
408
400
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -413,6 +405,14 @@ export declare const prepare: import("convex/server").RegisteredMutation<"public
|
|
|
413
405
|
} | {
|
|
414
406
|
enabled: boolean;
|
|
415
407
|
status: "unchanged";
|
|
408
|
+
} | {
|
|
409
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
410
|
+
retryable: false;
|
|
411
|
+
status: "conflict";
|
|
412
|
+
} | {
|
|
413
|
+
reason: "policy_invalid";
|
|
414
|
+
retryable: false;
|
|
415
|
+
status: "rejected";
|
|
416
416
|
} | {
|
|
417
417
|
reason: "provider_pending";
|
|
418
418
|
retryable: true;
|
|
@@ -2,14 +2,6 @@ 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
|
-
} | {
|
|
13
5
|
operation: {
|
|
14
6
|
accountId: string;
|
|
15
7
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -20,6 +12,14 @@ export declare function prepareHandler(ctx: MutationCtx, args: Infer<typeof prep
|
|
|
20
12
|
} | {
|
|
21
13
|
enabled: boolean;
|
|
22
14
|
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,22 +60,6 @@ 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
|
-
} | {
|
|
79
63
|
operation: {
|
|
80
64
|
accountId: string;
|
|
81
65
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -92,6 +76,22 @@ export declare const workflowStartResult: import("convex/values").VUnion<{
|
|
|
92
76
|
version: number;
|
|
93
77
|
};
|
|
94
78
|
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;
|
|
@@ -1799,6 +1799,19 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1799
1799
|
}[];
|
|
1800
1800
|
usageSource?: {
|
|
1801
1801
|
customerAccount: string;
|
|
1802
|
+
invoiceLines?: {
|
|
1803
|
+
amount: number;
|
|
1804
|
+
kind: "fixed" | "metered";
|
|
1805
|
+
lineId: string;
|
|
1806
|
+
period: {
|
|
1807
|
+
end: number;
|
|
1808
|
+
start: number;
|
|
1809
|
+
};
|
|
1810
|
+
quantity: string;
|
|
1811
|
+
stripePriceId: string;
|
|
1812
|
+
stripeProductId: string;
|
|
1813
|
+
subscriptionItemId: string;
|
|
1814
|
+
}[] | undefined;
|
|
1802
1815
|
invoicePaymentId: string;
|
|
1803
1816
|
livemode: boolean;
|
|
1804
1817
|
meterId: string;
|
|
@@ -1834,7 +1847,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1834
1847
|
version: number;
|
|
1835
1848
|
workflowId?: string | undefined;
|
|
1836
1849
|
};
|
|
1837
|
-
fieldPaths: "_id" | ("_creationTime" | "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.policyContext" | "allocation.policyContext.fields" | "allocation.policyContext.namespace" | "allocation.policyContext.version" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId" | `allocation.policyContext.fields.${string}`);
|
|
1850
|
+
fieldPaths: "_id" | ("_creationTime" | "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.policyContext" | "allocation.policyContext.fields" | "allocation.policyContext.namespace" | "allocation.policyContext.version" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoiceLines" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId" | `allocation.policyContext.fields.${string}`);
|
|
1838
1851
|
indexes: {
|
|
1839
1852
|
by_id: ["_id"];
|
|
1840
1853
|
by_creation_time: ["_creationTime"];
|
|
@@ -1881,6 +1894,19 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1881
1894
|
}[];
|
|
1882
1895
|
usageSource?: {
|
|
1883
1896
|
customerAccount: string;
|
|
1897
|
+
invoiceLines?: {
|
|
1898
|
+
amount: number;
|
|
1899
|
+
kind: "fixed" | "metered";
|
|
1900
|
+
lineId: string;
|
|
1901
|
+
period: {
|
|
1902
|
+
end: number;
|
|
1903
|
+
start: number;
|
|
1904
|
+
};
|
|
1905
|
+
quantity: string;
|
|
1906
|
+
stripePriceId: string;
|
|
1907
|
+
stripeProductId: string;
|
|
1908
|
+
subscriptionItemId: string;
|
|
1909
|
+
}[] | undefined;
|
|
1884
1910
|
invoicePaymentId: string;
|
|
1885
1911
|
livemode: boolean;
|
|
1886
1912
|
meterId: string;
|
|
@@ -1910,7 +1936,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1910
1936
|
operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
|
|
1911
1937
|
requestKey: string;
|
|
1912
1938
|
};
|
|
1913
|
-
fieldPaths: "_id" | ("_creationTime" | "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.creditSource" | "binding.allocation.creditSource.creditGrantId" | "binding.allocation.creditSource.customerAccount" | "binding.allocation.creditSource.livemode" | "binding.allocation.creditSource.purchaseId" | "binding.allocation.creditSource.stripeAccountId" | "binding.allocation.creditSource.stripePriceId" | "binding.allocation.creditSource.stripeProductId" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.policyContext" | "binding.allocation.policyContext.fields" | "binding.allocation.policyContext.namespace" | "binding.allocation.policyContext.version" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.allocation.usageSource" | "binding.allocation.usageSource.customerAccount" | "binding.allocation.usageSource.invoicePaymentId" | "binding.allocation.usageSource.livemode" | "binding.allocation.usageSource.meterId" | "binding.allocation.usageSource.model" | "binding.allocation.usageSource.period" | "binding.allocation.usageSource.period.end" | "binding.allocation.usageSource.period.start" | "binding.allocation.usageSource.stripeAccountId" | "binding.allocation.usageSource.stripePriceId" | "binding.allocation.usageSource.stripeProductId" | "binding.allocation.usageSource.subscriptionId" | "binding.allocation.usageSource.subscriptionItemId" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey" | `binding.allocation.policyContext.fields.${string}`);
|
|
1939
|
+
fieldPaths: "_id" | ("_creationTime" | "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.creditSource" | "binding.allocation.creditSource.creditGrantId" | "binding.allocation.creditSource.customerAccount" | "binding.allocation.creditSource.livemode" | "binding.allocation.creditSource.purchaseId" | "binding.allocation.creditSource.stripeAccountId" | "binding.allocation.creditSource.stripePriceId" | "binding.allocation.creditSource.stripeProductId" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.policyContext" | "binding.allocation.policyContext.fields" | "binding.allocation.policyContext.namespace" | "binding.allocation.policyContext.version" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.allocation.usageSource" | "binding.allocation.usageSource.customerAccount" | "binding.allocation.usageSource.invoiceLines" | "binding.allocation.usageSource.invoicePaymentId" | "binding.allocation.usageSource.livemode" | "binding.allocation.usageSource.meterId" | "binding.allocation.usageSource.model" | "binding.allocation.usageSource.period" | "binding.allocation.usageSource.period.end" | "binding.allocation.usageSource.period.start" | "binding.allocation.usageSource.stripeAccountId" | "binding.allocation.usageSource.stripePriceId" | "binding.allocation.usageSource.stripeProductId" | "binding.allocation.usageSource.subscriptionId" | "binding.allocation.usageSource.subscriptionItemId" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey" | `binding.allocation.policyContext.fields.${string}`);
|
|
1914
1940
|
indexes: {
|
|
1915
1941
|
by_id: ["_id"];
|
|
1916
1942
|
by_creation_time: ["_creationTime"];
|
|
@@ -2139,6 +2165,19 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2139
2165
|
}[];
|
|
2140
2166
|
usageSource?: {
|
|
2141
2167
|
customerAccount: string;
|
|
2168
|
+
invoiceLines?: {
|
|
2169
|
+
amount: number;
|
|
2170
|
+
kind: "fixed" | "metered";
|
|
2171
|
+
lineId: string;
|
|
2172
|
+
period: {
|
|
2173
|
+
end: number;
|
|
2174
|
+
start: number;
|
|
2175
|
+
};
|
|
2176
|
+
quantity: string;
|
|
2177
|
+
stripePriceId: string;
|
|
2178
|
+
stripeProductId: string;
|
|
2179
|
+
subscriptionItemId: string;
|
|
2180
|
+
}[] | undefined;
|
|
2142
2181
|
invoicePaymentId: string;
|
|
2143
2182
|
livemode: boolean;
|
|
2144
2183
|
meterId: string;
|
|
@@ -2154,7 +2193,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2154
2193
|
subscriptionItemId: string;
|
|
2155
2194
|
} | undefined;
|
|
2156
2195
|
};
|
|
2157
|
-
fieldPaths: "_id" | ("_creationTime" | "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`);
|
|
2196
|
+
fieldPaths: "_id" | ("_creationTime" | "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoiceLines" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`);
|
|
2158
2197
|
indexes: {
|
|
2159
2198
|
by_id: ["_id"];
|
|
2160
2199
|
by_creation_time: ["_creationTime"];
|
|
@@ -4658,6 +4697,19 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4658
4697
|
}[];
|
|
4659
4698
|
usageSource?: {
|
|
4660
4699
|
customerAccount: string;
|
|
4700
|
+
invoiceLines?: {
|
|
4701
|
+
amount: number;
|
|
4702
|
+
kind: "fixed" | "metered";
|
|
4703
|
+
lineId: string;
|
|
4704
|
+
period: {
|
|
4705
|
+
end: number;
|
|
4706
|
+
start: number;
|
|
4707
|
+
};
|
|
4708
|
+
quantity: string;
|
|
4709
|
+
stripePriceId: string;
|
|
4710
|
+
stripeProductId: string;
|
|
4711
|
+
subscriptionItemId: string;
|
|
4712
|
+
}[] | undefined;
|
|
4661
4713
|
invoicePaymentId: string;
|
|
4662
4714
|
livemode: boolean;
|
|
4663
4715
|
meterId: string;
|
|
@@ -4693,7 +4745,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4693
4745
|
version: number;
|
|
4694
4746
|
workflowId?: string | undefined;
|
|
4695
4747
|
};
|
|
4696
|
-
fieldPaths: "_id" | ("_creationTime" | "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.policyContext" | "allocation.policyContext.fields" | "allocation.policyContext.namespace" | "allocation.policyContext.version" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId" | `allocation.policyContext.fields.${string}`);
|
|
4748
|
+
fieldPaths: "_id" | ("_creationTime" | "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.creditSource" | "allocation.creditSource.creditGrantId" | "allocation.creditSource.customerAccount" | "allocation.creditSource.livemode" | "allocation.creditSource.purchaseId" | "allocation.creditSource.stripeAccountId" | "allocation.creditSource.stripePriceId" | "allocation.creditSource.stripeProductId" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.policyContext" | "allocation.policyContext.fields" | "allocation.policyContext.namespace" | "allocation.policyContext.version" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "allocation.usageSource" | "allocation.usageSource.customerAccount" | "allocation.usageSource.invoiceLines" | "allocation.usageSource.invoicePaymentId" | "allocation.usageSource.livemode" | "allocation.usageSource.meterId" | "allocation.usageSource.model" | "allocation.usageSource.period" | "allocation.usageSource.period.end" | "allocation.usageSource.period.start" | "allocation.usageSource.stripeAccountId" | "allocation.usageSource.stripePriceId" | "allocation.usageSource.stripeProductId" | "allocation.usageSource.subscriptionId" | "allocation.usageSource.subscriptionItemId" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId" | `allocation.policyContext.fields.${string}`);
|
|
4697
4749
|
indexes: {
|
|
4698
4750
|
by_id: ["_id"];
|
|
4699
4751
|
by_creation_time: ["_creationTime"];
|
|
@@ -4740,6 +4792,19 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4740
4792
|
}[];
|
|
4741
4793
|
usageSource?: {
|
|
4742
4794
|
customerAccount: string;
|
|
4795
|
+
invoiceLines?: {
|
|
4796
|
+
amount: number;
|
|
4797
|
+
kind: "fixed" | "metered";
|
|
4798
|
+
lineId: string;
|
|
4799
|
+
period: {
|
|
4800
|
+
end: number;
|
|
4801
|
+
start: number;
|
|
4802
|
+
};
|
|
4803
|
+
quantity: string;
|
|
4804
|
+
stripePriceId: string;
|
|
4805
|
+
stripeProductId: string;
|
|
4806
|
+
subscriptionItemId: string;
|
|
4807
|
+
}[] | undefined;
|
|
4743
4808
|
invoicePaymentId: string;
|
|
4744
4809
|
livemode: boolean;
|
|
4745
4810
|
meterId: string;
|
|
@@ -4769,7 +4834,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4769
4834
|
operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
|
|
4770
4835
|
requestKey: string;
|
|
4771
4836
|
};
|
|
4772
|
-
fieldPaths: "_id" | ("_creationTime" | "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.creditSource" | "binding.allocation.creditSource.creditGrantId" | "binding.allocation.creditSource.customerAccount" | "binding.allocation.creditSource.livemode" | "binding.allocation.creditSource.purchaseId" | "binding.allocation.creditSource.stripeAccountId" | "binding.allocation.creditSource.stripePriceId" | "binding.allocation.creditSource.stripeProductId" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.policyContext" | "binding.allocation.policyContext.fields" | "binding.allocation.policyContext.namespace" | "binding.allocation.policyContext.version" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.allocation.usageSource" | "binding.allocation.usageSource.customerAccount" | "binding.allocation.usageSource.invoicePaymentId" | "binding.allocation.usageSource.livemode" | "binding.allocation.usageSource.meterId" | "binding.allocation.usageSource.model" | "binding.allocation.usageSource.period" | "binding.allocation.usageSource.period.end" | "binding.allocation.usageSource.period.start" | "binding.allocation.usageSource.stripeAccountId" | "binding.allocation.usageSource.stripePriceId" | "binding.allocation.usageSource.stripeProductId" | "binding.allocation.usageSource.subscriptionId" | "binding.allocation.usageSource.subscriptionItemId" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey" | `binding.allocation.policyContext.fields.${string}`);
|
|
4837
|
+
fieldPaths: "_id" | ("_creationTime" | "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "binding.allocation.creditSource" | "binding.allocation.creditSource.creditGrantId" | "binding.allocation.creditSource.customerAccount" | "binding.allocation.creditSource.livemode" | "binding.allocation.creditSource.purchaseId" | "binding.allocation.creditSource.stripeAccountId" | "binding.allocation.creditSource.stripePriceId" | "binding.allocation.creditSource.stripeProductId" | "binding.allocation.currency" | "binding.allocation.gross" | "binding.allocation.paymentId" | "binding.allocation.paymentIntentId" | "binding.allocation.platformNet" | "binding.allocation.policyContext" | "binding.allocation.policyContext.fields" | "binding.allocation.policyContext.namespace" | "binding.allocation.policyContext.version" | "binding.allocation.processingFee" | "binding.allocation.sourceChargeId" | "binding.allocation.sourceInvoiceId" | "binding.allocation.transfers" | "binding.allocation.usageSource" | "binding.allocation.usageSource.customerAccount" | "binding.allocation.usageSource.invoiceLines" | "binding.allocation.usageSource.invoicePaymentId" | "binding.allocation.usageSource.livemode" | "binding.allocation.usageSource.meterId" | "binding.allocation.usageSource.model" | "binding.allocation.usageSource.period" | "binding.allocation.usageSource.period.end" | "binding.allocation.usageSource.period.start" | "binding.allocation.usageSource.stripeAccountId" | "binding.allocation.usageSource.stripePriceId" | "binding.allocation.usageSource.stripeProductId" | "binding.allocation.usageSource.subscriptionId" | "binding.allocation.usageSource.subscriptionItemId" | "binding.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey" | `binding.allocation.policyContext.fields.${string}`);
|
|
4773
4838
|
indexes: {
|
|
4774
4839
|
by_id: ["_id"];
|
|
4775
4840
|
by_creation_time: ["_creationTime"];
|
|
@@ -4998,6 +5063,19 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4998
5063
|
}[];
|
|
4999
5064
|
usageSource?: {
|
|
5000
5065
|
customerAccount: string;
|
|
5066
|
+
invoiceLines?: {
|
|
5067
|
+
amount: number;
|
|
5068
|
+
kind: "fixed" | "metered";
|
|
5069
|
+
lineId: string;
|
|
5070
|
+
period: {
|
|
5071
|
+
end: number;
|
|
5072
|
+
start: number;
|
|
5073
|
+
};
|
|
5074
|
+
quantity: string;
|
|
5075
|
+
stripePriceId: string;
|
|
5076
|
+
stripeProductId: string;
|
|
5077
|
+
subscriptionItemId: string;
|
|
5078
|
+
}[] | undefined;
|
|
5001
5079
|
invoicePaymentId: string;
|
|
5002
5080
|
livemode: boolean;
|
|
5003
5081
|
meterId: string;
|
|
@@ -5013,7 +5091,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
5013
5091
|
subscriptionItemId: string;
|
|
5014
5092
|
} | undefined;
|
|
5015
5093
|
};
|
|
5016
|
-
fieldPaths: "_id" | ("_creationTime" | "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`);
|
|
5094
|
+
fieldPaths: "_id" | ("_creationTime" | "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "policyContext" | "policyContext.fields" | "policyContext.namespace" | "policyContext.version" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers" | "usageSource" | "usageSource.customerAccount" | "usageSource.invoiceLines" | "usageSource.invoicePaymentId" | "usageSource.livemode" | "usageSource.meterId" | "usageSource.model" | "usageSource.period" | "usageSource.period.end" | "usageSource.period.start" | "usageSource.stripeAccountId" | "usageSource.stripePriceId" | "usageSource.stripeProductId" | "usageSource.subscriptionId" | "usageSource.subscriptionItemId" | `policyContext.fields.${string}`);
|
|
5017
5095
|
indexes: {
|
|
5018
5096
|
by_id: ["_id"];
|
|
5019
5097
|
by_creation_time: ["_creationTime"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/component/earnings/triggers.ts"],"names":[],"mappings":"AA6GA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../../../src/component/earnings/triggers.ts"],"names":[],"mappings":"AA6GA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAA0D,CAAC"}
|
|
@@ -14,7 +14,7 @@ export declare function checkRollback(ctx: MutationCtx, op: Doc<"processingCostR
|
|
|
14
14
|
readonly bindFunding?: undefined;
|
|
15
15
|
} | {
|
|
16
16
|
reason?: undefined;
|
|
17
|
-
retryable?: undefined;
|
|
17
|
+
readonly retryable?: undefined;
|
|
18
18
|
readonly status: "ready";
|
|
19
19
|
readonly bindFunding: boolean;
|
|
20
20
|
}>;
|
|
@@ -72,6 +72,19 @@ export declare function read(ctx: QueryCtx | MutationCtx, args: OperationRef): P
|
|
|
72
72
|
}[];
|
|
73
73
|
usageSource?: {
|
|
74
74
|
customerAccount: string;
|
|
75
|
+
invoiceLines?: {
|
|
76
|
+
amount: number;
|
|
77
|
+
kind: "fixed" | "metered";
|
|
78
|
+
lineId: string;
|
|
79
|
+
period: {
|
|
80
|
+
end: number;
|
|
81
|
+
start: number;
|
|
82
|
+
};
|
|
83
|
+
quantity: string;
|
|
84
|
+
stripePriceId: string;
|
|
85
|
+
stripeProductId: string;
|
|
86
|
+
subscriptionItemId: string;
|
|
87
|
+
}[] | undefined;
|
|
75
88
|
invoicePaymentId: string;
|
|
76
89
|
livemode: boolean;
|
|
77
90
|
meterId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,KAAK,EAAE,MAA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Y;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUzE;AACD,kFAAkF;AAClF,wBAAgB,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAapD"}
|
|
@@ -31,6 +31,19 @@ export declare const start: import("convex/server").RegisteredMutation<"public",
|
|
|
31
31
|
}[];
|
|
32
32
|
usageSource?: {
|
|
33
33
|
customerAccount: string;
|
|
34
|
+
invoiceLines?: {
|
|
35
|
+
amount: number;
|
|
36
|
+
kind: "fixed" | "metered";
|
|
37
|
+
lineId: string;
|
|
38
|
+
period: {
|
|
39
|
+
end: number;
|
|
40
|
+
start: number;
|
|
41
|
+
};
|
|
42
|
+
quantity: string;
|
|
43
|
+
stripePriceId: string;
|
|
44
|
+
stripeProductId: string;
|
|
45
|
+
subscriptionItemId: string;
|
|
46
|
+
}[] | undefined;
|
|
34
47
|
invoicePaymentId: string;
|
|
35
48
|
livemode: boolean;
|
|
36
49
|
meterId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/mutations.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/mutations.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA8DF,WAAW;qBACX,oBAAoB;;GAwElC,CAAC;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;GAYxB,CAAC;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;GAyDjB,CAAC"}
|
|
@@ -62,6 +62,19 @@ export declare const snapshot: import("convex/server").RegisteredQuery<"public",
|
|
|
62
62
|
}[];
|
|
63
63
|
usageSource?: {
|
|
64
64
|
customerAccount: string;
|
|
65
|
+
invoiceLines?: {
|
|
66
|
+
amount: number;
|
|
67
|
+
kind: "fixed" | "metered";
|
|
68
|
+
lineId: string;
|
|
69
|
+
period: {
|
|
70
|
+
end: number;
|
|
71
|
+
start: number;
|
|
72
|
+
};
|
|
73
|
+
quantity: string;
|
|
74
|
+
stripePriceId: string;
|
|
75
|
+
stripeProductId: string;
|
|
76
|
+
subscriptionItemId: string;
|
|
77
|
+
}[] | undefined;
|
|
65
78
|
invoicePaymentId: string;
|
|
66
79
|
livemode: boolean;
|
|
67
80
|
meterId: string;
|
|
@@ -140,6 +153,19 @@ export declare const saved: import("convex/server").RegisteredQuery<"internal",
|
|
|
140
153
|
}[];
|
|
141
154
|
usageSource?: {
|
|
142
155
|
customerAccount: string;
|
|
156
|
+
invoiceLines?: {
|
|
157
|
+
amount: number;
|
|
158
|
+
kind: "fixed" | "metered";
|
|
159
|
+
lineId: string;
|
|
160
|
+
period: {
|
|
161
|
+
end: number;
|
|
162
|
+
start: number;
|
|
163
|
+
};
|
|
164
|
+
quantity: string;
|
|
165
|
+
stripePriceId: string;
|
|
166
|
+
stripeProductId: string;
|
|
167
|
+
subscriptionItemId: string;
|
|
168
|
+
}[] | undefined;
|
|
143
169
|
invoicePaymentId: string;
|
|
144
170
|
livemode: boolean;
|
|
145
171
|
meterId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/queries.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;GAId,CAAC;AACH,gGAAgG;AAChG,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/queries.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;GAId,CAAC;AACH,gGAAgG;AAChG,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAInB,CAAC;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIhB,CAAC"}
|