@fantastic.dev/better-stripe 0.66.0 → 0.67.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 +22 -0
- package/README.md +17 -20
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +126 -12
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +79 -22
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +158 -44
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +63 -6
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/recoveryWorkflow/provider.fixture.d.ts +21 -0
- package/dist/client/recoveryWorkflow/provider.fixture.d.ts.map +1 -0
- package/dist/client/recoveryWorkflow/provider.fixture.js +125 -0
- package/dist/client/recoveryWorkflow/provider.fixture.js.map +1 -0
- package/dist/client/settlement/authorization.d.ts.map +1 -1
- package/dist/client/settlement/authorization.fixture.d.ts +10 -0
- package/dist/client/settlement/authorization.fixture.d.ts.map +1 -1
- package/dist/client/settlement/authorization.js +1 -0
- package/dist/client/settlement/authorization.js.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 +3 -0
- package/dist/client/settlement/execution.js.map +1 -1
- package/dist/client/settlement/settleSale.d.ts +2 -0
- package/dist/client/settlement/settleSale.d.ts.map +1 -1
- package/dist/client/settlement/settleSale.js +4 -0
- package/dist/client/settlement/settleSale.js.map +1 -1
- package/dist/client/usage/observationClient.d.ts +2 -2
- package/dist/client/usage/observationClient.d.ts.map +1 -1
- package/dist/component/_generated/component.d.ts +25 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/balanceFunding/mutations.d.ts +27 -27
- package/dist/component/balanceFunding/queries.d.ts +1 -1
- package/dist/component/earnings/triggers.d.ts +36 -6
- 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/recoveryWorkflow/helpers.d.ts +5 -0
- package/dist/component/recoveryWorkflow/helpers.d.ts.map +1 -1
- package/dist/component/recoveryWorkflow/mutations.d.ts +5 -0
- package/dist/component/recoveryWorkflow/mutations.d.ts.map +1 -1
- package/dist/component/recoveryWorkflow/mutations.js +2 -0
- package/dist/component/recoveryWorkflow/mutations.js.map +1 -1
- package/dist/component/recoveryWorkflow/queries.d.ts +10 -0
- package/dist/component/recoveryWorkflow/queries.d.ts.map +1 -1
- package/dist/component/recoveryWorkflow/schema.d.ts +114 -10
- package/dist/component/recoveryWorkflow/schema.d.ts.map +1 -1
- package/dist/component/schema.d.ts +63 -6
- package/dist/component/settlement/mutations.d.ts +10 -0
- package/dist/component/settlement/mutations.d.ts.map +1 -1
- package/dist/component/settlement/mutations.js +3 -0
- package/dist/component/settlement/mutations.js.map +1 -1
- package/dist/component/settlement/queries.d.ts +5 -0
- package/dist/component/settlement/queries.d.ts.map +1 -1
- package/dist/component/settlement/schema.d.ts +24 -1
- package/dist/component/settlement/schema.d.ts.map +1 -1
- package/dist/component/settlement/schema.js +5 -0
- package/dist/component/settlement/schema.js.map +1 -1
- package/dist/component/usage/allowance.fixtures.d.ts +79 -22
- package/dist/component/usage/allowance.fixtures.d.ts.map +1 -1
- package/dist/component/usageCredits/accounting.fixtures.d.ts +63 -6
- package/dist/component/usageCredits/accounting.fixtures.d.ts.map +1 -1
- package/dist/shared/settlementPolicyContext.d.ts +10 -0
- package/dist/shared/settlementPolicyContext.d.ts.map +1 -0
- package/dist/shared/settlementPolicyContext.js +40 -0
- package/dist/shared/settlementPolicyContext.js.map +1 -0
- package/docs/README.md +2 -1
- package/docs/metered-usage.md +174 -356
- package/docs/metering-setup.md +175 -168
- package/docs/settlement.md +38 -0
- package/docs/usage-catalog.md +1 -1
- package/docs/usage-ledger.md +9 -8
- package/docs/usage-rollout.md +147 -0
- package/package.json +3 -2
- package/src/client/index.ts +1 -0
- package/src/client/recoveryWorkflow/provider.fixture.ts +143 -0
- package/src/client/recoveryWorkflow/provider.test.ts +83 -140
- package/src/client/settlement/authorization.ts +1 -0
- package/src/client/settlement/execution.ts +7 -0
- package/src/client/settlement/policy-context.test.ts +277 -0
- package/src/client/settlement/settleSale.ts +12 -0
- package/src/component/_generated/component.ts +25 -0
- package/src/component/recoveryWorkflow/mutations.ts +2 -0
- package/src/component/settlement/mutations.ts +6 -0
- package/src/component/settlement/schema.ts +7 -0
- package/src/component/tsconfig.json +5 -0
- package/src/shared/settlementPolicyContext.ts +62 -0
|
@@ -595,6 +595,22 @@ export declare const startWorkflow: import("convex/server").RegisteredMutation<"
|
|
|
595
595
|
} & {
|
|
596
596
|
providerAction: string;
|
|
597
597
|
}, Promise<{
|
|
598
|
+
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
599
|
+
retryable: false;
|
|
600
|
+
status: "unknown";
|
|
601
|
+
} | {
|
|
602
|
+
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
603
|
+
retryable: false;
|
|
604
|
+
status: "conflict";
|
|
605
|
+
} | {
|
|
606
|
+
reason: "invalid_scope" | "policy_invalid" | "unsupported_source";
|
|
607
|
+
retryable: false;
|
|
608
|
+
status: "rejected";
|
|
609
|
+
} | {
|
|
610
|
+
reason: "provider_pending";
|
|
611
|
+
retryable: true;
|
|
612
|
+
status: "not_ready";
|
|
613
|
+
} | {
|
|
598
614
|
operation: {
|
|
599
615
|
accountId: string;
|
|
600
616
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -611,7 +627,16 @@ export declare const startWorkflow: import("convex/server").RegisteredMutation<"
|
|
|
611
627
|
version: number;
|
|
612
628
|
};
|
|
613
629
|
status: "canceled";
|
|
614
|
-
}
|
|
630
|
+
}>>;
|
|
631
|
+
export declare const resumeWorkflow: import("convex/server").RegisteredMutation<"public", {
|
|
632
|
+
accountId: string;
|
|
633
|
+
definitionVersion: string;
|
|
634
|
+
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
635
|
+
providerApiVersion: string;
|
|
636
|
+
scopeKey: string;
|
|
637
|
+
stripeSubscriptionId: string;
|
|
638
|
+
version: number;
|
|
639
|
+
}, Promise<{
|
|
615
640
|
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
616
641
|
retryable: false;
|
|
617
642
|
status: "unknown";
|
|
@@ -627,16 +652,7 @@ export declare const startWorkflow: import("convex/server").RegisteredMutation<"
|
|
|
627
652
|
reason: "provider_pending";
|
|
628
653
|
retryable: true;
|
|
629
654
|
status: "not_ready";
|
|
630
|
-
}
|
|
631
|
-
export declare const resumeWorkflow: import("convex/server").RegisteredMutation<"public", {
|
|
632
|
-
accountId: string;
|
|
633
|
-
definitionVersion: string;
|
|
634
|
-
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
635
|
-
providerApiVersion: string;
|
|
636
|
-
scopeKey: string;
|
|
637
|
-
stripeSubscriptionId: string;
|
|
638
|
-
version: number;
|
|
639
|
-
}, Promise<{
|
|
655
|
+
} | {
|
|
640
656
|
operation: {
|
|
641
657
|
accountId: string;
|
|
642
658
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
@@ -653,22 +669,6 @@ export declare const resumeWorkflow: import("convex/server").RegisteredMutation<
|
|
|
653
669
|
version: number;
|
|
654
670
|
};
|
|
655
671
|
status: "canceled";
|
|
656
|
-
} | {
|
|
657
|
-
reason: "history_incomplete" | "provider_outcome_unknown";
|
|
658
|
-
retryable: false;
|
|
659
|
-
status: "unknown";
|
|
660
|
-
} | {
|
|
661
|
-
reason: "identity_changed" | "revision_changed" | "scope_busy";
|
|
662
|
-
retryable: false;
|
|
663
|
-
status: "conflict";
|
|
664
|
-
} | {
|
|
665
|
-
reason: "invalid_scope" | "policy_invalid" | "unsupported_source";
|
|
666
|
-
retryable: false;
|
|
667
|
-
status: "rejected";
|
|
668
|
-
} | {
|
|
669
|
-
reason: "provider_pending";
|
|
670
|
-
retryable: true;
|
|
671
|
-
status: "not_ready";
|
|
672
672
|
}>>;
|
|
673
673
|
export declare const cancelWorkflow: import("convex/server").RegisteredMutation<"public", {
|
|
674
674
|
accountId: string;
|
|
@@ -180,11 +180,11 @@ export declare const findPreparationOperation: import("convex/server").Registere
|
|
|
180
180
|
retryable: false;
|
|
181
181
|
} | {
|
|
182
182
|
reason?: undefined;
|
|
183
|
+
retryable?: undefined;
|
|
183
184
|
accountId: string;
|
|
184
185
|
scopeKey: string;
|
|
185
186
|
operationId: import("convex/values").GenericId<"balanceFundingOperations">;
|
|
186
187
|
version: number;
|
|
187
|
-
retryable?: undefined;
|
|
188
188
|
status?: undefined;
|
|
189
189
|
state: "canceled" | "failed" | "pending" | "running" | "succeeded" | "unknown";
|
|
190
190
|
cancelRequested: boolean;
|
|
@@ -1784,6 +1784,11 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1784
1784
|
paymentId?: string | undefined;
|
|
1785
1785
|
paymentIntentId?: string | undefined;
|
|
1786
1786
|
platformNet: number;
|
|
1787
|
+
policyContext?: {
|
|
1788
|
+
fields: Record<string, string>;
|
|
1789
|
+
namespace: string;
|
|
1790
|
+
version: 1;
|
|
1791
|
+
} | undefined;
|
|
1787
1792
|
processingFee: number;
|
|
1788
1793
|
sourceChargeId: string;
|
|
1789
1794
|
sourceInvoiceId?: string | undefined;
|
|
@@ -1829,7 +1834,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1829
1834
|
version: number;
|
|
1830
1835
|
workflowId?: string | undefined;
|
|
1831
1836
|
};
|
|
1832
|
-
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.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");
|
|
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}`);
|
|
1833
1838
|
indexes: {
|
|
1834
1839
|
by_id: ["_id"];
|
|
1835
1840
|
by_creation_time: ["_creationTime"];
|
|
@@ -1861,6 +1866,11 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1861
1866
|
paymentId?: string | undefined;
|
|
1862
1867
|
paymentIntentId?: string | undefined;
|
|
1863
1868
|
platformNet: number;
|
|
1869
|
+
policyContext?: {
|
|
1870
|
+
fields: Record<string, string>;
|
|
1871
|
+
namespace: string;
|
|
1872
|
+
version: 1;
|
|
1873
|
+
} | undefined;
|
|
1864
1874
|
processingFee: number;
|
|
1865
1875
|
sourceChargeId: string;
|
|
1866
1876
|
sourceInvoiceId?: string | undefined;
|
|
@@ -1900,7 +1910,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
1900
1910
|
operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
|
|
1901
1911
|
requestKey: string;
|
|
1902
1912
|
};
|
|
1903
|
-
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.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");
|
|
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}`);
|
|
1904
1914
|
indexes: {
|
|
1905
1915
|
by_id: ["_id"];
|
|
1906
1916
|
by_creation_time: ["_creationTime"];
|
|
@@ -2114,6 +2124,11 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2114
2124
|
paymentId?: string | undefined;
|
|
2115
2125
|
paymentIntentId?: string | undefined;
|
|
2116
2126
|
platformNet: number;
|
|
2127
|
+
policyContext?: {
|
|
2128
|
+
fields: Record<string, string>;
|
|
2129
|
+
namespace: string;
|
|
2130
|
+
version: 1;
|
|
2131
|
+
} | undefined;
|
|
2117
2132
|
processingFee: number;
|
|
2118
2133
|
sourceChargeId: string;
|
|
2119
2134
|
sourceInvoiceId?: string | undefined;
|
|
@@ -2139,7 +2154,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
2139
2154
|
subscriptionItemId: string;
|
|
2140
2155
|
} | undefined;
|
|
2141
2156
|
};
|
|
2142
|
-
fieldPaths: "_id" | ("_creationTime" | "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "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");
|
|
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}`);
|
|
2143
2158
|
indexes: {
|
|
2144
2159
|
by_id: ["_id"];
|
|
2145
2160
|
by_creation_time: ["_creationTime"];
|
|
@@ -4628,6 +4643,11 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4628
4643
|
paymentId?: string | undefined;
|
|
4629
4644
|
paymentIntentId?: string | undefined;
|
|
4630
4645
|
platformNet: number;
|
|
4646
|
+
policyContext?: {
|
|
4647
|
+
fields: Record<string, string>;
|
|
4648
|
+
namespace: string;
|
|
4649
|
+
version: 1;
|
|
4650
|
+
} | undefined;
|
|
4631
4651
|
processingFee: number;
|
|
4632
4652
|
sourceChargeId: string;
|
|
4633
4653
|
sourceInvoiceId?: string | undefined;
|
|
@@ -4673,7 +4693,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4673
4693
|
version: number;
|
|
4674
4694
|
workflowId?: string | undefined;
|
|
4675
4695
|
};
|
|
4676
|
-
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.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");
|
|
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}`);
|
|
4677
4697
|
indexes: {
|
|
4678
4698
|
by_id: ["_id"];
|
|
4679
4699
|
by_creation_time: ["_creationTime"];
|
|
@@ -4705,6 +4725,11 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4705
4725
|
paymentId?: string | undefined;
|
|
4706
4726
|
paymentIntentId?: string | undefined;
|
|
4707
4727
|
platformNet: number;
|
|
4728
|
+
policyContext?: {
|
|
4729
|
+
fields: Record<string, string>;
|
|
4730
|
+
namespace: string;
|
|
4731
|
+
version: 1;
|
|
4732
|
+
} | undefined;
|
|
4708
4733
|
processingFee: number;
|
|
4709
4734
|
sourceChargeId: string;
|
|
4710
4735
|
sourceInvoiceId?: string | undefined;
|
|
@@ -4744,7 +4769,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4744
4769
|
operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
|
|
4745
4770
|
requestKey: string;
|
|
4746
4771
|
};
|
|
4747
|
-
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.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");
|
|
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}`);
|
|
4748
4773
|
indexes: {
|
|
4749
4774
|
by_id: ["_id"];
|
|
4750
4775
|
by_creation_time: ["_creationTime"];
|
|
@@ -4958,6 +4983,11 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4958
4983
|
paymentId?: string | undefined;
|
|
4959
4984
|
paymentIntentId?: string | undefined;
|
|
4960
4985
|
platformNet: number;
|
|
4986
|
+
policyContext?: {
|
|
4987
|
+
fields: Record<string, string>;
|
|
4988
|
+
namespace: string;
|
|
4989
|
+
version: 1;
|
|
4990
|
+
} | undefined;
|
|
4961
4991
|
processingFee: number;
|
|
4962
4992
|
sourceChargeId: string;
|
|
4963
4993
|
sourceInvoiceId?: string | undefined;
|
|
@@ -4983,7 +5013,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
|
|
|
4983
5013
|
subscriptionItemId: string;
|
|
4984
5014
|
} | undefined;
|
|
4985
5015
|
};
|
|
4986
|
-
fieldPaths: "_id" | ("_creationTime" | "adjustmentAmount" | "creditSource" | "creditSource.creditGrantId" | "creditSource.customerAccount" | "creditSource.livemode" | "creditSource.purchaseId" | "creditSource.stripeAccountId" | "creditSource.stripePriceId" | "creditSource.stripeProductId" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "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");
|
|
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}`);
|
|
4987
5017
|
indexes: {
|
|
4988
5018
|
by_id: ["_id"];
|
|
4989
5019
|
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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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"}
|
|
@@ -57,6 +57,11 @@ export declare function read(ctx: QueryCtx | MutationCtx, args: OperationRef): P
|
|
|
57
57
|
paymentId?: string | undefined;
|
|
58
58
|
paymentIntentId?: string | undefined;
|
|
59
59
|
platformNet: number;
|
|
60
|
+
policyContext?: {
|
|
61
|
+
fields: Record<string, string>;
|
|
62
|
+
namespace: string;
|
|
63
|
+
version: 1;
|
|
64
|
+
} | undefined;
|
|
60
65
|
processingFee: number;
|
|
61
66
|
sourceChargeId: string;
|
|
62
67
|
sourceInvoiceId?: string | undefined;
|
|
@@ -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,MAAM,eAAe,CAAC;AAG3C,QAAA,MAAM,IAAI;;;;;;;;;;;;;;8FAAsB,CAAC;AACjC,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAC9C,eAAO,MAAM,gBAAgB;aAC3B,MAAM,EAAE,UAAU;aAClB,MAAM,EAAE,kBAAkB;aAC1B,SAAS;CACD,CAAC;AACX,wBAAgB,SAAS,CAAC,EAAE,EAAE,GAAG,CAAC,4BAA4B,CAAC,GAAG,YAAY,CAS7E;AACD,wBAAgB,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,4BAA4B,CAAC;;;;;;;;;;;;EAS3D;AACD,wBAAsB,IAAI,CAAC,GAAG,EAAE,QAAQ,GAAG,WAAW,EAAE,IAAI,EAAE,YAAY
|
|
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,MAAM,eAAe,CAAC;AAG3C,QAAA,MAAM,IAAI;;;;;;;;;;;;;;8FAAsB,CAAC;AACjC,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAC9C,eAAO,MAAM,gBAAgB;aAC3B,MAAM,EAAE,UAAU;aAClB,MAAM,EAAE,kBAAkB;aAC1B,SAAS;CACD,CAAC;AACX,wBAAgB,SAAS,CAAC,EAAE,EAAE,GAAG,CAAC,4BAA4B,CAAC,GAAG,YAAY,CAS7E;AACD,wBAAgB,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,4BAA4B,CAAC;;;;;;;;;;;;EAS3D;AACD,wBAAsB,IAAI,CAAC,GAAG,EAAE,QAAQ,GAAG,WAAW,EAAE,IAAI,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUzE;AACD,kFAAkF;AAClF,wBAAgB,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAapD"}
|
|
@@ -16,6 +16,11 @@ export declare const start: import("convex/server").RegisteredMutation<"public",
|
|
|
16
16
|
paymentId?: string | undefined;
|
|
17
17
|
paymentIntentId?: string | undefined;
|
|
18
18
|
platformNet: number;
|
|
19
|
+
policyContext?: {
|
|
20
|
+
fields: Record<string, string>;
|
|
21
|
+
namespace: string;
|
|
22
|
+
version: 1;
|
|
23
|
+
} | undefined;
|
|
19
24
|
processingFee: number;
|
|
20
25
|
sourceChargeId: string;
|
|
21
26
|
sourceInvoiceId?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/mutations.ts"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { policyContextBinding } from "../../shared/settlementPolicyContext.js";
|
|
1
2
|
import { allocationFields } from "../settlement/schema.js";
|
|
2
3
|
import { anyApi } from "convex/server";
|
|
3
4
|
import { mutation } from "../_generated/server.js";
|
|
@@ -11,6 +12,7 @@ export const start = mutation({
|
|
|
11
12
|
returns: startResult,
|
|
12
13
|
handler: async (ctx, args) => {
|
|
13
14
|
validateScope(args);
|
|
15
|
+
policyContextBinding(args.allocation?.policyContext);
|
|
14
16
|
if (!args.requestKey ||
|
|
15
17
|
!args.provider ||
|
|
16
18
|
!/^\d{4}-\d{2}-\d{2}\.[a-z][a-z0-9_.-]*$/.test(args.providerApiVersion) ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.js","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,MAAM,EAA0B,MAAM,eAAe,CAAC;AAE/D,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EACL,aAAa,EACb,WAAW,EACX,WAAW,EACX,SAAS,EACT,UAAU,GACX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC/E,MAAM,QAAQ,GAAG,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,GAGjD,CAAC;AACF,MAAM,CAAC,MA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,4BAA4B,EAAE,EAAE,CAAC,GAAG,CAAC,CAAE,CAAC,CAAC;IAC3E,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -47,6 +47,11 @@ export declare const snapshot: import("convex/server").RegisteredQuery<"public",
|
|
|
47
47
|
paymentId?: string | undefined;
|
|
48
48
|
paymentIntentId?: string | undefined;
|
|
49
49
|
platformNet: number;
|
|
50
|
+
policyContext?: {
|
|
51
|
+
fields: Record<string, string>;
|
|
52
|
+
namespace: string;
|
|
53
|
+
version: 1;
|
|
54
|
+
} | undefined;
|
|
50
55
|
processingFee: number;
|
|
51
56
|
sourceChargeId: string;
|
|
52
57
|
sourceInvoiceId?: string | undefined;
|
|
@@ -120,6 +125,11 @@ export declare const saved: import("convex/server").RegisteredQuery<"internal",
|
|
|
120
125
|
paymentId?: string | undefined;
|
|
121
126
|
paymentIntentId?: string | undefined;
|
|
122
127
|
platformNet: number;
|
|
128
|
+
policyContext?: {
|
|
129
|
+
fields: Record<string, string>;
|
|
130
|
+
namespace: string;
|
|
131
|
+
version: 1;
|
|
132
|
+
} | undefined;
|
|
123
133
|
processingFee: number;
|
|
124
134
|
sourceChargeId: string;
|
|
125
135
|
sourceInvoiceId?: string | undefined;
|
|
@@ -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"}
|