@fantastic.dev/better-stripe 0.59.0 → 0.60.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.
Files changed (124) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +3 -1
  3. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +650 -44
  4. package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
  5. package/dist/client/connect/payoutExecutionTestHelpers.d.ts +309 -6
  6. package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
  7. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +618 -12
  8. package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
  9. package/dist/client/connect/payoutSyncTestHelpers.d.ts +325 -22
  10. package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
  11. package/dist/client/index.d.ts +4 -0
  12. package/dist/client/index.d.ts.map +1 -1
  13. package/dist/client/paymentSource/resolver.d.ts +12 -1
  14. package/dist/client/paymentSource/resolver.d.ts.map +1 -1
  15. package/dist/client/paymentSource/resolver.fixtures.d.ts +220 -0
  16. package/dist/client/paymentSource/resolver.fixtures.d.ts.map +1 -0
  17. package/dist/client/paymentSource/resolver.fixtures.js +189 -0
  18. package/dist/client/paymentSource/resolver.fixtures.js.map +1 -0
  19. package/dist/client/paymentSource/resolver.js +28 -3
  20. package/dist/client/paymentSource/resolver.js.map +1 -1
  21. package/dist/client/settlement/execution.d.ts +25 -0
  22. package/dist/client/settlement/execution.d.ts.map +1 -1
  23. package/dist/client/settlement/execution.js +2 -0
  24. package/dist/client/settlement/execution.js.map +1 -1
  25. package/dist/client/usage/catalogPrices.d.ts +1 -1
  26. package/dist/client/usage/catalogPrices.d.ts.map +1 -1
  27. package/dist/client/usage/catalogPrices.js +4 -4
  28. package/dist/client/usage/catalogPrices.js.map +1 -1
  29. package/dist/client/usage/client.d.ts +2 -2
  30. package/dist/client/usage/client.js +2 -2
  31. package/dist/client/usage/creditRevenue.d.ts +22 -0
  32. package/dist/client/usage/creditRevenue.d.ts.map +1 -0
  33. package/dist/client/usage/creditRevenue.js +118 -0
  34. package/dist/client/usage/creditRevenue.js.map +1 -0
  35. package/dist/client/usage/creditSettlement.d.ts +29 -0
  36. package/dist/client/usage/creditSettlement.d.ts.map +1 -0
  37. package/dist/client/usage/creditSettlement.fixtures.d.ts +215 -0
  38. package/dist/client/usage/creditSettlement.fixtures.d.ts.map +1 -0
  39. package/dist/client/usage/creditSettlement.fixtures.js +59 -0
  40. package/dist/client/usage/creditSettlement.fixtures.js.map +1 -0
  41. package/dist/client/usage/creditSettlement.js +70 -0
  42. package/dist/client/usage/creditSettlement.js.map +1 -0
  43. package/dist/client/usage/creditTransport.fixtures.d.ts +7 -1
  44. package/dist/client/usage/creditTransport.fixtures.d.ts.map +1 -1
  45. package/dist/client/usage/creditTransport.fixtures.js +25 -4
  46. package/dist/client/usage/creditTransport.fixtures.js.map +1 -1
  47. package/dist/client/usage/index.d.ts +4 -0
  48. package/dist/client/usage/index.d.ts.map +1 -1
  49. package/dist/client/usage/invoiceSale.d.ts +22 -0
  50. package/dist/client/usage/invoiceSale.d.ts.map +1 -0
  51. package/dist/client/usage/invoiceSale.fixtures.d.ts +285 -0
  52. package/dist/client/usage/invoiceSale.fixtures.d.ts.map +1 -0
  53. package/dist/client/usage/invoiceSale.fixtures.js +104 -0
  54. package/dist/client/usage/invoiceSale.fixtures.js.map +1 -0
  55. package/dist/client/usage/invoiceSale.js +117 -0
  56. package/dist/client/usage/invoiceSale.js.map +1 -0
  57. package/dist/client/usage/observationClient.d.ts +2 -2
  58. package/dist/client/usage/observationClient.d.ts.map +1 -1
  59. package/dist/client/usage/settlement.d.ts +32 -0
  60. package/dist/client/usage/settlement.d.ts.map +1 -0
  61. package/dist/client/usage/settlement.js +60 -0
  62. package/dist/client/usage/settlement.js.map +1 -0
  63. package/dist/client/usage/settlementClient.d.ts +51 -0
  64. package/dist/client/usage/settlementClient.d.ts.map +1 -0
  65. package/dist/client/usage/settlementClient.js +35 -0
  66. package/dist/client/usage/settlementClient.js.map +1 -0
  67. package/dist/component/_generated/component.d.ts +125 -0
  68. package/dist/component/_generated/component.d.ts.map +1 -1
  69. package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
  70. package/dist/component/balanceFunding/mutations.d.ts +27 -27
  71. package/dist/component/earnings/triggers.d.ts +156 -6
  72. package/dist/component/earnings/triggers.d.ts.map +1 -1
  73. package/dist/component/financialObservations/settlementHelpers.d.ts.map +1 -1
  74. package/dist/component/financialObservations/settlementHelpers.js +2 -0
  75. package/dist/component/financialObservations/settlementHelpers.js.map +1 -1
  76. package/dist/component/recoveryWorkflow/helpers.d.ts +25 -0
  77. package/dist/component/recoveryWorkflow/helpers.d.ts.map +1 -1
  78. package/dist/component/recoveryWorkflow/mutations.d.ts +25 -0
  79. package/dist/component/recoveryWorkflow/mutations.d.ts.map +1 -1
  80. package/dist/component/recoveryWorkflow/queries.d.ts +50 -0
  81. package/dist/component/recoveryWorkflow/queries.d.ts.map +1 -1
  82. package/dist/component/recoveryWorkflow/schema.d.ts +566 -10
  83. package/dist/component/recoveryWorkflow/schema.d.ts.map +1 -1
  84. package/dist/component/schema.d.ts +309 -6
  85. package/dist/component/settlement/mutations.d.ts +50 -0
  86. package/dist/component/settlement/mutations.d.ts.map +1 -1
  87. package/dist/component/settlement/mutations.js +8 -1
  88. package/dist/component/settlement/mutations.js.map +1 -1
  89. package/dist/component/settlement/queries.d.ts +25 -0
  90. package/dist/component/settlement/queries.d.ts.map +1 -1
  91. package/dist/component/settlement/schema.d.ts +128 -1
  92. package/dist/component/settlement/schema.d.ts.map +1 -1
  93. package/dist/component/settlement/schema.js +22 -0
  94. package/dist/component/settlement/schema.js.map +1 -1
  95. package/docs/README.md +2 -0
  96. package/docs/settlement.md +4 -0
  97. package/docs/usage-settlement.md +162 -0
  98. package/package.json +2 -1
  99. package/src/client/index.ts +9 -0
  100. package/src/client/paymentSource/resolver.fixtures.ts +216 -0
  101. package/src/client/paymentSource/resolver.test.ts +11 -207
  102. package/src/client/paymentSource/resolver.ts +54 -2
  103. package/src/client/settlement/execution.ts +24 -0
  104. package/src/client/usage/catalogPrices.ts +4 -2
  105. package/src/client/usage/client.ts +2 -2
  106. package/src/client/usage/creditRevenue.test.ts +105 -0
  107. package/src/client/usage/creditRevenue.ts +163 -0
  108. package/src/client/usage/creditSettlement.fixtures.ts +70 -0
  109. package/src/client/usage/creditSettlement.test.ts +66 -0
  110. package/src/client/usage/creditSettlement.ts +94 -0
  111. package/src/client/usage/creditSettlementRecovery.test.ts +173 -0
  112. package/src/client/usage/creditTransport.fixtures.ts +29 -4
  113. package/src/client/usage/index.ts +9 -0
  114. package/src/client/usage/invoiceSale.fixtures.ts +103 -0
  115. package/src/client/usage/invoiceSale.test.ts +184 -0
  116. package/src/client/usage/invoiceSale.ts +155 -0
  117. package/src/client/usage/settlement.test.ts +179 -0
  118. package/src/client/usage/settlement.ts +81 -0
  119. package/src/client/usage/settlementClient.ts +84 -0
  120. package/src/component/_generated/component.ts +110 -0
  121. package/src/component/financialObservations/settlementHelpers.ts +2 -0
  122. package/src/component/settlement/mutations.ts +10 -1
  123. package/src/component/settlement/schema.ts +26 -0
  124. package/src/component/settlement/settlement-claims.test.ts +54 -0
