@fantastic.dev/better-stripe 0.34.0 → 0.37.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 +260 -0
- package/README.md +1 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +664 -2
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +332 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +664 -2
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +332 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/refundCommandEvidence.d.ts +14 -0
- package/dist/client/connect/refundCommandEvidence.d.ts.map +1 -0
- package/dist/client/connect/refundCommandEvidence.js +20 -0
- package/dist/client/connect/refundCommandEvidence.js.map +1 -0
- package/dist/client/connect/refundCommandNormalization.d.ts +11 -0
- package/dist/client/connect/refundCommandNormalization.d.ts.map +1 -0
- package/dist/client/connect/refundCommandNormalization.js +12 -0
- package/dist/client/connect/refundCommandNormalization.js.map +1 -0
- package/dist/client/financialObservations.d.ts +42 -0
- package/dist/client/financialObservations.d.ts.map +1 -0
- package/dist/client/financialObservations.js +58 -0
- package/dist/client/financialObservations.js.map +1 -0
- package/dist/client/financialOwnership.d.ts +52 -0
- package/dist/client/financialOwnership.d.ts.map +1 -0
- package/dist/client/financialOwnership.js +72 -0
- package/dist/client/financialOwnership.js.map +1 -0
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +2 -2
- package/dist/client/index.js.map +1 -1
- package/dist/client/observationPagination.d.ts +10 -0
- package/dist/client/observationPagination.d.ts.map +1 -0
- package/dist/client/observationPagination.js +12 -0
- package/dist/client/observationPagination.js.map +1 -0
- package/dist/client/operationEvidence.d.ts +37 -0
- package/dist/client/operationEvidence.d.ts.map +1 -0
- package/dist/client/operationEvidence.js +44 -0
- package/dist/client/operationEvidence.js.map +1 -0
- package/dist/client/publicTypes.d.ts +6 -0
- package/dist/client/publicTypes.d.ts.map +1 -1
- package/dist/client/readContracts.d.ts +31 -0
- package/dist/client/readContracts.d.ts.map +1 -1
- package/dist/client/readContracts.js +14 -0
- package/dist/client/readContracts.js.map +1 -1
- package/dist/client/transferObservations.d.ts +59 -0
- package/dist/client/transferObservations.d.ts.map +1 -0
- package/dist/client/transferObservations.js +82 -0
- package/dist/client/transferObservations.js.map +1 -0
- package/dist/component/_generated/component.d.ts +687 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/affiliateRecovery/mutations.d.ts.map +1 -1
- package/dist/component/affiliateRecovery/mutations.js +4 -1
- package/dist/component/affiliateRecovery/mutations.js.map +1 -1
- package/dist/component/connect/mutations.d.ts.map +1 -1
- package/dist/component/connect/mutations.js +18 -2
- package/dist/component/connect/mutations.js.map +1 -1
- package/dist/component/connect/queries.d.ts +8 -0
- package/dist/component/connect/queries.d.ts.map +1 -1
- package/dist/component/connect/reversalClaims.d.ts.map +1 -1
- package/dist/component/connect/reversalClaims.js +7 -1
- package/dist/component/connect/reversalClaims.js.map +1 -1
- package/dist/component/connect/reversalReceipts.d.ts.map +1 -1
- package/dist/component/connect/reversalReceipts.js +2 -0
- package/dist/component/connect/reversalReceipts.js.map +1 -1
- package/dist/component/connect/schema.d.ts +11 -1
- package/dist/component/connect/schema.d.ts.map +1 -1
- package/dist/component/connect/schema.js +9 -1
- package/dist/component/connect/schema.js.map +1 -1
- package/dist/component/connect/validators.d.ts +9 -1
- package/dist/component/connect/validators.d.ts.map +1 -1
- package/dist/component/connect/validators.js +2 -0
- package/dist/component/connect/validators.js.map +1 -1
- package/dist/component/earnings/pairedAdjustment.d.ts +12 -0
- package/dist/component/earnings/pairedAdjustment.d.ts.map +1 -0
- package/dist/component/earnings/pairedAdjustment.js +46 -0
- package/dist/component/earnings/pairedAdjustment.js.map +1 -0
- package/dist/component/earnings/triggers.d.ts +546 -2
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/earnings/triggers.js +17 -3
- package/dist/component/earnings/triggers.js.map +1 -1
- package/dist/component/financialObservations/continuation.d.ts +7 -0
- package/dist/component/financialObservations/continuation.d.ts.map +1 -0
- package/dist/component/financialObservations/continuation.js +131 -0
- package/dist/component/financialObservations/continuation.js.map +1 -0
- package/dist/component/financialObservations/generations.d.ts +6 -0
- package/dist/component/financialObservations/generations.d.ts.map +1 -0
- package/dist/component/financialObservations/generations.js +46 -0
- package/dist/component/financialObservations/generations.js.map +1 -0
- package/dist/component/financialObservations/mutations.d.ts +62 -0
- package/dist/component/financialObservations/mutations.d.ts.map +1 -0
- package/dist/component/financialObservations/mutations.js +69 -0
- package/dist/component/financialObservations/mutations.js.map +1 -0
- package/dist/component/financialObservations/queries.d.ts +307 -0
- package/dist/component/financialObservations/queries.d.ts.map +1 -0
- package/dist/component/financialObservations/queries.js +219 -0
- package/dist/component/financialObservations/queries.js.map +1 -0
- package/dist/component/financialObservations/schema.d.ts +182 -0
- package/dist/component/financialObservations/schema.d.ts.map +1 -0
- package/dist/component/financialObservations/schema.js +53 -0
- package/dist/component/financialObservations/schema.js.map +1 -0
- package/dist/component/financialObservations/settlement.d.ts +7 -0
- package/dist/component/financialObservations/settlement.d.ts.map +1 -0
- package/dist/component/financialObservations/settlement.js +118 -0
- package/dist/component/financialObservations/settlement.js.map +1 -0
- package/dist/component/financialObservations/settlementHelpers.d.ts +46 -0
- package/dist/component/financialObservations/settlementHelpers.d.ts.map +1 -0
- package/dist/component/financialObservations/settlementHelpers.js +70 -0
- package/dist/component/financialObservations/settlementHelpers.js.map +1 -0
- package/dist/component/financialObservations/transferBatches.d.ts +12 -0
- package/dist/component/financialObservations/transferBatches.d.ts.map +1 -0
- package/dist/component/financialObservations/transferBatches.js +76 -0
- package/dist/component/financialObservations/transferBatches.js.map +1 -0
- package/dist/component/financialObservations/transferContinuation.d.ts +5 -0
- package/dist/component/financialObservations/transferContinuation.d.ts.map +1 -0
- package/dist/component/financialObservations/transferContinuation.js +35 -0
- package/dist/component/financialObservations/transferContinuation.js.map +1 -0
- package/dist/component/financialObservations/transferContinuationState.d.ts +8 -0
- package/dist/component/financialObservations/transferContinuationState.d.ts.map +1 -0
- package/dist/component/financialObservations/transferContinuationState.js +69 -0
- package/dist/component/financialObservations/transferContinuationState.js.map +1 -0
- package/dist/component/financialObservations/transferContinuationSteps.d.ts +5 -0
- package/dist/component/financialObservations/transferContinuationSteps.d.ts.map +1 -0
- package/dist/component/financialObservations/transferContinuationSteps.js +174 -0
- package/dist/component/financialObservations/transferContinuationSteps.js.map +1 -0
- package/dist/component/financialObservations/transferHelpers.d.ts +18 -0
- package/dist/component/financialObservations/transferHelpers.d.ts.map +1 -0
- package/dist/component/financialObservations/transferHelpers.js +37 -0
- package/dist/component/financialObservations/transferHelpers.js.map +1 -0
- package/dist/component/financialObservations/transferReferenceSchema.d.ts +56 -0
- package/dist/component/financialObservations/transferReferenceSchema.d.ts.map +1 -0
- package/dist/component/financialObservations/transferReferenceSchema.js +21 -0
- package/dist/component/financialObservations/transferReferenceSchema.js.map +1 -0
- package/dist/component/financialObservations/transferSchema.d.ts +237 -0
- package/dist/component/financialObservations/transferSchema.d.ts.map +1 -0
- package/dist/component/financialObservations/transferSchema.js +65 -0
- package/dist/component/financialObservations/transferSchema.js.map +1 -0
- package/dist/component/financialObservations/transfers.d.ts +7 -0
- package/dist/component/financialObservations/transfers.d.ts.map +1 -0
- package/dist/component/financialObservations/transfers.js +79 -0
- package/dist/component/financialObservations/transfers.js.map +1 -0
- package/dist/component/financialOwnership/helpers.d.ts +37 -0
- package/dist/component/financialOwnership/helpers.d.ts.map +1 -0
- package/dist/component/financialOwnership/helpers.js +76 -0
- package/dist/component/financialOwnership/helpers.js.map +1 -0
- package/dist/component/financialOwnership/mutations.d.ts +28 -0
- package/dist/component/financialOwnership/mutations.d.ts.map +1 -0
- package/dist/component/financialOwnership/mutations.js +74 -0
- package/dist/component/financialOwnership/mutations.js.map +1 -0
- package/dist/component/financialOwnership/queries.d.ts +57 -0
- package/dist/component/financialOwnership/queries.d.ts.map +1 -0
- package/dist/component/financialOwnership/queries.js +50 -0
- package/dist/component/financialOwnership/queries.js.map +1 -0
- package/dist/component/financialOwnership/schema.d.ts +140 -0
- package/dist/component/financialOwnership/schema.d.ts.map +1 -0
- package/dist/component/financialOwnership/schema.js +35 -0
- package/dist/component/financialOwnership/schema.js.map +1 -0
- package/dist/component/operationEvidence/canonical.d.ts +4 -0
- package/dist/component/operationEvidence/canonical.d.ts.map +1 -0
- package/dist/component/operationEvidence/canonical.js +8 -0
- package/dist/component/operationEvidence/canonical.js.map +1 -0
- package/dist/component/operationEvidence/helpers.d.ts +87 -0
- package/dist/component/operationEvidence/helpers.d.ts.map +1 -0
- package/dist/component/operationEvidence/helpers.js +49 -0
- package/dist/component/operationEvidence/helpers.js.map +1 -0
- package/dist/component/operationEvidence/maintenance.d.ts +88 -0
- package/dist/component/operationEvidence/maintenance.d.ts.map +1 -0
- package/dist/component/operationEvidence/maintenance.js +59 -0
- package/dist/component/operationEvidence/maintenance.js.map +1 -0
- package/dist/component/operationEvidence/mutations.d.ts +97 -0
- package/dist/component/operationEvidence/mutations.d.ts.map +1 -0
- package/dist/component/operationEvidence/mutations.js +14 -0
- package/dist/component/operationEvidence/mutations.js.map +1 -0
- package/dist/component/operationEvidence/queries.d.ts +205 -0
- package/dist/component/operationEvidence/queries.d.ts.map +1 -0
- package/dist/component/operationEvidence/queries.js +75 -0
- package/dist/component/operationEvidence/queries.js.map +1 -0
- package/dist/component/operationEvidence/schema.d.ts +536 -0
- package/dist/component/operationEvidence/schema.d.ts.map +1 -0
- package/dist/component/operationEvidence/schema.js +53 -0
- package/dist/component/operationEvidence/schema.js.map +1 -0
- package/dist/component/refundHistory/commandBinding.d.ts +17 -0
- package/dist/component/refundHistory/commandBinding.d.ts.map +1 -0
- package/dist/component/refundHistory/commandBinding.js +41 -0
- package/dist/component/refundHistory/commandBinding.js.map +1 -0
- package/dist/component/refundHistory/commandEvidence.d.ts +50 -0
- package/dist/component/refundHistory/commandEvidence.d.ts.map +1 -0
- package/dist/component/refundHistory/commandEvidence.js +58 -0
- package/dist/component/refundHistory/commandEvidence.js.map +1 -0
- package/dist/component/refundHistory/commandEvidenceValidator.d.ts +89 -0
- package/dist/component/refundHistory/commandEvidenceValidator.d.ts.map +1 -0
- package/dist/component/refundHistory/commandEvidenceValidator.js +8 -0
- package/dist/component/refundHistory/commandEvidenceValidator.js.map +1 -0
- package/dist/component/refundHistory/commandFields.d.ts +8 -0
- package/dist/component/refundHistory/commandFields.d.ts.map +1 -0
- package/dist/component/refundHistory/commandFields.js +9 -0
- package/dist/component/refundHistory/commandFields.js.map +1 -0
- package/dist/component/refundHistory/mutations.d.ts +8 -0
- package/dist/component/refundHistory/mutations.d.ts.map +1 -0
- package/dist/component/refundHistory/mutations.js +25 -0
- package/dist/component/refundHistory/mutations.js.map +1 -0
- package/dist/component/refundHistory/originalSeller.d.ts +5 -0
- package/dist/component/refundHistory/originalSeller.d.ts.map +1 -0
- package/dist/component/refundHistory/originalSeller.js +35 -0
- package/dist/component/refundHistory/originalSeller.js.map +1 -0
- package/dist/component/refundHistory/queries.d.ts +51 -0
- package/dist/component/refundHistory/queries.d.ts.map +1 -1
- package/dist/component/refundHistory/queries.js +14 -0
- package/dist/component/refundHistory/queries.js.map +1 -1
- package/dist/component/schema.d.ts +332 -1
- package/dist/component/schema.js +15 -0
- package/dist/component/schema.js.map +1 -1
- package/dist/component/settlement/mutations.d.ts.map +1 -1
- package/dist/component/settlement/mutations.js +5 -1
- package/dist/component/settlement/mutations.js.map +1 -1
- package/dist/shared/refundCommandScope.d.ts +10 -0
- package/dist/shared/refundCommandScope.d.ts.map +1 -0
- package/dist/shared/refundCommandScope.js +9 -0
- package/dist/shared/refundCommandScope.js.map +1 -0
- package/docs/financial-observations.md +244 -0
- package/docs/financial-ownership.md +54 -0
- package/docs/refund-command-evidence.md +55 -0
- package/package.json +5 -2
- package/src/client/connect/refundCommandEvidence.ts +41 -0
- package/src/client/connect/refundCommandNormalization.ts +28 -0
- package/src/client/financialObservations.test.ts +109 -0
- package/src/client/financialObservations.ts +106 -0
- package/src/client/financialOwnership.test.ts +80 -0
- package/src/client/financialOwnership.ts +116 -0
- package/src/client/index.ts +2 -2
- package/src/client/observationPagination.ts +11 -0
- package/src/client/operationEvidence.test.ts +110 -0
- package/src/client/operationEvidence.ts +92 -0
- package/src/client/publicTypes.ts +45 -0
- package/src/client/readContracts.ts +25 -0
- package/src/client/refund-command-evidence.test.ts +68 -0
- package/src/client/refund-command-normalization.test.ts +61 -0
- package/src/client/transferContinuation.test.ts +94 -0
- package/src/client/transferObservations.test.ts +98 -0
- package/src/client/transferObservations.ts +180 -0
- package/src/component/_generated/api.ts +54 -0
- package/src/component/_generated/component.ts +797 -0
- package/src/component/affiliateRecovery/mutations.ts +10 -1
- package/src/component/connect/mutations.ts +29 -2
- package/src/component/connect/reversalClaims.ts +19 -1
- package/src/component/connect/reversalReceipts.ts +2 -0
- package/src/component/connect/schema.ts +9 -1
- package/src/component/connect/validators.ts +2 -0
- package/src/component/core/reset.test.ts +8 -1
- package/src/component/earnings/earnings-totals.test.ts +14 -10
- package/src/component/earnings/paired-adjustment.test.ts +258 -0
- package/src/component/earnings/pairedAdjustment.ts +77 -0
- package/src/component/earnings/triggers.ts +23 -11
- package/src/component/financialObservations/continuation.test.ts +445 -0
- package/src/component/financialObservations/continuation.ts +159 -0
- package/src/component/financialObservations/generations.ts +53 -0
- package/src/component/financialObservations/mutations.ts +75 -0
- package/src/component/financialObservations/observation-boundaries.test.ts +466 -0
- package/src/component/financialObservations/queries.ts +246 -0
- package/src/component/financialObservations/schema.ts +68 -0
- package/src/component/financialObservations/settlement-observations.test.ts +86 -0
- package/src/component/financialObservations/settlement.ts +142 -0
- package/src/component/financialObservations/settlementHelpers.ts +92 -0
- package/src/component/financialObservations/transfer-batches.test.ts +61 -0
- package/src/component/financialObservations/transfer-boundaries.test.ts +116 -0
- package/src/component/financialObservations/transfer-continuation-guards.test.ts +428 -0
- package/src/component/financialObservations/transfer-continuation.test.ts +154 -0
- package/src/component/financialObservations/transfer-observations.test.ts +212 -0
- package/src/component/financialObservations/transfer-overflow.test.ts +181 -0
- package/src/component/financialObservations/transfer-writers.test.ts +162 -0
- package/src/component/financialObservations/transferBatches.ts +96 -0
- package/src/component/financialObservations/transferContinuation.ts +53 -0
- package/src/component/financialObservations/transferContinuationState.ts +85 -0
- package/src/component/financialObservations/transferContinuationSteps.ts +232 -0
- package/src/component/financialObservations/transferHelpers.ts +38 -0
- package/src/component/financialObservations/transferReferenceSchema.ts +20 -0
- package/src/component/financialObservations/transferSchema.ts +74 -0
- package/src/component/financialObservations/transfers.ts +99 -0
- package/src/component/financialOwnership/financial-ownership.test.ts +102 -0
- package/src/component/financialOwnership/helpers.ts +98 -0
- package/src/component/financialOwnership/mutations.ts +83 -0
- package/src/component/financialOwnership/ownership-boundaries.test.ts +308 -0
- package/src/component/financialOwnership/queries.ts +65 -0
- package/src/component/financialOwnership/schema.ts +35 -0
- package/src/component/operationEvidence/canonical.ts +10 -0
- package/src/component/operationEvidence/helpers.ts +65 -0
- package/src/component/operationEvidence/integrity.test.ts +257 -0
- package/src/component/operationEvidence/maintenance.test.ts +152 -0
- package/src/component/operationEvidence/maintenance.ts +89 -0
- package/src/component/operationEvidence/mutations.ts +14 -0
- package/src/component/operationEvidence/queries.ts +108 -0
- package/src/component/operationEvidence/reads.test.ts +140 -0
- package/src/component/operationEvidence/schema.ts +62 -0
- package/src/component/refundHistory/command-evidence.test.ts +288 -0
- package/src/component/refundHistory/command-normalization-resource.test.ts +77 -0
- package/src/component/refundHistory/command-normalization.test.ts +229 -0
- package/src/component/refundHistory/command-provenance.test.ts +59 -0
- package/src/component/refundHistory/commandBinding.ts +54 -0
- package/src/component/refundHistory/commandEvidence.ts +76 -0
- package/src/component/refundHistory/commandEvidenceValidator.ts +18 -0
- package/src/component/refundHistory/commandFields.ts +9 -0
- package/src/component/refundHistory/mutations.ts +33 -0
- package/src/component/refundHistory/original-seller-boundaries.test.ts +138 -0
- package/src/component/refundHistory/original-seller.test.ts +175 -0
- package/src/component/refundHistory/originalSeller.ts +48 -0
- package/src/component/refundHistory/queries.ts +15 -0
- package/src/component/schema.ts +28 -0
- package/src/component/settlement/mutations.ts +5 -1
- package/src/shared/refundCommandScope.ts +19 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutLargeAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutLargeAdoptionTestHelpers.ts"],"names":[],"mappings":"AAGA,wBAAsB,KAAK,CAAC,KAAK,SAAM,EAAE,MAAM,SAAK
|
|
1
|
+
{"version":3,"file":"payoutLargeAdoptionTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutLargeAdoptionTestHelpers.ts"],"names":[],"mappings":"AAGA,wBAAsB,KAAK,CAAC,KAAK,SAAM,EAAE,MAAM,SAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,MAAM,CAAC;gBAAC,MAAM,EAAE,MAAM,CAAA;aAAE,EAAE;;;GA2C9D"}
|
|
@@ -14,6 +14,327 @@ type Sync = (stripe: Stripe, component: Component, ctx: RunCtx, opts: {
|
|
|
14
14
|
export declare function operation(): Promise<Sync>;
|
|
15
15
|
export declare function setup(scope?: Scope): Promise<{
|
|
16
16
|
t: import("convex-test").TestConvex<import("convex/server").SchemaDefinition<{
|
|
17
|
+
operationEvidencePayloads: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
18
|
+
commissionExposure?: {
|
|
19
|
+
chargeAmount: number;
|
|
20
|
+
disputeId?: string | undefined;
|
|
21
|
+
disputeState?: "lost" | "open" | "won" | undefined;
|
|
22
|
+
finalized: boolean;
|
|
23
|
+
kind: "dispute" | "refund";
|
|
24
|
+
principal: number;
|
|
25
|
+
refundId?: string | undefined;
|
|
26
|
+
refundedPrincipal?: number | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
operationId: string;
|
|
29
|
+
slices: {
|
|
30
|
+
from: number;
|
|
31
|
+
stripeTransferId: string;
|
|
32
|
+
to: number;
|
|
33
|
+
}[];
|
|
34
|
+
sourceChargeId: string;
|
|
35
|
+
}, {
|
|
36
|
+
operationId: import("convex/values").VString<string, "required">;
|
|
37
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
38
|
+
slices: import("convex/values").VArray<{
|
|
39
|
+
from: number;
|
|
40
|
+
stripeTransferId: string;
|
|
41
|
+
to: number;
|
|
42
|
+
}[], import("convex/values").VObject<{
|
|
43
|
+
from: number;
|
|
44
|
+
stripeTransferId: string;
|
|
45
|
+
to: number;
|
|
46
|
+
}, {
|
|
47
|
+
stripeTransferId: import("convex/values").VString<string, "required">;
|
|
48
|
+
from: import("convex/values").VFloat64<number, "required">;
|
|
49
|
+
to: import("convex/values").VFloat64<number, "required">;
|
|
50
|
+
}, "required", "from" | "stripeTransferId" | "to">, "required">;
|
|
51
|
+
commissionExposure: import("convex/values").VObject<{
|
|
52
|
+
chargeAmount: number;
|
|
53
|
+
disputeId?: string | undefined;
|
|
54
|
+
disputeState?: "lost" | "open" | "won" | undefined;
|
|
55
|
+
finalized: boolean;
|
|
56
|
+
kind: "dispute" | "refund";
|
|
57
|
+
principal: number;
|
|
58
|
+
refundId?: string | undefined;
|
|
59
|
+
refundedPrincipal?: number | undefined;
|
|
60
|
+
} | undefined, {
|
|
61
|
+
kind: import("convex/values").VUnion<"dispute" | "refund", [import("convex/values").VLiteral<"refund", "required">, import("convex/values").VLiteral<"dispute", "required">], "required", never>;
|
|
62
|
+
chargeAmount: import("convex/values").VFloat64<number, "required">;
|
|
63
|
+
principal: import("convex/values").VFloat64<number, "required">;
|
|
64
|
+
finalized: import("convex/values").VBoolean<boolean, "required">;
|
|
65
|
+
disputeState: import("convex/values").VUnion<"lost" | "open" | "won" | undefined, [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"lost", "required">, import("convex/values").VLiteral<"won", "required">], "optional", never>;
|
|
66
|
+
disputeId: import("convex/values").VString<string | undefined, "optional">;
|
|
67
|
+
refundedPrincipal: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
68
|
+
refundId: import("convex/values").VString<string | undefined, "optional">;
|
|
69
|
+
}, "optional", "chargeAmount" | "disputeId" | "disputeState" | "finalized" | "kind" | "principal" | "refundId" | "refundedPrincipal">;
|
|
70
|
+
}, "required", "commissionExposure" | "commissionExposure.chargeAmount" | "commissionExposure.disputeId" | "commissionExposure.disputeState" | "commissionExposure.finalized" | "commissionExposure.kind" | "commissionExposure.principal" | "commissionExposure.refundId" | "commissionExposure.refundedPrincipal" | "operationId" | "slices" | "sourceChargeId">, {}, {}, {}>;
|
|
71
|
+
operationEvidenceHeaders: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
72
|
+
firstObservedAt: number;
|
|
73
|
+
generation: number;
|
|
74
|
+
isContradictory: boolean;
|
|
75
|
+
latestFingerprint: string;
|
|
76
|
+
latestPayloadId: import("convex/values").GenericId<"operationEvidencePayloads">;
|
|
77
|
+
operationDigest: string;
|
|
78
|
+
originalFingerprint: string;
|
|
79
|
+
originalIdentityFingerprint: string;
|
|
80
|
+
originalPayloadId: import("convex/values").GenericId<"operationEvidencePayloads">;
|
|
81
|
+
producer: "trusted_host_maintenance";
|
|
82
|
+
producerVersion: 1;
|
|
83
|
+
sourceChargeDigest: string;
|
|
84
|
+
sourceCreatedAt: number;
|
|
85
|
+
sourceId: import("convex/values").GenericId<"transferReversalOps">;
|
|
86
|
+
}, {
|
|
87
|
+
sourceId: import("convex/values").VId<import("convex/values").GenericId<"transferReversalOps">, "required">;
|
|
88
|
+
originalPayloadId: import("convex/values").VId<import("convex/values").GenericId<"operationEvidencePayloads">, "required">;
|
|
89
|
+
latestPayloadId: import("convex/values").VId<import("convex/values").GenericId<"operationEvidencePayloads">, "required">;
|
|
90
|
+
producer: import("convex/values").VLiteral<"trusted_host_maintenance", "required">;
|
|
91
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
92
|
+
firstObservedAt: import("convex/values").VFloat64<number, "required">;
|
|
93
|
+
sourceCreatedAt: import("convex/values").VFloat64<number, "required">;
|
|
94
|
+
originalFingerprint: import("convex/values").VString<string, "required">;
|
|
95
|
+
latestFingerprint: import("convex/values").VString<string, "required">;
|
|
96
|
+
originalIdentityFingerprint: import("convex/values").VString<string, "required">;
|
|
97
|
+
operationDigest: import("convex/values").VString<string, "required">;
|
|
98
|
+
sourceChargeDigest: import("convex/values").VString<string, "required">;
|
|
99
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
100
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
101
|
+
}, "required", "firstObservedAt" | "generation" | "isContradictory" | "latestFingerprint" | "latestPayloadId" | "operationDigest" | "originalFingerprint" | "originalIdentityFingerprint" | "originalPayloadId" | "producer" | "producerVersion" | "sourceChargeDigest" | "sourceCreatedAt" | "sourceId">, {
|
|
102
|
+
by_operation_digest: ["operationDigest", "_creationTime"];
|
|
103
|
+
by_source_charge_digest: ["sourceChargeDigest", "_creationTime"];
|
|
104
|
+
by_source_id: ["sourceId", "_creationTime"];
|
|
105
|
+
}, {}, {}>;
|
|
106
|
+
financialTransferObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
107
|
+
bucketKey: string;
|
|
108
|
+
fingerprint: string;
|
|
109
|
+
generation: number;
|
|
110
|
+
isContradictory: boolean;
|
|
111
|
+
observedFingerprint: string;
|
|
112
|
+
orgId?: string | undefined;
|
|
113
|
+
ownershipFingerprint: string;
|
|
114
|
+
ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
|
|
115
|
+
producer: "transfer_fact";
|
|
116
|
+
producerVersion: 1;
|
|
117
|
+
registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
|
|
118
|
+
role?: "affiliate" | "other" | "store" | undefined;
|
|
119
|
+
sourceChargeId?: string | undefined;
|
|
120
|
+
sourceInvoiceId?: string | undefined;
|
|
121
|
+
stripeTransferId: string;
|
|
122
|
+
transferId: import("convex/values").GenericId<"transfers">;
|
|
123
|
+
userId?: string | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
transferId: import("convex/values").VId<import("convex/values").GenericId<"transfers">, "required">;
|
|
126
|
+
stripeTransferId: import("convex/values").VString<string, "required">;
|
|
127
|
+
sourceChargeId: import("convex/values").VString<string | undefined, "optional">;
|
|
128
|
+
sourceInvoiceId: import("convex/values").VString<string | undefined, "optional">;
|
|
129
|
+
bucketKey: import("convex/values").VString<string, "required">;
|
|
130
|
+
role: import("convex/values").VUnion<"affiliate" | "other" | "store" | undefined, [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "optional", never>;
|
|
131
|
+
registrationId: import("convex/values").VId<import("convex/values").GenericId<"financialOwnership"> | undefined, "optional">;
|
|
132
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
133
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
134
|
+
ownershipStatus: import("convex/values").VUnion<"ambiguous" | "contradictory" | "registered" | "unknown", [import("convex/values").VLiteral<"registered", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"ambiguous", "required">, import("convex/values").VLiteral<"contradictory", "required">], "required", never>;
|
|
135
|
+
producer: import("convex/values").VLiteral<"transfer_fact", "required">;
|
|
136
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
137
|
+
fingerprint: import("convex/values").VString<string, "required">;
|
|
138
|
+
observedFingerprint: import("convex/values").VString<string, "required">;
|
|
139
|
+
ownershipFingerprint: import("convex/values").VString<string, "required">;
|
|
140
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
141
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
142
|
+
}, "required", "bucketKey" | "fingerprint" | "generation" | "isContradictory" | "observedFingerprint" | "orgId" | "ownershipFingerprint" | "ownershipStatus" | "producer" | "producerVersion" | "registrationId" | "role" | "sourceChargeId" | "sourceInvoiceId" | "stripeTransferId" | "transferId" | "userId">, {
|
|
143
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
144
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
145
|
+
by_transfer_id: ["transferId", "_creationTime"];
|
|
146
|
+
}, {}, {}>;
|
|
147
|
+
financialTransferBatches: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
148
|
+
continuation?: {
|
|
149
|
+
nextReference: number;
|
|
150
|
+
producerGeneration: number;
|
|
151
|
+
sourceFingerprint: string;
|
|
152
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
153
|
+
validatedReferences: number;
|
|
154
|
+
} | undefined;
|
|
155
|
+
fingerprint: string;
|
|
156
|
+
generation: number;
|
|
157
|
+
isContradictory: boolean;
|
|
158
|
+
isOverflow: true;
|
|
159
|
+
observedFingerprint: string;
|
|
160
|
+
operationId: string;
|
|
161
|
+
originalOperationId: import("convex/values").GenericId<"transferReversalOps">;
|
|
162
|
+
producer: "transfer_frontier_claim" | "transfer_frontier_release";
|
|
163
|
+
producerVersion: 1;
|
|
164
|
+
referenceCount: number;
|
|
165
|
+
sourceChargeId: string;
|
|
166
|
+
state: "complete" | "pending";
|
|
167
|
+
transferIds: import("convex/values").GenericId<"transfers">[];
|
|
168
|
+
}, {
|
|
169
|
+
originalOperationId: import("convex/values").VId<import("convex/values").GenericId<"transferReversalOps">, "required">;
|
|
170
|
+
operationId: import("convex/values").VString<string, "required">;
|
|
171
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
172
|
+
producer: import("convex/values").VUnion<"transfer_frontier_claim" | "transfer_frontier_release", [import("convex/values").VLiteral<"transfer_frontier_release", "required">, import("convex/values").VLiteral<"transfer_frontier_claim", "required">], "required", never>;
|
|
173
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
174
|
+
fingerprint: import("convex/values").VString<string, "required">;
|
|
175
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
176
|
+
observedFingerprint: import("convex/values").VString<string, "required">;
|
|
177
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
178
|
+
referenceCount: import("convex/values").VFloat64<number, "required">;
|
|
179
|
+
transferIds: import("convex/values").VArray<import("convex/values").GenericId<"transfers">[], import("convex/values").VId<import("convex/values").GenericId<"transfers">, "required">, "required">;
|
|
180
|
+
isOverflow: import("convex/values").VLiteral<true, "required">;
|
|
181
|
+
state: import("convex/values").VUnion<"complete" | "pending", [import("convex/values").VLiteral<"pending", "required">, import("convex/values").VLiteral<"complete", "required">], "required", never>;
|
|
182
|
+
continuation: import("convex/values").VObject<{
|
|
183
|
+
nextReference: number;
|
|
184
|
+
producerGeneration: number;
|
|
185
|
+
sourceFingerprint: string;
|
|
186
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
187
|
+
validatedReferences: number;
|
|
188
|
+
} | undefined, {
|
|
189
|
+
state: import("convex/values").VUnion<"complete" | "held" | "indexing" | "validating", [import("convex/values").VLiteral<"indexing", "required">, import("convex/values").VLiteral<"validating", "required">, import("convex/values").VLiteral<"complete", "required">, import("convex/values").VLiteral<"held", "required">], "required", never>;
|
|
190
|
+
nextReference: import("convex/values").VFloat64<number, "required">;
|
|
191
|
+
validatedReferences: import("convex/values").VFloat64<number, "required">;
|
|
192
|
+
producerGeneration: import("convex/values").VFloat64<number, "required">;
|
|
193
|
+
sourceFingerprint: import("convex/values").VString<string, "required">;
|
|
194
|
+
}, "optional", "nextReference" | "producerGeneration" | "sourceFingerprint" | "state" | "validatedReferences">;
|
|
195
|
+
}, "required", "continuation" | "continuation.nextReference" | "continuation.producerGeneration" | "continuation.sourceFingerprint" | "continuation.state" | "continuation.validatedReferences" | "fingerprint" | "generation" | "isContradictory" | "isOverflow" | "observedFingerprint" | "operationId" | "originalOperationId" | "producer" | "producerVersion" | "referenceCount" | "sourceChargeId" | "state" | "transferIds">, {
|
|
196
|
+
by_operation_id: ["operationId", "_creationTime"];
|
|
197
|
+
by_original_operation_id: ["originalOperationId", "_creationTime"];
|
|
198
|
+
by_original_operation_producer: ["originalOperationId", "producer", "_creationTime"];
|
|
199
|
+
by_state: ["state", "_creationTime"];
|
|
200
|
+
}, {}, {}>;
|
|
201
|
+
financialTransferBatchReferences: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
202
|
+
batchId: import("convex/values").GenericId<"financialTransferBatches">;
|
|
203
|
+
observationGeneration: number;
|
|
204
|
+
observationId: import("convex/values").GenericId<"financialTransferObservations">;
|
|
205
|
+
observedFingerprint: string;
|
|
206
|
+
ownershipFingerprint: string;
|
|
207
|
+
position: number;
|
|
208
|
+
sourceFingerprint: string;
|
|
209
|
+
transferId: import("convex/values").GenericId<"transfers">;
|
|
210
|
+
}, {
|
|
211
|
+
batchId: import("convex/values").VId<import("convex/values").GenericId<"financialTransferBatches">, "required">;
|
|
212
|
+
position: import("convex/values").VFloat64<number, "required">;
|
|
213
|
+
transferId: import("convex/values").VId<import("convex/values").GenericId<"transfers">, "required">;
|
|
214
|
+
observationId: import("convex/values").VId<import("convex/values").GenericId<"financialTransferObservations">, "required">;
|
|
215
|
+
observationGeneration: import("convex/values").VFloat64<number, "required">;
|
|
216
|
+
sourceFingerprint: import("convex/values").VString<string, "required">;
|
|
217
|
+
observedFingerprint: import("convex/values").VString<string, "required">;
|
|
218
|
+
ownershipFingerprint: import("convex/values").VString<string, "required">;
|
|
219
|
+
}, "required", "batchId" | "observationGeneration" | "observationId" | "observedFingerprint" | "ownershipFingerprint" | "position" | "sourceFingerprint" | "transferId">, {
|
|
220
|
+
by_batch_position: ["batchId", "position", "_creationTime"];
|
|
221
|
+
by_batch_transfer: ["batchId", "transferId", "_creationTime"];
|
|
222
|
+
}, {}, {}>;
|
|
223
|
+
financialSourceObservations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
224
|
+
allocationId: import("convex/values").GenericId<"settlementAllocations">;
|
|
225
|
+
continuation?: {
|
|
226
|
+
nextLeg: number;
|
|
227
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
228
|
+
validatedLegs: number;
|
|
229
|
+
} | undefined;
|
|
230
|
+
fingerprint: string;
|
|
231
|
+
generation: number;
|
|
232
|
+
indexedLegCount: number;
|
|
233
|
+
isContradictory: boolean;
|
|
234
|
+
isOverflow: boolean;
|
|
235
|
+
legCount: number;
|
|
236
|
+
observedFingerprint: string;
|
|
237
|
+
ownershipFingerprint: string;
|
|
238
|
+
producer: "settlement_allocation";
|
|
239
|
+
producerVersion: 1;
|
|
240
|
+
sourceChargeId: string;
|
|
241
|
+
}, {
|
|
242
|
+
allocationId: import("convex/values").VId<import("convex/values").GenericId<"settlementAllocations">, "required">;
|
|
243
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
244
|
+
producer: import("convex/values").VLiteral<"settlement_allocation", "required">;
|
|
245
|
+
producerVersion: import("convex/values").VLiteral<1, "required">;
|
|
246
|
+
fingerprint: import("convex/values").VString<string, "required">;
|
|
247
|
+
observedFingerprint: import("convex/values").VString<string, "required">;
|
|
248
|
+
ownershipFingerprint: import("convex/values").VString<string, "required">;
|
|
249
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
250
|
+
legCount: import("convex/values").VFloat64<number, "required">;
|
|
251
|
+
indexedLegCount: import("convex/values").VFloat64<number, "required">;
|
|
252
|
+
isOverflow: import("convex/values").VBoolean<boolean, "required">;
|
|
253
|
+
isContradictory: import("convex/values").VBoolean<boolean, "required">;
|
|
254
|
+
continuation: import("convex/values").VObject<{
|
|
255
|
+
nextLeg: number;
|
|
256
|
+
state: "complete" | "held" | "indexing" | "validating";
|
|
257
|
+
validatedLegs: number;
|
|
258
|
+
} | undefined, {
|
|
259
|
+
state: import("convex/values").VUnion<"complete" | "held" | "indexing" | "validating", [import("convex/values").VLiteral<"indexing", "required">, import("convex/values").VLiteral<"validating", "required">, import("convex/values").VLiteral<"complete", "required">, import("convex/values").VLiteral<"held", "required">], "required", never>;
|
|
260
|
+
nextLeg: import("convex/values").VFloat64<number, "required">;
|
|
261
|
+
validatedLegs: import("convex/values").VFloat64<number, "required">;
|
|
262
|
+
}, "optional", "nextLeg" | "state" | "validatedLegs">;
|
|
263
|
+
}, "required", "allocationId" | "continuation" | "continuation.nextLeg" | "continuation.state" | "continuation.validatedLegs" | "fingerprint" | "generation" | "indexedLegCount" | "isContradictory" | "isOverflow" | "legCount" | "observedFingerprint" | "ownershipFingerprint" | "producer" | "producerVersion" | "sourceChargeId">, {
|
|
264
|
+
by_allocation_id: ["allocationId", "_creationTime"];
|
|
265
|
+
}, {}, {}>;
|
|
266
|
+
financialSourceLegs: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
267
|
+
allocationId: import("convex/values").GenericId<"settlementAllocations">;
|
|
268
|
+
bucketKey: string;
|
|
269
|
+
legIndex: number;
|
|
270
|
+
orgId?: string | undefined;
|
|
271
|
+
ownershipStatus: "ambiguous" | "contradictory" | "registered" | "unknown";
|
|
272
|
+
registrationId?: import("convex/values").GenericId<"financialOwnership"> | undefined;
|
|
273
|
+
role: "affiliate" | "other" | "store";
|
|
274
|
+
sourceChargeId: string;
|
|
275
|
+
userId?: string | undefined;
|
|
276
|
+
}, {
|
|
277
|
+
allocationId: import("convex/values").VId<import("convex/values").GenericId<"settlementAllocations">, "required">;
|
|
278
|
+
sourceChargeId: import("convex/values").VString<string, "required">;
|
|
279
|
+
legIndex: import("convex/values").VFloat64<number, "required">;
|
|
280
|
+
bucketKey: import("convex/values").VString<string, "required">;
|
|
281
|
+
role: import("convex/values").VUnion<"affiliate" | "other" | "store", [import("convex/values").VLiteral<"store", "required">, import("convex/values").VLiteral<"affiliate", "required">, import("convex/values").VLiteral<"other", "required">], "required", never>;
|
|
282
|
+
registrationId: import("convex/values").VId<import("convex/values").GenericId<"financialOwnership"> | undefined, "optional">;
|
|
283
|
+
userId: import("convex/values").VString<string | undefined, "optional">;
|
|
284
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
285
|
+
ownershipStatus: import("convex/values").VUnion<"ambiguous" | "contradictory" | "registered" | "unknown", [import("convex/values").VLiteral<"registered", "required">, import("convex/values").VLiteral<"unknown", "required">, import("convex/values").VLiteral<"ambiguous", "required">, import("convex/values").VLiteral<"contradictory", "required">], "required", never>;
|
|
286
|
+
}, "required", "allocationId" | "bucketKey" | "legIndex" | "orgId" | "ownershipStatus" | "registrationId" | "role" | "sourceChargeId" | "userId">, {
|
|
287
|
+
by_allocation_id_and_leg_index: ["allocationId", "legIndex", "_creationTime"];
|
|
288
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
289
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
290
|
+
}, {}, {}>;
|
|
291
|
+
financialObservationGenerations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
292
|
+
generation: number;
|
|
293
|
+
scopeKey: string;
|
|
294
|
+
}, {
|
|
295
|
+
scopeKey: import("convex/values").VString<string, "required">;
|
|
296
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
297
|
+
}, "required", "generation" | "scopeKey">, {
|
|
298
|
+
by_scope_key: ["scopeKey", "_creationTime"];
|
|
299
|
+
}, {}, {}>;
|
|
300
|
+
financialOwnership: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
301
|
+
bucketKey: string;
|
|
302
|
+
generation: number;
|
|
303
|
+
kind: "logical" | "stripe_account";
|
|
304
|
+
orgId?: string | undefined;
|
|
305
|
+
source: {
|
|
306
|
+
integration: string;
|
|
307
|
+
recordId: string;
|
|
308
|
+
};
|
|
309
|
+
userId: string;
|
|
310
|
+
}, {
|
|
311
|
+
userId: import("convex/values").VString<string, "required">;
|
|
312
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
313
|
+
bucketKey: import("convex/values").VString<string, "required">;
|
|
314
|
+
kind: import("convex/values").VUnion<"logical" | "stripe_account", [import("convex/values").VLiteral<"stripe_account", "required">, import("convex/values").VLiteral<"logical", "required">], "required", never>;
|
|
315
|
+
source: import("convex/values").VObject<{
|
|
316
|
+
integration: string;
|
|
317
|
+
recordId: string;
|
|
318
|
+
}, {
|
|
319
|
+
integration: import("convex/values").VString<string, "required">;
|
|
320
|
+
recordId: import("convex/values").VString<string, "required">;
|
|
321
|
+
}, "required", "integration" | "recordId">;
|
|
322
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
323
|
+
}, "required", "bucketKey" | "generation" | "kind" | "orgId" | "source" | "source.integration" | "source.recordId" | "userId">, {
|
|
324
|
+
by_bucket_key: ["bucketKey", "_creationTime"];
|
|
325
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
326
|
+
}, {}, {}>;
|
|
327
|
+
financialOwnershipGenerations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
328
|
+
generation: number;
|
|
329
|
+
orgId?: string | undefined;
|
|
330
|
+
userId: string;
|
|
331
|
+
}, {
|
|
332
|
+
userId: import("convex/values").VString<string, "required">;
|
|
333
|
+
orgId: import("convex/values").VString<string | undefined, "optional">;
|
|
334
|
+
generation: import("convex/values").VFloat64<number, "required">;
|
|
335
|
+
}, "required", "generation" | "orgId" | "userId">, {
|
|
336
|
+
by_owner: ["userId", "orgId", "_creationTime"];
|
|
337
|
+
}, {}, {}>;
|
|
17
338
|
payoutWorkerJobs: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
18
339
|
accountId: string;
|
|
19
340
|
cadenceMs: number;
|
|
@@ -1555,11 +1876,19 @@ export declare function setup(scope?: Scope): Promise<{
|
|
|
1555
1876
|
failureReason?: string | undefined;
|
|
1556
1877
|
metadata?: any;
|
|
1557
1878
|
reason?: "duplicate" | "expired_uncaptured_charge" | "fraudulent" | "requested_by_customer" | undefined;
|
|
1879
|
+
refundCommandConflict?: boolean | undefined;
|
|
1880
|
+
refundCommandKey?: string | undefined;
|
|
1881
|
+
refundCommandNormalizationVersion?: 1 | undefined;
|
|
1882
|
+
refundCommandObservedAt?: number | undefined;
|
|
1558
1883
|
status: "canceled" | "failed" | "pending" | "requires_action" | "succeeded";
|
|
1559
1884
|
stripeChargeId?: string | undefined;
|
|
1560
1885
|
stripePaymentIntentId?: string | undefined;
|
|
1561
1886
|
stripeRefundId: string;
|
|
1562
1887
|
}, {
|
|
1888
|
+
refundCommandNormalizationVersion: import("convex/values").VLiteral<1 | undefined, "optional">;
|
|
1889
|
+
refundCommandKey: import("convex/values").VString<string | undefined, "optional">;
|
|
1890
|
+
refundCommandConflict: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
1891
|
+
refundCommandObservedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
1563
1892
|
stripeRefundId: import("convex/values").VString<string, "required">;
|
|
1564
1893
|
stripePaymentIntentId: import("convex/values").VString<string | undefined, "optional">;
|
|
1565
1894
|
stripeChargeId: import("convex/values").VString<string | undefined, "optional">;
|
|
@@ -1570,12 +1899,14 @@ export declare function setup(scope?: Scope): Promise<{
|
|
|
1570
1899
|
reason: import("convex/values").VUnion<"duplicate" | "expired_uncaptured_charge" | "fraudulent" | "requested_by_customer" | undefined, [import("convex/values").VLiteral<"duplicate", "required">, import("convex/values").VLiteral<"fraudulent", "required">, import("convex/values").VLiteral<"requested_by_customer", "required">, import("convex/values").VLiteral<"expired_uncaptured_charge", "required">], "optional", never>;
|
|
1571
1900
|
failureReason: import("convex/values").VString<string | undefined, "optional">;
|
|
1572
1901
|
metadata: import("convex/values").VAny<any, "optional", string>;
|
|
1573
|
-
}, "required", "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`>, {
|
|
1902
|
+
}, "required", "accountId" | "amount" | "currency" | "failureReason" | "metadata" | "reason" | "refundCommandConflict" | "refundCommandKey" | "refundCommandNormalizationVersion" | "refundCommandObservedAt" | "status" | "stripeChargeId" | "stripePaymentIntentId" | "stripeRefundId" | `metadata.${string}`>, {
|
|
1574
1903
|
by_account_id: ["accountId", "_creationTime"];
|
|
1575
1904
|
by_account_id_and_status: ["accountId", "status", "_creationTime"];
|
|
1576
1905
|
by_account_id_and_stripe_payment_intent_id: ["accountId", "stripePaymentIntentId", "_creationTime"];
|
|
1577
1906
|
by_account_id_and_stripe_payment_intent_id_and_status: ["accountId", "stripePaymentIntentId", "status", "_creationTime"];
|
|
1578
1907
|
by_payment_intent_id_and_status: ["stripePaymentIntentId", "status", "_creationTime"];
|
|
1908
|
+
by_refund_command_key: ["refundCommandKey", "_creationTime"];
|
|
1909
|
+
by_refund_command_normalization_version: ["refundCommandNormalizationVersion", "_creationTime"];
|
|
1579
1910
|
by_status: ["status", "_creationTime"];
|
|
1580
1911
|
by_stripe_payment_intent_id: ["stripePaymentIntentId", "_creationTime"];
|
|
1581
1912
|
by_stripe_refund_id: ["stripeRefundId", "_creationTime"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutSyncTestHelpers.d.ts","sourceRoot":"","sources":["../../../src/client/connect/payoutSyncTestHelpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,QAAQ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;;;;;;;;;;;;kBAKxC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,QAAQ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkCzC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQtC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Infer } from "convex/values";
|
|
2
|
+
import type { refundCommandEvidenceValidator } from "../../component/refundHistory/commandEvidenceValidator.js";
|
|
3
|
+
import type { Component, RunCtx } from "../helpers.js";
|
|
4
|
+
export type RefundCommandEvidence = Infer<typeof refundCommandEvidenceValidator>;
|
|
5
|
+
export type RefundCommandEvidenceOptions = {
|
|
6
|
+
commandKey: string;
|
|
7
|
+
stripeAccountId: string;
|
|
8
|
+
stripePaymentIntentId: string;
|
|
9
|
+
stripeChargeId: string;
|
|
10
|
+
currency: string;
|
|
11
|
+
};
|
|
12
|
+
/** Host authorization and original command qualification are required before this observation. */
|
|
13
|
+
export declare function getRefundCommandEvidence(component: Component, ctx: RunCtx, input: RefundCommandEvidenceOptions): Promise<RefundCommandEvidence>;
|
|
14
|
+
//# sourceMappingURL=refundCommandEvidence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refundCommandEvidence.d.ts","sourceRoot":"","sources":["../../../src/client/connect/refundCommandEvidence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,2DAA2D,CAAC;AAChH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAGvD,MAAM,MAAM,qBAAqB,GAAG,KAAK,CACvC,OAAO,8BAA8B,CACtC,CAAC;AACF,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAWF,kGAAkG;AAClG,wBAAsB,wBAAwB,CAC5C,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,4BAA4B,GAClC,OAAO,CAAC,qBAAqB,CAAC,CAQhC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { assertRefundCommandScope } from "../../shared/refundCommandScope.js";
|
|
3
|
+
import { componentRef } from "../webhooks/helpers.js";
|
|
4
|
+
const optionsSchema = z
|
|
5
|
+
.object({
|
|
6
|
+
commandKey: z.string(),
|
|
7
|
+
stripeAccountId: z.string(),
|
|
8
|
+
stripePaymentIntentId: z.string(),
|
|
9
|
+
stripeChargeId: z.string(),
|
|
10
|
+
currency: z.string(),
|
|
11
|
+
})
|
|
12
|
+
.strict();
|
|
13
|
+
/** Host authorization and original command qualification are required before this observation. */
|
|
14
|
+
export async function getRefundCommandEvidence(component, ctx, input) {
|
|
15
|
+
const { stripeAccountId, ...options } = optionsSchema.parse(input);
|
|
16
|
+
const scope = { ...options, accountId: stripeAccountId };
|
|
17
|
+
assertRefundCommandScope(scope);
|
|
18
|
+
return ctx.runQuery(componentRef(component, "refundHistory/queries/getRefundCommandEvidence"), scope);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=refundCommandEvidence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refundCommandEvidence.js","sourceRoot":"","sources":["../../../src/client/connect/refundCommandEvidence.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAG9E,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAYtD,MAAM,aAAa,GAAG,CAAC;KACpB,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE;IACjC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,kGAAkG;AAClG,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,SAAoB,EACpB,GAAW,EACX,KAAmC;IAEnC,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACnE,MAAM,KAAK,GAAG,EAAE,GAAG,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;IACzD,wBAAwB,CAAC,KAAK,CAAC,CAAC;IAChC,OAAO,GAAG,CAAC,QAAQ,CACjB,YAAY,CAAC,SAAS,EAAE,gDAAgD,CAAC,EACzE,KAAK,CACN,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type RunCtx, type Component } from "../helpers.js";
|
|
2
|
+
export type RefundCommandNormalizationOptions = {
|
|
3
|
+
limit: number;
|
|
4
|
+
};
|
|
5
|
+
export type RefundCommandNormalizationResult = {
|
|
6
|
+
normalized: number;
|
|
7
|
+
hasMore: boolean;
|
|
8
|
+
};
|
|
9
|
+
/** Trusted-host projection maintenance; a drained component backlog is not complete provider history. */
|
|
10
|
+
export declare function normalizeRefundCommandBindings(component: Component, ctx: RunCtx, opts: RefundCommandNormalizationOptions): Promise<RefundCommandNormalizationResult>;
|
|
11
|
+
//# sourceMappingURL=refundCommandNormalization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refundCommandNormalization.d.ts","sourceRoot":"","sources":["../../../src/client/connect/refundCommandNormalization.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAEhF,MAAM,MAAM,iCAAiC,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAClE,MAAM,MAAM,gCAAgC,GAAG;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAKF,yGAAyG;AACzG,wBAAsB,8BAA8B,CAClD,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,iCAAiC,GACtC,OAAO,CAAC,gCAAgC,CAAC,CAU3C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { runMutationOrThrow } from "../helpers.js";
|
|
3
|
+
import { componentRef } from "../webhooks/helpers.js";
|
|
4
|
+
const optionsSchema = z
|
|
5
|
+
.object({ limit: z.number().int().min(1).max(100) })
|
|
6
|
+
.strict();
|
|
7
|
+
/** Trusted-host projection maintenance; a drained component backlog is not complete provider history. */
|
|
8
|
+
export async function normalizeRefundCommandBindings(component, ctx, opts) {
|
|
9
|
+
const args = optionsSchema.parse(opts);
|
|
10
|
+
return runMutationOrThrow(ctx, componentRef(component, "refundHistory/mutations/normalizeRefundCommandBindings"), args);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=refundCommandNormalization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refundCommandNormalization.js","sourceRoot":"","sources":["../../../src/client/connect/refundCommandNormalization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAA+B,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAMtD,MAAM,aAAa,GAAG,CAAC;KACpB,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;KACnD,MAAM,EAAE,CAAC;AAEZ,yGAAyG;AACzG,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,SAAoB,EACpB,GAAW,EACX,IAAuC;IAEvC,MAAM,IAAI,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACvC,OAAO,kBAAkB,CACvB,GAAG,EACH,YAAY,CACV,SAAS,EACT,wDAAwD,CACzD,EACD,IAAI,CACL,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { TransferObservationsClient } from "./transferObservations.js";
|
|
2
|
+
import type { PaginationOptions, PaginationResult } from "convex/server";
|
|
3
|
+
import type { Infer } from "convex/values";
|
|
4
|
+
import type { legDoc, sourceDoc } from "../component/financialObservations/schema.js";
|
|
5
|
+
import { InvoiceReadClient } from "./invoiceReads.js";
|
|
6
|
+
import type { Component, RunCtx } from "./helpers.js";
|
|
7
|
+
export type FinancialSourceObservation = Infer<typeof sourceDoc>;
|
|
8
|
+
export type FinancialSourceLeg = Infer<typeof legDoc>;
|
|
9
|
+
export type FinancialSourceResult = {
|
|
10
|
+
coverage: "unknown";
|
|
11
|
+
observation: FinancialSourceObservation | null;
|
|
12
|
+
};
|
|
13
|
+
export type FinancialObservationPage = PaginationResult<FinancialSourceLeg> & {
|
|
14
|
+
coverage: "unknown";
|
|
15
|
+
generation: number | null;
|
|
16
|
+
};
|
|
17
|
+
export type FinancialObservationOwner = {
|
|
18
|
+
userId: string;
|
|
19
|
+
orgId?: string;
|
|
20
|
+
};
|
|
21
|
+
/** Trusted host diagnostics only; neither caller selectors nor exhausted pages authorize closure. */
|
|
22
|
+
export declare class FinancialObservationsClient extends TransferObservationsClient {
|
|
23
|
+
constructor(component: Component);
|
|
24
|
+
source(ctx: RunCtx, input: {
|
|
25
|
+
allocationId: string;
|
|
26
|
+
}): Promise<FinancialSourceResult>;
|
|
27
|
+
resume(ctx: RunCtx, input: {
|
|
28
|
+
allocationId: string;
|
|
29
|
+
expectedGeneration: number;
|
|
30
|
+
}): Promise<FinancialSourceResult>;
|
|
31
|
+
bucket(ctx: RunCtx, input: {
|
|
32
|
+
bucketKey: string;
|
|
33
|
+
paginationOpts: PaginationOptions;
|
|
34
|
+
}): Promise<FinancialObservationPage>;
|
|
35
|
+
owner(ctx: RunCtx, input: FinancialObservationOwner & {
|
|
36
|
+
paginationOpts: PaginationOptions;
|
|
37
|
+
}): Promise<FinancialObservationPage>;
|
|
38
|
+
}
|
|
39
|
+
export declare abstract class FinancialObservationsHost extends InvoiceReadClient {
|
|
40
|
+
readonly financialObservations: FinancialObservationsClient;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=financialObservations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"financialObservations.d.ts","sourceRoot":"","sources":["../../src/client/financialObservations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAEvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAM3C,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EACV,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItD,MAAM,MAAM,0BAA0B,GAAG,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AACjE,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AACtD,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,SAAS,CAAC;IACpB,WAAW,EAAE,0BAA0B,GAAG,IAAI,CAAC;CAChD,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,gBAAgB,CAAC,kBAAkB,CAAC,GAAG;IAC5E,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC3E,qGAAqG;AACrG,qBAAa,2BAA4B,SAAQ,0BAA0B;IACzE,YAAY,SAAS,EAAE,SAAS,EAE/B;IACK,MAAM,CACV,GAAG,EAAE,MAAM,EACX,KAAK,EAAE;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,GAC9B,OAAO,CAAC,qBAAqB,CAAC,CAShC;IACK,MAAM,CACV,GAAG,EAAE,MAAM,EACX,KAAK,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,kBAAkB,EAAE,MAAM,CAAA;KAAE,GAC1D,OAAO,CAAC,qBAAqB,CAAC,CAiBhC;IACK,MAAM,CACV,GAAG,EAAE,MAAM,EACX,KAAK,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,iBAAiB,CAAA;KAAE,GAC9D,OAAO,CAAC,wBAAwB,CAAC,CAUnC;IACK,KAAK,CACT,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,yBAAyB,GAAG;QAAE,cAAc,EAAE,iBAAiB,CAAA;KAAE,GACvE,OAAO,CAAC,wBAAwB,CAAC,CAcnC;CACF;AACD,8BAAsB,yBAA0B,SAAQ,iBAAiB;IACvE,QAAQ,CAAC,qBAAqB,8BAE5B;CACH"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { TransferObservationsClient } from "./transferObservations.js";
|
|
2
|
+
import { observationPagination } from "./observationPagination.js";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { assertOwner, assertSelector, } from "../component/financialOwnership/helpers.js";
|
|
5
|
+
import { InvoiceReadClient } from "./invoiceReads.js";
|
|
6
|
+
import { runMutationOrThrow } from "./helpers.js";
|
|
7
|
+
import { componentRef } from "./webhooks/helpers.js";
|
|
8
|
+
/** Trusted host diagnostics only; neither caller selectors nor exhausted pages authorize closure. */
|
|
9
|
+
export class FinancialObservationsClient extends TransferObservationsClient {
|
|
10
|
+
constructor(component) {
|
|
11
|
+
super(component);
|
|
12
|
+
}
|
|
13
|
+
async source(ctx, input) {
|
|
14
|
+
const args = z
|
|
15
|
+
.object({ allocationId: z.string().min(1).max(256) })
|
|
16
|
+
.strict()
|
|
17
|
+
.parse(input);
|
|
18
|
+
return ctx.runQuery(componentRef(this.component, "financialObservations/queries/source"), args);
|
|
19
|
+
}
|
|
20
|
+
async resume(ctx, input) {
|
|
21
|
+
const args = z
|
|
22
|
+
.object({
|
|
23
|
+
allocationId: z.string().min(1).max(256),
|
|
24
|
+
expectedGeneration: z
|
|
25
|
+
.number()
|
|
26
|
+
.int()
|
|
27
|
+
.min(1)
|
|
28
|
+
.max(Number.MAX_SAFE_INTEGER),
|
|
29
|
+
})
|
|
30
|
+
.strict()
|
|
31
|
+
.parse(input);
|
|
32
|
+
return runMutationOrThrow(ctx, componentRef(this.component, "financialObservations/mutations/resume"), args);
|
|
33
|
+
}
|
|
34
|
+
async bucket(ctx, input) {
|
|
35
|
+
const args = z
|
|
36
|
+
.object({ bucketKey: z.string(), paginationOpts: observationPagination })
|
|
37
|
+
.strict()
|
|
38
|
+
.parse(input);
|
|
39
|
+
assertSelector(args.bucketKey);
|
|
40
|
+
return ctx.runQuery(componentRef(this.component, "financialObservations/queries/bucket"), args);
|
|
41
|
+
}
|
|
42
|
+
async owner(ctx, input) {
|
|
43
|
+
const args = z
|
|
44
|
+
.object({
|
|
45
|
+
userId: z.string(),
|
|
46
|
+
orgId: z.string().optional(),
|
|
47
|
+
paginationOpts: observationPagination,
|
|
48
|
+
})
|
|
49
|
+
.strict()
|
|
50
|
+
.parse(input);
|
|
51
|
+
assertOwner(args);
|
|
52
|
+
return ctx.runQuery(componentRef(this.component, "financialObservations/queries/owner"), args);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export class FinancialObservationsHost extends InvoiceReadClient {
|
|
56
|
+
financialObservations = new FinancialObservationsClient(this.component);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=financialObservations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"financialObservations.js","sourceRoot":"","sources":["../../src/client/financialObservations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EACX,cAAc,GACf,MAAM,4CAA4C,CAAC;AAKpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAarD,qGAAqG;AACrG,MAAM,OAAO,2BAA4B,SAAQ,0BAA0B;IACzE,YAAY,SAAoB;QAC9B,KAAK,CAAC,SAAS,CAAC,CAAC;IACnB,CAAC;IACD,KAAK,CAAC,MAAM,CACV,GAAW,EACX,KAA+B;QAE/B,MAAM,IAAI,GAAG,CAAC;aACX,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;aACpD,MAAM,EAAE;aACR,KAAK,CAAC,KAAK,CAAC,CAAC;QAChB,OAAO,GAAG,CAAC,QAAQ,CACjB,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,sCAAsC,CAAC,EACpE,IAAI,CACL,CAAC;IAC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