@robosystems/client 1.16.0 → 1.17.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/types.gen.ts CHANGED
@@ -2074,7 +2074,7 @@ export type ConnectionProviderInfo = {
2074
2074
  *
2075
2075
  * Provider identifier
2076
2076
  */
2077
- provider: 'quickbooks' | 'external';
2077
+ provider: 'quickbooks' | 'external' | 'mercury';
2078
2078
  /**
2079
2079
  * Display Name
2080
2080
  *
@@ -2475,7 +2475,7 @@ export type CreateConnectionRequest = {
2475
2475
  *
2476
2476
  * Connection provider type
2477
2477
  */
2478
- provider: 'quickbooks' | 'external';
2478
+ provider: 'quickbooks' | 'external' | 'mercury';
2479
2479
  /**
2480
2480
  * Entity Id
2481
2481
  *
@@ -2484,6 +2484,7 @@ export type CreateConnectionRequest = {
2484
2484
  entity_id?: string | null;
2485
2485
  quickbooks_config?: QuickBooksConnectionConfig | null;
2486
2486
  external_config?: ExternalConnectionConfig | null;
2487
+ mercury_config?: MercuryConnectionConfig | null;
2487
2488
  };
2488
2489
 
2489
2490
  /**
@@ -4759,6 +4760,12 @@ export type ElementUpdatePatch = {
4759
4760
  metadata?: {
4760
4761
  [key: string]: unknown;
4761
4762
  } | null;
4763
+ /**
4764
+ * Is Active
4765
+ *
4766
+ * Retire (`false`) or reactivate (`true`) a chart account. Retiring keeps its history and hides it from account pickers and the chart tree, and new line items on it are refused — the way to take an account with activity out of use, since removal needs no facts and no line items.
4767
+ */
4768
+ is_active?: boolean | null;
4762
4769
  };
4763
4770
 
4764
4771
  /**
@@ -8905,6 +8912,40 @@ export type MemoryRecord = {
8905
8912
  updated_at?: string | null;
8906
8913
  };
8907
8914
 
8915
+ /**
8916
+ * MercuryConnectionConfig
8917
+ *
8918
+ * Mercury bank-feed connection configuration.
8919
+ *
8920
+ * A bank feed is native accounting: the graph must already have a chart of
8921
+ * accounts and no live QuickBooks connection. Over OAuth (the hosted
8922
+ * default) the connection is created ``pending_oauth`` and activated by the
8923
+ * callback. ``api_key`` — a personal **read-only** Mercury token — connects
8924
+ * at once without a browser round-trip, but only on deployments that turn
8925
+ * on ``MERCURY_API_KEY_CONNECTIONS_ENABLED`` (self-hosted and local); the
8926
+ * hosted product refuses it.
8927
+ */
8928
+ export type MercuryConnectionConfig = {
8929
+ /**
8930
+ * Since Date
8931
+ *
8932
+ * First day of the backfill (ISO 8601). Defaults to 1 January of last year. Incremental syncs never look back before it.
8933
+ */
8934
+ since_date?: string | null;
8935
+ /**
8936
+ * Include Treasury
8937
+ *
8938
+ * Capture treasury-account activity alongside checking/savings.
8939
+ */
8940
+ include_treasury?: boolean;
8941
+ /**
8942
+ * Api Key
8943
+ *
8944
+ * A personal read-only Mercury API token, for deployments that allow the api_key credential mode. Omit to connect over OAuth.
8945
+ */
8946
+ api_key?: string | null;
8947
+ };
8948
+
8908
8949
  /**
8909
8950
  * MetricMechanics
8910
8951
  *
@@ -17035,9 +17076,9 @@ export type UpdateEventBlockRequest = {
17035
17076
  /**
17036
17077
  * Transition To
17037
17078
  *
17038
- * Status transition. Valid moves depend on current status: captured → committed | voided | superseded; classified → committed | pending | fulfilled | voided | superseded; committed → pending | fulfilled | voided | superseded; pending → fulfilled | voided | superseded; fulfilled → voided | superseded. A retraction (voided, superseded) is final and is refused from any status once the event's ledger rows have posted or it has published to QuickBooks — reverse the posted entries instead. Note: classified and fulfilled are usually set by handlers, not by callers, but the transition is allowed for corrections.
17079
+ * Status transition. Valid moves depend on current status: captured → classified | committed | voided | superseded; classified → committed | pending | fulfilled | voided | superseded; committed → pending | fulfilled | voided | superseded; pending → fulfilled | voided | superseded; fulfilled → voided | superseded. A retraction (voided, superseded) is final and is refused from any status once the event's ledger rows have posted or it has published to QuickBooks — reverse the posted entries instead. captured → classified records an account choice without posting (bank-feed lines: patch classified_element_id, or accept_suggestion: true, in the same call); the later commit fires the handler. Note: classified and fulfilled are otherwise set by handlers, not by callers, but the transition is allowed for corrections.
17039
17080
  */
17040
- transition_to?: 'committed' | 'pending' | 'fulfilled' | 'voided' | 'superseded' | null;
17081
+ transition_to?: 'classified' | 'committed' | 'pending' | 'fulfilled' | 'voided' | 'superseded' | null;
17041
17082
  /**
17042
17083
  * Superseded By Id
17043
17084
  *
@@ -21041,7 +21082,7 @@ export type ListConnectionsData = {
21041
21082
  *
21042
21083
  * Filter by provider type
21043
21084
  */
21044
- provider?: 'quickbooks' | 'external' | null;
21085
+ provider?: 'quickbooks' | 'external' | 'mercury' | null;
21045
21086
  };
21046
21087
  url: '/v1/graphs/{graph_id}/connections';
21047
21088
  };