@@ -9,6 +9,17 @@ export declare const bridge: import("convex/server").RegisteredAction<"internal"
9
9
  stripeSubscriptionId: string;
10
10
  version: number;
11
11
  }, Promise<{
12
+ status: "ready";
13
+ value: {
14
+ customerAccount: string;
15
+ enabled?: boolean | undefined;
16
+ paymentMethodId: string | null;
17
+ paymentMethodTypes?: string[] | null | undefined;
18
+ phase: "apply" | "attach" | "create";
19
+ providerApiVersion: string;
20
+ stripeSubscriptionId: string;
21
+ };
22
+ } | {
12
23
  reason: "history_incomplete" | "provider_outcome_unknown";
13
24
  retryable: false;
14
25
  status: "unknown";
@@ -24,16 +35,5 @@ export declare const bridge: import("convex/server").RegisteredAction<"internal"
24
35
  reason: "provider_pending";
25
36
  retryable: true;
26
37
  status: "not_ready";
27
- } | {
28
- status: "ready";
29
- value: {
30
- customerAccount: string;
31
- enabled?: boolean | undefined;
32
- paymentMethodId: string | null;
33
- paymentMethodTypes?: string[] | null | undefined;
34
- phase: "apply" | "attach" | "create";
35
- providerApiVersion: string;
36
- stripeSubscriptionId: string;
37
- };
38
38
  }>>;
