@robosystems/client 0.3.15 → 0.3.16

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.
@@ -230,10 +230,36 @@ export type ElementList = {
230
230
  pagination: PaginationInfo;
231
231
  };
232
232
  export type EntityLite = {
233
- id: Scalars['String']['output'];
233
+ id: Scalars['ID']['output'];
234
234
  name: Scalars['String']['output'];
235
235
  sourceGraphId: Maybe<Scalars['String']['output']>;
236
236
  };
237
+ export type EventBlock = {
238
+ agentId: Maybe<Scalars['String']['output']>;
239
+ amount: Maybe<Scalars['Int']['output']>;
240
+ createdAt: Scalars['DateTime']['output'];
241
+ createdBy: Scalars['String']['output'];
242
+ currency: Scalars['String']['output'];
243
+ description: Maybe<Scalars['String']['output']>;
244
+ dimensionIds: Array<Scalars['String']['output']>;
245
+ dischargesEventId: Maybe<Scalars['String']['output']>;
246
+ effectiveAt: Maybe<Scalars['DateTime']['output']>;
247
+ eventCategory: Scalars['String']['output'];
248
+ eventClass: Scalars['String']['output'];
249
+ eventType: Scalars['String']['output'];
250
+ externalId: Maybe<Scalars['String']['output']>;
251
+ externalUrl: Maybe<Scalars['String']['output']>;
252
+ id: Scalars['String']['output'];
253
+ metadata: Scalars['JSON']['output'];
254
+ obligatedByEventId: Maybe<Scalars['String']['output']>;
255
+ occurredAt: Scalars['DateTime']['output'];
256
+ replacedByEventId: Maybe<Scalars['String']['output']>;
257
+ replacesEventId: Maybe<Scalars['String']['output']>;
258
+ resourceElementId: Maybe<Scalars['String']['output']>;
259
+ resourceType: Maybe<Scalars['String']['output']>;
260
+ source: Scalars['String']['output'];
261
+ status: Scalars['String']['output'];
262
+ };
237
263
  export type FactRow = {
238
264
  depth: Scalars['Int']['output'];
239
265
  elementId: Scalars['String']['output'];
@@ -760,7 +786,7 @@ export type PortfolioBlock = {
760
786
  baseCurrency: Scalars['String']['output'];
761
787
  createdAt: Scalars['DateTime']['output'];
762
788
  description: Maybe<Scalars['String']['output']>;
763
- id: Scalars['String']['output'];
789
+ id: Scalars['ID']['output'];
764
790
  inceptionDate: Maybe<Scalars['Date']['output']>;
765
791
  name: Scalars['String']['output'];
766
792
  owner: Maybe<EntityLite>;
@@ -800,7 +826,7 @@ export type PositionBlock = {
800
826
  acquisitionDate: Maybe<Scalars['Date']['output']>;
801
827
  costBasisDollars: Scalars['Float']['output'];
802
828
  currentValueDollars: Maybe<Scalars['Float']['output']>;
803
- id: Scalars['String']['output'];
829
+ id: Scalars['ID']['output'];
804
830
  notes: Maybe<Scalars['String']['output']>;
805
831
  quantity: Scalars['Float']['output'];
806
832
  quantityType: Scalars['String']['output'];
@@ -854,6 +880,8 @@ export type Query = {
854
880
  elements: Maybe<ElementList>;
855
881
  entities: Array<LedgerEntity>;
856
882
  entity: Maybe<LedgerEntity>;
883
+ eventBlock: Maybe<EventBlock>;
884
+ eventBlocks: Array<EventBlock>;
857
885
  fiscalCalendar: Maybe<FiscalCalendar>;
858
886
  hello: Scalars['String']['output'];
859
887
  holdings: Maybe<HoldingsList>;
@@ -933,6 +961,18 @@ export type QueryElementsArgs = {
933
961
  export type QueryEntitiesArgs = {
934
962
  source?: InputMaybe<Scalars['String']['input']>;
935
963
  };
964
+ export type QueryEventBlockArgs = {
965
+ id: Scalars['String']['input'];
966
+ };
967
+ export type QueryEventBlocksArgs = {
968
+ agentId?: InputMaybe<Scalars['String']['input']>;
969
+ eventCategory?: InputMaybe<Scalars['String']['input']>;
970
+ eventType?: InputMaybe<Scalars['String']['input']>;
971
+ limit?: Scalars['Int']['input'];
972
+ offset?: Scalars['Int']['input'];
973
+ source?: InputMaybe<Scalars['String']['input']>;
974
+ status?: InputMaybe<Scalars['String']['input']>;
975
+ };
936
976
  export type QueryHoldingsArgs = {
937
977
  portfolioId: Scalars['String']['input'];
938
978
  };
@@ -1181,7 +1221,7 @@ export type SecurityList = {
1181
1221
  securities: Array<Security>;
1182
1222
  };
1183
1223
  export type SecurityLite = {
1184
- id: Scalars['String']['output'];
1224
+ id: Scalars['ID']['output'];
1185
1225
  isActive: Scalars['Boolean']['output'];
1186
1226
  issuer: Maybe<EntityLite>;
1187
1227
  name: Scalars['String']['output'];
@@ -214,11 +214,38 @@ export type ElementList = {
214
214
  }
215
215
 
216
216
  export type EntityLite = {
217
- id: Scalars['String']['output']
217
+ id: Scalars['ID']['output']
218
218
  name: Scalars['String']['output']
219
219
  sourceGraphId: Maybe<Scalars['String']['output']>
220
220
  }
221
221
 
222
+ export type EventBlock = {
223
+ agentId: Maybe<Scalars['String']['output']>
224
+ amount: Maybe<Scalars['Int']['output']>
225
+ createdAt: Scalars['DateTime']['output']
226
+ createdBy: Scalars['String']['output']
227
+ currency: Scalars['String']['output']
228
+ description: Maybe<Scalars['String']['output']>
229
+ dimensionIds: Array<Scalars['String']['output']>
230
+ dischargesEventId: Maybe<Scalars['String']['output']>
231
+ effectiveAt: Maybe<Scalars['DateTime']['output']>
232
+ eventCategory: Scalars['String']['output']
233
+ eventClass: Scalars['String']['output']
234
+ eventType: Scalars['String']['output']
235
+ externalId: Maybe<Scalars['String']['output']>
236
+ externalUrl: Maybe<Scalars['String']['output']>
237
+ id: Scalars['String']['output']
238
+ metadata: Scalars['JSON']['output']
239
+ obligatedByEventId: Maybe<Scalars['String']['output']>
240
+ occurredAt: Scalars['DateTime']['output']
241
+ replacedByEventId: Maybe<Scalars['String']['output']>
242
+ replacesEventId: Maybe<Scalars['String']['output']>
243
+ resourceElementId: Maybe<Scalars['String']['output']>
244
+ resourceType: Maybe<Scalars['String']['output']>
245
+ source: Scalars['String']['output']
246
+ status: Scalars['String']['output']
247
+ }
248
+
222
249
  export type FactRow = {
223
250
  depth: Scalars['Int']['output']
224
251
  elementId: Scalars['String']['output']
@@ -794,7 +821,7 @@ export type PortfolioBlock = {
794
821
  baseCurrency: Scalars['String']['output']
795
822
  createdAt: Scalars['DateTime']['output']
796
823
  description: Maybe<Scalars['String']['output']>
797
- id: Scalars['String']['output']
824
+ id: Scalars['ID']['output']
798
825
  inceptionDate: Maybe<Scalars['Date']['output']>
799
826
  name: Scalars['String']['output']
800
827
  owner: Maybe<EntityLite>
@@ -837,7 +864,7 @@ export type PositionBlock = {
837
864
  acquisitionDate: Maybe<Scalars['Date']['output']>
838
865
  costBasisDollars: Scalars['Float']['output']
839
866
  currentValueDollars: Maybe<Scalars['Float']['output']>
840
- id: Scalars['String']['output']
867
+ id: Scalars['ID']['output']
841
868
  notes: Maybe<Scalars['String']['output']>
842
869
  quantity: Scalars['Float']['output']
843
870
  quantityType: Scalars['String']['output']
@@ -897,6 +924,8 @@ export type Query = {
897
924
  elements: Maybe<ElementList>
898
925
  entities: Array<LedgerEntity>
899
926
  entity: Maybe<LedgerEntity>
927
+ eventBlock: Maybe<EventBlock>
928
+ eventBlocks: Array<EventBlock>
900
929
  fiscalCalendar: Maybe<FiscalCalendar>
901
930
  hello: Scalars['String']['output']
902
931
  holdings: Maybe<HoldingsList>
@@ -983,6 +1012,20 @@ export type QueryEntitiesArgs = {
983
1012
  source?: InputMaybe<Scalars['String']['input']>
984
1013
  }
985
1014
 
1015
+ export type QueryEventBlockArgs = {
1016
+ id: Scalars['String']['input']
1017
+ }
1018
+
1019
+ export type QueryEventBlocksArgs = {
1020
+ agentId?: InputMaybe<Scalars['String']['input']>
1021
+ eventCategory?: InputMaybe<Scalars['String']['input']>
1022
+ eventType?: InputMaybe<Scalars['String']['input']>
1023
+ limit?: Scalars['Int']['input']
1024
+ offset?: Scalars['Int']['input']
1025
+ source?: InputMaybe<Scalars['String']['input']>
1026
+ status?: InputMaybe<Scalars['String']['input']>
1027
+ }
1028
+
986
1029
  export type QueryHoldingsArgs = {
987
1030
  portfolioId: Scalars['String']['input']
988
1031
  }
@@ -1277,7 +1320,7 @@ export type SecurityList = {
1277
1320
  }
1278
1321
 
1279
1322
  export type SecurityLite = {
1280
- id: Scalars['String']['output']
1323
+ id: Scalars['ID']['output']
1281
1324
  isActive: Scalars['Boolean']['output']
1282
1325
  issuer: Maybe<EntityLite>
1283
1326
  name: Scalars['String']['output']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robosystems/client",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "description": "TypeScript client library for RoboSystems Financial Knowledge Graph API",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/sdk/sdk.gen.d.ts CHANGED
@@ -760,7 +760,7 @@ export declare const opCreateEventBlock: <ThrowOnError extends boolean = false>(
760
760
  /**
761
761
  * Update Event Block
762
762
  *
763
- * Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated.
763
+ * Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated. When the transition is captured/classified → committed, the registered Python handler fires against the captured metadata to produce the GL rows; errors from the handler (validation, element resolution, closed period, unbalanced lines) surface as 422 here so the inbox UI can display the failure reason without retry.
764
764
  *
765
765
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
766
766
  */
package/sdk/sdk.gen.js CHANGED
@@ -1572,7 +1572,7 @@ exports.opCreateEventBlock = opCreateEventBlock;
1572
1572
  /**
1573
1573
  * Update Event Block
1574
1574
  *
1575
- * Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated.
1575
+ * Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated. When the transition is captured/classified → committed, the registered Python handler fires against the captured metadata to produce the GL rows; errors from the handler (validation, element resolution, closed period, unbalanced lines) surface as 422 here so the inbox UI can display the failure reason without retry.
1576
1576
  *
1577
1577
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1578
1578
  */
package/sdk/sdk.gen.ts CHANGED
@@ -1584,7 +1584,7 @@ export const opCreateEventBlock = <ThrowOnError extends boolean = false>(options
1584
1584
  /**
1585
1585
  * Update Event Block
1586
1586
  *
1587
- * Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated.
1587
+ * Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated. When the transition is captured/classified → committed, the registered Python handler fires against the captured metadata to produce the GL rows; errors from the handler (validation, element resolution, closed period, unbalanced lines) surface as 422 here so the inbox UI can display the failure reason without retry.
1588
1588
  *
1589
1589
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1590
1590
  */
@@ -6956,15 +6956,21 @@ export type SuccessResponse = {
6956
6956
  */
6957
6957
  export type SyncConnectionRequest = {
6958
6958
  /**
6959
- * Full Sync
6959
+ * Full Rebuild
6960
6960
  *
6961
- * Perform full sync vs incremental
6961
+ * Pull complete history from the provider, ignoring lookback window. Takes precedence over since_date.
6962
6962
  */
6963
- full_sync?: boolean;
6963
+ full_rebuild?: boolean;
6964
+ /**
6965
+ * Since Date
6966
+ *
6967
+ * Sync data from this date forward (ISO 8601). Ignored if full_rebuild=True. If neither set, provider default applies (e.g., QuickBooks: 60 days).
6968
+ */
6969
+ since_date?: string | null;
6964
6970
  /**
6965
6971
  * Sync Options
6966
6972
  *
6967
- * Provider-specific sync options
6973
+ * Provider-specific sync options (escape hatch for fields not exposed at the top level).
6968
6974
  */
6969
6975
  sync_options?: {
6970
6976
  [key: string]: unknown;
package/sdk/types.gen.ts CHANGED
@@ -7154,15 +7154,21 @@ export type SuccessResponse = {
7154
7154
  */
7155
7155
  export type SyncConnectionRequest = {
7156
7156
  /**
7157
- * Full Sync
7157
+ * Full Rebuild
7158
7158
  *
7159
- * Perform full sync vs incremental
7159
+ * Pull complete history from the provider, ignoring lookback window. Takes precedence over since_date.
7160
7160
  */
7161
- full_sync?: boolean;
7161
+ full_rebuild?: boolean;
7162
+ /**
7163
+ * Since Date
7164
+ *
7165
+ * Sync data from this date forward (ISO 8601). Ignored if full_rebuild=True. If neither set, provider default applies (e.g., QuickBooks: 60 days).
7166
+ */
7167
+ since_date?: string | null;
7162
7168
  /**
7163
7169
  * Sync Options
7164
7170
  *
7165
- * Provider-specific sync options
7171
+ * Provider-specific sync options (escape hatch for fields not exposed at the top level).
7166
7172
  */
7167
7173
  sync_options?: {
7168
7174
  [key: string]: unknown;
package/sdk.gen.d.ts CHANGED
@@ -760,7 +760,7 @@ export declare const opCreateEventBlock: <ThrowOnError extends boolean = false>(
760
760
  /**
761
761
  * Update Event Block
762
762
  *
763
- * Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated.
763
+ * Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated. When the transition is captured/classified → committed, the registered Python handler fires against the captured metadata to produce the GL rows; errors from the handler (validation, element resolution, closed period, unbalanced lines) surface as 422 here so the inbox UI can display the failure reason without retry.
764
764
  *
765
765
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
766
766
  */
package/sdk.gen.js CHANGED
@@ -1572,7 +1572,7 @@ exports.opCreateEventBlock = opCreateEventBlock;
1572
1572
  /**
1573
1573
  * Update Event Block
1574
1574
  *
1575
- * Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated.
1575
+ * Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated. When the transition is captured/classified → committed, the registered Python handler fires against the captured metadata to produce the GL rows; errors from the handler (validation, element resolution, closed period, unbalanced lines) surface as 422 here so the inbox UI can display the failure reason without retry.
1576
1576
  *
1577
1577
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1578
1578
  */
package/sdk.gen.ts CHANGED
@@ -1584,7 +1584,7 @@ export const opCreateEventBlock = <ThrowOnError extends boolean = false>(options
1584
1584
  /**
1585
1585
  * Update Event Block
1586
1586
  *
1587
- * Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated.
1587
+ * Apply a status transition (captured → committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated. When the transition is captured/classified → committed, the registered Python handler fires against the captured metadata to produce the GL rows; errors from the handler (validation, element resolution, closed period, unbalanced lines) surface as 422 here so the inbox UI can display the failure reason without retry.
1588
1588
  *
1589
1589
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1590
1590
  */
package/types.gen.d.ts CHANGED
@@ -6956,15 +6956,21 @@ export type SuccessResponse = {
6956
6956
  */
6957
6957
  export type SyncConnectionRequest = {
6958
6958
  /**
6959
- * Full Sync
6959
+ * Full Rebuild
6960
6960
  *
6961
- * Perform full sync vs incremental
6961
+ * Pull complete history from the provider, ignoring lookback window. Takes precedence over since_date.
6962
6962
  */
6963
- full_sync?: boolean;
6963
+ full_rebuild?: boolean;
6964
+ /**
6965
+ * Since Date
6966
+ *
6967
+ * Sync data from this date forward (ISO 8601). Ignored if full_rebuild=True. If neither set, provider default applies (e.g., QuickBooks: 60 days).
6968
+ */
6969
+ since_date?: string | null;
6964
6970
  /**
6965
6971
  * Sync Options
6966
6972
  *
6967
- * Provider-specific sync options
6973
+ * Provider-specific sync options (escape hatch for fields not exposed at the top level).
6968
6974
  */
6969
6975
  sync_options?: {
6970
6976
  [key: string]: unknown;
package/types.gen.ts CHANGED
@@ -7154,15 +7154,21 @@ export type SuccessResponse = {
7154
7154
  */
7155
7155
  export type SyncConnectionRequest = {
7156
7156
  /**
7157
- * Full Sync
7157
+ * Full Rebuild
7158
7158
  *
7159
- * Perform full sync vs incremental
7159
+ * Pull complete history from the provider, ignoring lookback window. Takes precedence over since_date.
7160
7160
  */
7161
- full_sync?: boolean;
7161
+ full_rebuild?: boolean;
7162
+ /**
7163
+ * Since Date
7164
+ *
7165
+ * Sync data from this date forward (ISO 8601). Ignored if full_rebuild=True. If neither set, provider default applies (e.g., QuickBooks: 60 days).
7166
+ */
7167
+ since_date?: string | null;
7162
7168
  /**
7163
7169
  * Sync Options
7164
7170
  *
7165
- * Provider-specific sync options
7171
+ * Provider-specific sync options (escape hatch for fields not exposed at the top level).
7166
7172
  */
7167
7173
  sync_options?: {
7168
7174
  [key: string]: unknown;