@robosystems/client 0.3.23 → 0.3.24

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.
@@ -152,6 +152,8 @@ export type Agent = {
152
152
  legalName: Maybe<Scalars['String']['output']>;
153
153
  lei: Maybe<Scalars['String']['output']>;
154
154
  name: Scalars['String']['output'];
155
+ openPayable: Maybe<OpenBalanceByAgent>;
156
+ openReceivable: Maybe<OpenBalanceByAgent>;
155
157
  phone: Maybe<Scalars['String']['output']>;
156
158
  registrationNumber: Maybe<Scalars['String']['output']>;
157
159
  source: Scalars['String']['output'];
@@ -1033,6 +1035,8 @@ export type MappingCoverage = {
1033
1035
  mediumConfidence: Scalars['Int']['output'];
1034
1036
  totalCoaElements: Scalars['Int']['output'];
1035
1037
  unmappedCount: Scalars['Int']['output'];
1038
+ unreachable: Array<UnreachableMappingType>;
1039
+ unreachableCount: Scalars['Int']['output'];
1036
1040
  };
1037
1041
  /** A mapping structure with all its associations. */
1038
1042
  export type MappingDetail = {
@@ -1043,6 +1047,41 @@ export type MappingDetail = {
1043
1047
  taxonomyId: Scalars['String']['output'];
1044
1048
  totalAssociations: Scalars['Int']['output'];
1045
1049
  };
1050
+ /**
1051
+ * Graph-wide open AR or open AP aggregate.
1052
+ *
1053
+ * ``total_open_cents`` is the sum of unsettled originating-event
1054
+ * balances; ``counterparty_count`` is the number of distinct agents
1055
+ * with at least one open invoice or bill. The currency is uniform
1056
+ * per graph today (mixed-currency books would need a per-currency
1057
+ * breakdown — out of scope for v1).
1058
+ */
1059
+ export type OpenBalanceAggregate = {
1060
+ /** Distinct agents with at least one open balance. */
1061
+ counterpartyCount: Scalars['Int']['output'];
1062
+ /** Currency code (uniform per graph). */
1063
+ currency: Scalars['String']['output'];
1064
+ /** Distinct originating events with a nonzero open balance. */
1065
+ openEventCount: Scalars['Int']['output'];
1066
+ /** Sum of unsettled balances in minor currency units. */
1067
+ totalOpenCents: Scalars['Int']['output'];
1068
+ };
1069
+ /**
1070
+ * Per-agent open balance row.
1071
+ *
1072
+ * Used for both the aging-by-counterparty list and the per-Agent
1073
+ * GraphQL field. ``open_balance_cents`` reflects only the unsettled
1074
+ * remainder (sum of originating amounts minus sum of discharges) so
1075
+ * partial-payment chains net out correctly.
1076
+ */
1077
+ export type OpenBalanceByAgent = {
1078
+ agentId: Scalars['String']['output'];
1079
+ currency: Scalars['String']['output'];
1080
+ /** Unsettled originating-event amounts minus discharges, in minor currency units. Positive for normal AR/AP; negative when overpaid. */
1081
+ openBalanceCents: Scalars['Int']['output'];
1082
+ /** Number of originating events with nonzero balance for this agent. */
1083
+ openEventCount: Scalars['Int']['output'];
1084
+ };
1046
1085
  /** Pagination information for list responses. */
1047
1086
  export type PaginationInfo = {
1048
1087
  /** Whether more items are available */
@@ -1377,6 +1416,10 @@ export type Query = {
1377
1416
  mapping: Maybe<MappingDetail>;
1378
1417
  mappingCoverage: Maybe<MappingCoverage>;
1379
1418
  mappings: Maybe<StructureList>;
1419
+ openPayables: OpenBalanceAggregate;
1420
+ openPayablesByAgent: Array<OpenBalanceByAgent>;
1421
+ openReceivables: OpenBalanceAggregate;
1422
+ openReceivablesByAgent: Array<OpenBalanceByAgent>;
1380
1423
  periodCloseStatus: Maybe<PeriodCloseStatus>;
1381
1424
  periodDrafts: Maybe<PeriodDrafts>;
1382
1425
  portfolioBlock: Maybe<PortfolioBlock>;
@@ -1944,6 +1987,27 @@ export type UnmappedElement = {
1944
1987
  suggestedTargets: Array<SuggestedTarget>;
1945
1988
  trait: Maybe<Scalars['String']['output']>;
1946
1989
  };
1990
+ /**
1991
+ * A CoA→rs-gaap mapping whose target doesn't reach a Network root.
1992
+ *
1993
+ * The reporting layer is closed: every mapping target must trace upward
1994
+ * through the rs-gaap calc DAG to one of the canonical roots
1995
+ * (rs-gaap:Assets, rs-gaap:LiabilitiesAndStockholdersEquity,
1996
+ * rs-gaap:NetIncomeLoss, rs-gaap:CashAndCashEquivalentsPeriodIncreaseDecrease).
1997
+ * When it doesn't, the fact will land on a dead branch — visible in the
1998
+ * trial balance but invisible to any rendered statement. Surfacing
1999
+ * these as defects lets operators fix the mapping before the report is
2000
+ * filed.
2001
+ */
2002
+ export type UnreachableMappingType = {
2003
+ coaCode: Maybe<Scalars['String']['output']>;
2004
+ coaElementId: Scalars['String']['output'];
2005
+ coaName: Maybe<Scalars['String']['output']>;
2006
+ coaQname: Maybe<Scalars['String']['output']>;
2007
+ targetElementId: Scalars['String']['output'];
2008
+ targetName: Maybe<Scalars['String']['output']>;
2009
+ targetQname: Maybe<Scalars['String']['output']>;
2010
+ };
1947
2011
  /** Aggregate result of running reporting rules over a structure. */
1948
2012
  export type ValidationCheck = {
1949
2013
  /** Names of rules that were evaluated. */
@@ -126,6 +126,8 @@ export type Agent = {
126
126
  legalName: Maybe<Scalars['String']['output']>
127
127
  lei: Maybe<Scalars['String']['output']>
128
128
  name: Scalars['String']['output']
129
+ openPayable: Maybe<OpenBalanceByAgent>
130
+ openReceivable: Maybe<OpenBalanceByAgent>
129
131
  phone: Maybe<Scalars['String']['output']>
130
132
  registrationNumber: Maybe<Scalars['String']['output']>
131
133
  source: Scalars['String']['output']
@@ -1060,6 +1062,8 @@ export type MappingCoverage = {
1060
1062
  mediumConfidence: Scalars['Int']['output']
1061
1063
  totalCoaElements: Scalars['Int']['output']
1062
1064
  unmappedCount: Scalars['Int']['output']
1065
+ unreachable: Array<UnreachableMappingType>
1066
+ unreachableCount: Scalars['Int']['output']
1063
1067
  }
1064
1068
 
1065
1069
  /** A mapping structure with all its associations. */
@@ -1072,6 +1076,43 @@ export type MappingDetail = {
1072
1076
  totalAssociations: Scalars['Int']['output']
1073
1077
  }
1074
1078
 
1079
+ /**
1080
+ * Graph-wide open AR or open AP aggregate.
1081
+ *
1082
+ * ``total_open_cents`` is the sum of unsettled originating-event
1083
+ * balances; ``counterparty_count`` is the number of distinct agents
1084
+ * with at least one open invoice or bill. The currency is uniform
1085
+ * per graph today (mixed-currency books would need a per-currency
1086
+ * breakdown — out of scope for v1).
1087
+ */
1088
+ export type OpenBalanceAggregate = {
1089
+ /** Distinct agents with at least one open balance. */
1090
+ counterpartyCount: Scalars['Int']['output']
1091
+ /** Currency code (uniform per graph). */
1092
+ currency: Scalars['String']['output']
1093
+ /** Distinct originating events with a nonzero open balance. */
1094
+ openEventCount: Scalars['Int']['output']
1095
+ /** Sum of unsettled balances in minor currency units. */
1096
+ totalOpenCents: Scalars['Int']['output']
1097
+ }
1098
+
1099
+ /**
1100
+ * Per-agent open balance row.
1101
+ *
1102
+ * Used for both the aging-by-counterparty list and the per-Agent
1103
+ * GraphQL field. ``open_balance_cents`` reflects only the unsettled
1104
+ * remainder (sum of originating amounts minus sum of discharges) so
1105
+ * partial-payment chains net out correctly.
1106
+ */
1107
+ export type OpenBalanceByAgent = {
1108
+ agentId: Scalars['String']['output']
1109
+ currency: Scalars['String']['output']
1110
+ /** Unsettled originating-event amounts minus discharges, in minor currency units. Positive for normal AR/AP; negative when overpaid. */
1111
+ openBalanceCents: Scalars['Int']['output']
1112
+ /** Number of originating events with nonzero balance for this agent. */
1113
+ openEventCount: Scalars['Int']['output']
1114
+ }
1115
+
1075
1116
  /** Pagination information for list responses. */
1076
1117
  export type PaginationInfo = {
1077
1118
  /** Whether more items are available */
@@ -1422,6 +1463,10 @@ export type Query = {
1422
1463
  mapping: Maybe<MappingDetail>
1423
1464
  mappingCoverage: Maybe<MappingCoverage>
1424
1465
  mappings: Maybe<StructureList>
1466
+ openPayables: OpenBalanceAggregate
1467
+ openPayablesByAgent: Array<OpenBalanceByAgent>
1468
+ openReceivables: OpenBalanceAggregate
1469
+ openReceivablesByAgent: Array<OpenBalanceByAgent>
1425
1470
  periodCloseStatus: Maybe<PeriodCloseStatus>
1426
1471
  periodDrafts: Maybe<PeriodDrafts>
1427
1472
  portfolioBlock: Maybe<PortfolioBlock>
@@ -2060,6 +2105,28 @@ export type UnmappedElement = {
2060
2105
  trait: Maybe<Scalars['String']['output']>
2061
2106
  }
2062
2107
 
2108
+ /**
2109
+ * A CoA→rs-gaap mapping whose target doesn't reach a Network root.
2110
+ *
2111
+ * The reporting layer is closed: every mapping target must trace upward
2112
+ * through the rs-gaap calc DAG to one of the canonical roots
2113
+ * (rs-gaap:Assets, rs-gaap:LiabilitiesAndStockholdersEquity,
2114
+ * rs-gaap:NetIncomeLoss, rs-gaap:CashAndCashEquivalentsPeriodIncreaseDecrease).
2115
+ * When it doesn't, the fact will land on a dead branch — visible in the
2116
+ * trial balance but invisible to any rendered statement. Surfacing
2117
+ * these as defects lets operators fix the mapping before the report is
2118
+ * filed.
2119
+ */
2120
+ export type UnreachableMappingType = {
2121
+ coaCode: Maybe<Scalars['String']['output']>
2122
+ coaElementId: Scalars['String']['output']
2123
+ coaName: Maybe<Scalars['String']['output']>
2124
+ coaQname: Maybe<Scalars['String']['output']>
2125
+ targetElementId: Scalars['String']['output']
2126
+ targetName: Maybe<Scalars['String']['output']>
2127
+ targetQname: Maybe<Scalars['String']['output']>
2128
+ }
2129
+
2063
2130
  /** Aggregate result of running reporting rules over a structure. */
2064
2131
  export type ValidationCheck = {
2065
2132
  /** Names of rules that were evaluated. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robosystems/client",
3
- "version": "0.3.23",
3
+ "version": "0.3.24",
4
4
  "description": "TypeScript client library for RoboSystems Financial Knowledge Graph API",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",