39
39
  //# sourceMappingURL=actions.d.ts.map
@@ -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;
@@ -1700,6 +1700,15 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
1700
1700
  activePhase?: "execute" | "reconcile" | undefined;
1701
1701
  allocation?: {
1702
1702
  adjustmentAmount?: number | undefined;
1703
+ creditSource?: {
1704
+ creditGrantId: string;
1705
+ customerAccount: string;
1706
+ livemode: boolean;
1707
+ purchaseId: string;
1708
+ stripeAccountId: string;
1709
+ stripePriceId: string;
1710
+ stripeProductId: string;
1711
+ } | undefined;
1703
1712
  currency: string;
1704
1713
  gross: number;
1705
1714
  paymentId?: string | undefined;
@@ -1713,6 +1722,22 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
1713
1722
  destinationAccountId: string;
1714
1723
  role: "affiliate" | "other" | "store";
1715
1724
  }[];
1725
+ usageSource?: {
1726
+ customerAccount: string;
1727
+ invoicePaymentId: string;
1728
+ livemode: boolean;
1729
+ meterId: string;
1730
+ model: "included_overage" | "pay_as_you_go";
1731
+ period: {
1732
+ end: number;
1733
+ start: number;
1734
+ };
1735
+ stripeAccountId: string;
1736
+ stripePriceId: string;
1737
+ stripeProductId: string;
1738
+ subscriptionId: string;
1739
+ subscriptionItemId: string;
1740
+ } | undefined;
1716
1741
  } | undefined;
1717
1742
  cancelRequested: boolean;
1718
1743
  completion?: string | undefined;
@@ -1734,7 +1759,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
1734
1759
  version: number;
1735
1760
  workflowId?: string | undefined;
1736
1761
  };
1737
- fieldPaths: "_id" | ("_creationTime" | "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId");
1762
+ 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");
1738
1763
  indexes: {
1739
1764
  by_id: ["_id"];
1740
1765
  by_creation_time: ["_creationTime"];
@@ -1752,6 +1777,15 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
1752
1777
  accountId: string;
1753
1778
  allocation?: {
1754
1779
  adjustmentAmount?: number | undefined;
1780
+ creditSource?: {
1781
+ creditGrantId: string;
1782
+ customerAccount: string;
1783
+ livemode: boolean;
1784
+ purchaseId: string;
1785
+ stripeAccountId: string;
1786
+ stripePriceId: string;
1787
+ stripeProductId: string;
1788
+ } | undefined;
1755
1789
  currency: string;
1756
1790
  gross: number;
1757
1791
  paymentId?: string | undefined;
@@ -1765,6 +1799,22 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
1765
1799
  destinationAccountId: string;
1766
1800
  role: "affiliate" | "other" | "store";
1767
1801
  }[];
1802
+ usageSource?: {
1803
+ customerAccount: string;
1804
+ invoicePaymentId: string;
1805
+ livemode: boolean;
1806
+ meterId: string;
1807
+ model: "included_overage" | "pay_as_you_go";
1808
+ period: {
1809
+ end: number;
1810
+ start: number;
1811
+ };
1812
+ stripeAccountId: string;
1813
+ stripePriceId: string;
1814
+ stripeProductId: string;
1815
+ subscriptionId: string;
1816
+ subscriptionItemId: string;
1817
+ } | undefined;
1768
1818
  } | undefined;
1769
1819
  completion?: string | undefined;
1770
1820
  currency: string;
@@ -1780,7 +1830,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
1780
1830
  operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
1781
1831
  requestKey: string;
1782
1832
  };
1783
- fieldPaths: "_id" | ("_creationTime" | "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "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.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey");
1833
+ 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");
1784
1834
  indexes: {
1785
1835
  by_id: ["_id"];
1786
1836
  by_creation_time: ["_creationTime"];
@@ -1854,6 +1904,15 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
1854
1904
  _creationTime: number;
1855
1905
  _id: import("convex/values").GenericId<"settlementAllocations">;
1856
1906
  adjustmentAmount?: number | undefined;
1907
+ creditSource?: {
1908
+ creditGrantId: string;
1909
+ customerAccount: string;
1910
+ livemode: boolean;
1911
+ purchaseId: string;
1912
+ stripeAccountId: string;
1913
+ stripePriceId: string;
1914
+ stripeProductId: string;
1915
+ } | undefined;
1857
1916
  currency: string;
1858
1917
  gross: number;
1859
1918
  paymentId?: string | undefined;
@@ -1867,8 +1926,24 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
1867
1926
  destinationAccountId: string;
1868
1927
  role: "affiliate" | "other" | "store";
1869
1928
  }[];
1929
+ usageSource?: {
1930
+ customerAccount: string;
1931
+ invoicePaymentId: string;
1932
+ livemode: boolean;
1933
+ meterId: string;
1934
+ model: "included_overage" | "pay_as_you_go";
1935
+ period: {
1936
+ end: number;
1937
+ start: number;
1938
+ };
1939
+ stripeAccountId: string;
1940
+ stripePriceId: string;
1941
+ stripeProductId: string;
1942
+ subscriptionId: string;
1943
+ subscriptionItemId: string;
1944
+ } | undefined;
1870
1945
  };
1871
- fieldPaths: "_id" | ("_creationTime" | "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers");
1946
+ 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");
1872
1947
  indexes: {
1873
1948
  by_id: ["_id"];
1874
1949
  by_creation_time: ["_creationTime"];
@@ -4268,6 +4343,15 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
4268
4343
  activePhase?: "execute" | "reconcile" | undefined;
4269
4344
  allocation?: {
4270
4345
  adjustmentAmount?: number | undefined;
4346
+ creditSource?: {
4347
+ creditGrantId: string;
4348
+ customerAccount: string;
4349
+ livemode: boolean;
4350
+ purchaseId: string;
4351
+ stripeAccountId: string;
4352
+ stripePriceId: string;
4353
+ stripeProductId: string;
4354
+ } | undefined;
4271
4355
  currency: string;
4272
4356
  gross: number;
4273
4357
  paymentId?: string | undefined;
@@ -4281,6 +4365,22 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
4281
4365
  destinationAccountId: string;
4282
4366
  role: "affiliate" | "other" | "store";
4283
4367
  }[];
4368
+ usageSource?: {
4369
+ customerAccount: string;
4370
+ invoicePaymentId: string;
4371
+ livemode: boolean;
4372
+ meterId: string;
4373
+ model: "included_overage" | "pay_as_you_go";
4374
+ period: {
4375
+ end: number;
4376
+ start: number;
4377
+ };
4378
+ stripeAccountId: string;
4379
+ stripePriceId: string;
4380
+ stripeProductId: string;
4381
+ subscriptionId: string;
4382
+ subscriptionItemId: string;
4383
+ } | undefined;
4284
4384
  } | undefined;
4285
4385
  cancelRequested: boolean;
4286
4386
  completion?: string | undefined;
@@ -4302,7 +4402,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
4302
4402
  version: number;
4303
4403
  workflowId?: string | undefined;
4304
4404
  };
4305
- fieldPaths: "_id" | ("_creationTime" | "accountId" | "activePhase" | "allocation" | "allocation.adjustmentAmount" | "allocation.currency" | "allocation.gross" | "allocation.paymentId" | "allocation.paymentIntentId" | "allocation.platformNet" | "allocation.processingFee" | "allocation.sourceChargeId" | "allocation.sourceInvoiceId" | "allocation.transfers" | "cancelRequested" | "completion" | "currency" | "definitionVersion" | "groupKey" | "maxAttempts" | "outcome" | "provider" | "providerApiVersion" | "providerStarted" | "releaseUncollectible" | "resumeQueued" | "retryDelayMs" | "scopeKey" | "sourceId" | "sourceKind" | "status" | "version" | "workflowId");
4405
+ 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");
4306
4406
  indexes: {
4307
4407
  by_id: ["_id"];
4308
4408
  by_creation_time: ["_creationTime"];
@@ -4320,6 +4420,15 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
4320
4420
  accountId: string;
4321
4421
  allocation?: {
4322
4422
  adjustmentAmount?: number | undefined;
4423
+ creditSource?: {
4424
+ creditGrantId: string;
4425
+ customerAccount: string;
4426
+ livemode: boolean;
4427
+ purchaseId: string;
4428
+ stripeAccountId: string;
4429
+ stripePriceId: string;
4430
+ stripeProductId: string;
4431
+ } | undefined;
4323
4432
  currency: string;
4324
4433
  gross: number;
4325
4434
  paymentId?: string | undefined;
@@ -4333,6 +4442,22 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
4333
4442
  destinationAccountId: string;
4334
4443
  role: "affiliate" | "other" | "store";
4335
4444
  }[];
4445
+ usageSource?: {
4446
+ customerAccount: string;
4447
+ invoicePaymentId: string;
4448
+ livemode: boolean;
4449
+ meterId: string;
4450
+ model: "included_overage" | "pay_as_you_go";
4451
+ period: {
4452
+ end: number;
4453
+ start: number;
4454
+ };
4455
+ stripeAccountId: string;
4456
+ stripePriceId: string;
4457
+ stripeProductId: string;
4458
+ subscriptionId: string;
4459
+ subscriptionItemId: string;
4460
+ } | undefined;
4336
4461
  } | undefined;
4337
4462
  completion?: string | undefined;
4338
4463
  currency: string;
@@ -4348,7 +4473,7 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
4348
4473
  operationId: import("convex/values").GenericId<"recoveryWorkflowOperations">;
4349
4474
  requestKey: string;
4350
4475
  };
4351
- fieldPaths: "_id" | ("_creationTime" | "binding" | "binding.accountId" | "binding.allocation" | "binding.allocation.adjustmentAmount" | "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.completion" | "binding.currency" | "binding.definitionVersion" | "binding.groupKey" | "binding.maxAttempts" | "binding.provider" | "binding.providerApiVersion" | "binding.releaseUncollectible" | "binding.retryDelayMs" | "binding.scopeKey" | "operationId" | "requestKey");
4476
+ 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");
4352
4477
  indexes: {
4353
4478
  by_id: ["_id"];
4354
4479
  by_creation_time: ["_creationTime"];
@@ -4422,6 +4547,15 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
4422
4547
  _creationTime: number;
4423
4548
  _id: import("convex/values").GenericId<"settlementAllocations">;
4424
4549
  adjustmentAmount?: number | undefined;
4550
+ creditSource?: {
4551
+ creditGrantId: string;
4552
+ customerAccount: string;
4553
+ livemode: boolean;
4554
+ purchaseId: string;
4555
+ stripeAccountId: string;
4556
+ stripePriceId: string;
4557
+ stripeProductId: string;
4558
+ } | undefined;
4425
4559
  currency: string;
4426
4560
  gross: number;
4427
4561
  paymentId?: string | undefined;
@@ -4435,8 +4569,24 @@ export declare const mutation: import("convex-helpers/server/customFunctions").C
4435
4569
  destinationAccountId: string;
4436
4570
  role: "affiliate" | "other" | "store";
4437
4571
  }[];
4572
+ usageSource?: {
4573
+ customerAccount: string;
4574
+ invoicePaymentId: string;
4575
+ livemode: boolean;
4576
+ meterId: string;
4577
+ model: "included_overage" | "pay_as_you_go";
4578
+ period: {
4579
+ end: number;
4580
+ start: number;
4581
+ };
4582
+ stripeAccountId: string;
4583
+ stripePriceId: string;
4584
+ stripeProductId: string;
4585
+ subscriptionId: string;
4586
+ subscriptionItemId: string;
4587
+ } | undefined;
4438
4588
  };
4439
- fieldPaths: "_id" | ("_creationTime" | "adjustmentAmount" | "currency" | "gross" | "paymentId" | "paymentIntentId" | "platformNet" | "processingFee" | "sourceChargeId" | "sourceInvoiceId" | "transfers");
4589
+ 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");
4440
4590
  indexes: {
4441
4591
  by_id: ["_id"];
4442
4592
  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;;;;;;;;;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D;AACD,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,GAAG,CAAC,uBAAuB,CAAC,EACjC,IAAI,EAAE,GAAG,CAAC,qBAAqB,CAAC,EAAE,WAenC;AAED,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,GAAG,CAAC,uBAAuB,CAAC,mBAa5E"}
1
+ {"version":3,"file":"settlementHelpers.d.ts","sourceRoot":"","sources":["../../../src/component/financialObservations/settlementHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAO3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,KAAK,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,EAAE,KAAK,GAAG,eAAe,CAAC,CAAC;AAC/D,wBAAsB,YAAY,CAChC,GAAG,EAAE,WAAW,EAChB,SAAS,EAAE,MAAM,EACjB,KAAK,EACD,IAAI,CAAC,GAAG,CAAC,qBAAqB,CAAC,EAAE,gBAAgB,GAAG,QAAQ,GAAG,OAAO,CAAC,GACvE,SAAS;;;;qBAeuB,WAAW;;;;;qBAAX,WAAW;;;;;qBACM,SAAS;;;;;qBAAT,SAAS;;;;;qBAO1B,eAAe;;;;;qBAAf,eAAe;;;;;qBAKhC,YAAY;GAEhC;AACD,wBAAsB,UAAU,CAC9B,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC,EAAE,iBAQpD;AACD,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,GAAG,CAAC,uBAAuB,CAAC,EACjC,IAAI,EAAE,GAAG,CAAC,qBAAqB,CAAC,EAAE,WAenC;AAED,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,GAAG,CAAC,uBAAuB,CAAC,mBAe5E"}
@@ -58,6 +58,8 @@ export async function settlementFingerprint(row) {
58
58
  sourceChargeId: row.sourceChargeId,
59
59
  paymentIntentId: row.paymentIntentId,
60
60
  sourceInvoiceId: row.sourceInvoiceId,
61
+ ...(row.usageSource ? { usageSource: row.usageSource } : {}),
62
+ ...(row.creditSource ? { creditSource: row.creditSource } : {}),
61
63
  gross: row.gross,
62
64
  currency: row.currency,
63
65
  processingFee: row.processingFee,
@@ -1 +1 @@
1
- {"version":3,"file":"settlementHelpers.js","sourceRoot":"","sources":["../../../src/component/financialObservations/settlementHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EACL,4BAA4B,EAC5B,WAAW,EACX,UAAU,GACX,MAAM,kBAAkB,CAAC;AAI1B,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,GAAgB,EAChB,SAAiB,EACjB,KAEa;IAEb,MAAM,aAAa,GAAG,MAAM,GAAG,CAAC,EAAE;SAC/B,KAAK,CAAC,oBAAoB,CAAC;SAC3B,SAAS,CAAC,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;SAC/D,IAAI,CAAC,CAAC,CAAC,CAAC;IACX,MAAM,YAAY,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;IACtC,MAAM,GAAG,GAAG,KAAK,EAAE,cAAc;QAC/B,CAAC,CAAC;YACE,cAAc,EAAE,KAAK,CAAC,cAAc;YACpC,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,KAAK,EAAE,KAAK,CAAC,KAAK;SACnB;QACH,CAAC,CAAC,EAAE,CAAC;IACP,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC;QAC1B,OAAO,EAAE,GAAG,GAAG,EAAE,eAAe,EAAE,WAAoB,EAAE,CAAC;IAC3D,IAAI,CAA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AC,CAAC;QAC7C,MAAM,SAAS,GACb,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC;YACvB,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC;YAC/B,CAAC,QAAQ;YACT,GAAG,CAAC,cAAc,KAAK,GAAG,CAAC,cAAc;YACzC,GAAG,CAAC,SAAS,KAAK,QAAQ,CAAC,oBAAoB;YAC/C,GAAG,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI,CAAC;QAC7B,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACxB,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,GAAiC;IAC3E,OAAO,sBAAsB,CAAC,sCAAsC,EAAE;QACpE,cAAc,EAAE,GAAG,CAAC,cAAc;QAClC,eAAe,EAAE,GAAG,CAAC,eAAe;QACpC,eAAe,EAAE,GAAG,CAAC,eAAe;QACpC,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,aAAa,EAAE,GAAG,CAAC,aAAa;QAChC,WAAW,EAAE,GAAG,CAAC,WAAW;QAC5B,gBAAgB,EAAE,GAAG,CAAC,gBAAgB;QACtC,SAAS,EAAE,GAAG,CAAC,SAAS;QACxB,SAAS,EAAE,GAAG,CAAC,SAAS;KACzB,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"settlementHelpers.js","sourceRoot":"","sources":["../../../src/component/financialObservations/settlementHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EACL,4BAA4B,EAC5B,WAAW,EACX,UAAU,GACX,MAAM,kBAAkB,CAAC;AAI1B,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,GAAgB,EAChB,SAAiB,EACjB,KAEa;IAEb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AAE,GAAG,CAAC,eAAe;QACpC,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5D,GAAG,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,GAAG,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/D,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,aAAa,EAAE,GAAG,CAAC,aAAa;QAChC,WAAW,EAAE,GAAG,CAAC,WAAW;QAC5B,gBAAgB,EAAE,GAAG,CAAC,gBAAgB;QACtC,SAAS,EAAE,GAAG,CAAC,SAAS;QACxB,SAAS,EAAE,GAAG,CAAC,SAAS;KACzB,CAAC,CAAC;AACL,CAAC"}
@@ -43,6 +43,15 @@ export declare function read(ctx: QueryCtx | MutationCtx, args: OperationRef): P
43
43
  activePhase?: "execute" | "reconcile" | undefined;
44
44
  allocation?: {
45
45
  adjustmentAmount?: number | undefined;
46
+ creditSource?: {
47
+ creditGrantId: string;
48
+ customerAccount: string;
49
+ livemode: boolean;
50
+ purchaseId: string;
51
+ stripeAccountId: string;
52
+ stripePriceId: string;
53
+ stripeProductId: string;
54
+ } | undefined;
46
55
  currency: string;
47
56
  gross: number;
48
57
  paymentId?: string | undefined;
@@ -56,6 +65,22 @@ export declare function read(ctx: QueryCtx | MutationCtx, args: OperationRef): P
56
65
  destinationAccountId: string;
57
66
  role: "affiliate" | "other" | "store";
58
67
  }[];
68
+ usageSource?: {
69
+ customerAccount: string;
70
+ invoicePaymentId: string;
71
+ livemode: boolean;
72
+ meterId: string;
73
+ model: "included_overage" | "pay_as_you_go";
74
+ period: {
75
+ end: number;
76
+ start: number;
77
+ };
78
+ stripeAccountId: string;
79
+ stripePriceId: string;
80
+ stripeProductId: string;
81
+ subscriptionId: string;
82
+ subscriptionItemId: string;
83
+ } | undefined;
59
84
  } | undefined;
60
85
  cancelRequested: boolean;
61
86
  completion?: 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUzE;AACD,kFAAkF;AAClF,wBAAgB,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAapD"}
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"}
@@ -2,6 +2,15 @@ export declare const start: import("convex/server").RegisteredMutation<"public",
2
2
  accountId: string;
3
3
  allocation?: {
4
4
  adjustmentAmount?: number | undefined;
5
+ creditSource?: {
6
+ creditGrantId: string;
7
+ customerAccount: string;
8
+ livemode: boolean;
9
+ purchaseId: string;
10
+ stripeAccountId: string;
11
+ stripePriceId: string;
12
+ stripeProductId: string;
13
+ } | undefined;
5
14
  currency: string;
6
15
  gross: number;
7
16
  paymentId?: string | undefined;
@@ -15,6 +24,22 @@ export declare const start: import("convex/server").RegisteredMutation<"public",
15
24
  destinationAccountId: string;
16
25
  role: "affiliate" | "other" | "store";
17
26
  }[];
27
+ usageSource?: {
28
+ customerAccount: string;
29
+ invoicePaymentId: string;
30
+ livemode: boolean;
31
+ meterId: string;
32
+ model: "included_overage" | "pay_as_you_go";
33
+ period: {
34
+ end: number;
35
+ start: number;
36
+ };
37
+ stripeAccountId: string;
38
+ stripePriceId: string;
39
+ stripeProductId: string;
40
+ subscriptionId: string;
41
+ subscriptionItemId: string;
42
+ } | undefined;
18
43
  } | undefined;
19
44
  completion?: string | undefined;
20
45
  currency: string;
@@ -1 +1 @@
1
- {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/mutations.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA6DF,WAAW;qBACX,oBAAoB;;GAwElC,CAAC;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;GAYxB,CAAC;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;GAyDjB,CAAC"}
1
+ {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/component/recoveryWorkflow/mutations.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA6DF,WAAW;qBACX,oBAAoB;;GAwElC,CAAC;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;GAYxB,CAAC;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;GAyDjB,CAAC"}
@@ -33,6 +33,15 @@ export declare const snapshot: import("convex/server").RegisteredQuery<"public",
33
33
  activePhase?: "execute" | "reconcile" | undefined;
34
34
  allocation?: {
35
35
  adjustmentAmount?: number | undefined;
36
+ creditSource?: {
37
+ creditGrantId: string;
38
+ customerAccount: string;
39
+ livemode: boolean;
40
+ purchaseId: string;
41
+ stripeAccountId: string;
42
+ stripePriceId: string;
43
+ stripeProductId: string;
44
+ } | undefined;
36
45
  currency: string;
37
46
  gross: number;
38
47
  paymentId?: string | undefined;
@@ -46,6 +55,22 @@ export declare const snapshot: import("convex/server").RegisteredQuery<"public",
46
55
  destinationAccountId: string;
47
56
  role: "affiliate" | "other" | "store";
48
57
  }[];
58
+ usageSource?: {
59
+ customerAccount: string;
60
+ invoicePaymentId: string;
61
+ livemode: boolean;
62
+ meterId: string;
63
+ model: "included_overage" | "pay_as_you_go";
64
+ period: {
65
+ end: number;
66
+ start: number;
67
+ };
68
+ stripeAccountId: string;
69
+ stripePriceId: string;
70
+ stripeProductId: string;
71
+ subscriptionId: string;
72
+ subscriptionItemId: string;
73
+ } | undefined;
49
74
  } | undefined;
50
75
  cancelRequested: boolean;
51
76
  completion?: string | undefined;
@@ -81,6 +106,15 @@ export declare const saved: import("convex/server").RegisteredQuery<"internal",
81
106
  activePhase?: "execute" | "reconcile" | undefined;
82
107
  allocation?: {
83
108
  adjustmentAmount?: number | undefined;
109
+ creditSource?: {
110
+ creditGrantId: string;
111
+ customerAccount: string;
112
+ livemode: boolean;
113
+ purchaseId: string;
114
+ stripeAccountId: string;
115
+ stripePriceId: string;
116
+ stripeProductId: string;
117
+ } | undefined;
84
118
  currency: string;
85
119
  gross: number;
86
120
  paymentId?: string | undefined;
@@ -94,6 +128,22 @@ export declare const saved: import("convex/server").RegisteredQuery<"internal",
94
128
  destinationAccountId: string;
95
129
  role: "affiliate" | "other" | "store";
96
130
  }[];
131
+ usageSource?: {
132
+ customerAccount: string;
133
+ invoicePaymentId: string;
134
+ livemode: boolean;
135
+ meterId: string;
136
+ model: "included_overage" | "pay_as_you_go";
137
+ period: {
138
+ end: number;
139
+ start: number;
140
+ };
141
+ stripeAccountId: string;
142
+ stripePriceId: string;
143
+ stripeProductId: string;
144
+ subscriptionId: string;
145
+ subscriptionItemId: string;
146
+ } | undefined;
97
147
  } | undefined;
98
148
  cancelRequested: boolean;
99
149
  completion?: 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAInB,CAAC;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIhB,CAAC"}
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"}