@robosystems/client 0.3.16 → 0.3.17
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/artifacts/LedgerClient.d.ts +37 -1
- package/artifacts/LedgerClient.js +42 -0
- package/artifacts/LedgerClient.ts +106 -0
- package/artifacts/graphql/generated/graphql.d.ts +126 -0
- package/artifacts/graphql/generated/graphql.js +360 -1
- package/artifacts/graphql/generated/graphql.ts +489 -0
- package/artifacts/graphql/queries/ledger/agent.d.ts +7 -0
- package/artifacts/graphql/queries/ledger/agent.js +34 -0
- package/artifacts/graphql/queries/ledger/agent.ts +32 -0
- package/artifacts/graphql/queries/ledger/agents.d.ts +9 -0
- package/artifacts/graphql/queries/ledger/agents.js +48 -0
- package/artifacts/graphql/queries/ledger/agents.ts +46 -0
- package/artifacts/graphql/queries/ledger/eventBlock.d.ts +8 -0
- package/artifacts/graphql/queries/ledger/eventBlock.js +41 -0
- package/artifacts/graphql/queries/ledger/eventBlock.ts +39 -0
- package/artifacts/graphql/queries/ledger/eventBlocks.d.ts +11 -0
- package/artifacts/graphql/queries/ledger/eventBlocks.js +60 -0
- package/artifacts/graphql/queries/ledger/eventBlocks.ts +58 -0
- package/package.json +1 -1
|
@@ -1801,6 +1801,64 @@ export type ListLedgerAccountsQuery = {
|
|
|
1801
1801
|
} | null
|
|
1802
1802
|
}
|
|
1803
1803
|
|
|
1804
|
+
export type GetLedgerAgentQueryVariables = Exact<{
|
|
1805
|
+
id: Scalars['String']['input']
|
|
1806
|
+
}>
|
|
1807
|
+
|
|
1808
|
+
export type GetLedgerAgentQuery = {
|
|
1809
|
+
agent: {
|
|
1810
|
+
id: string
|
|
1811
|
+
agentType: string
|
|
1812
|
+
name: string
|
|
1813
|
+
legalName: string | null
|
|
1814
|
+
taxId: string | null
|
|
1815
|
+
registrationNumber: string | null
|
|
1816
|
+
duns: string | null
|
|
1817
|
+
lei: string | null
|
|
1818
|
+
email: string | null
|
|
1819
|
+
phone: string | null
|
|
1820
|
+
address: any | null
|
|
1821
|
+
source: string
|
|
1822
|
+
externalId: string | null
|
|
1823
|
+
isActive: boolean
|
|
1824
|
+
is1099Recipient: boolean
|
|
1825
|
+
createdAt: any | null
|
|
1826
|
+
updatedAt: any | null
|
|
1827
|
+
createdBy: string | null
|
|
1828
|
+
} | null
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
export type ListLedgerAgentsQueryVariables = Exact<{
|
|
1832
|
+
agentType: InputMaybe<Scalars['String']['input']>
|
|
1833
|
+
source: InputMaybe<Scalars['String']['input']>
|
|
1834
|
+
isActive?: InputMaybe<Scalars['Boolean']['input']>
|
|
1835
|
+
limit?: Scalars['Int']['input']
|
|
1836
|
+
offset?: Scalars['Int']['input']
|
|
1837
|
+
}>
|
|
1838
|
+
|
|
1839
|
+
export type ListLedgerAgentsQuery = {
|
|
1840
|
+
agents: Array<{
|
|
1841
|
+
id: string
|
|
1842
|
+
agentType: string
|
|
1843
|
+
name: string
|
|
1844
|
+
legalName: string | null
|
|
1845
|
+
taxId: string | null
|
|
1846
|
+
registrationNumber: string | null
|
|
1847
|
+
duns: string | null
|
|
1848
|
+
lei: string | null
|
|
1849
|
+
email: string | null
|
|
1850
|
+
phone: string | null
|
|
1851
|
+
address: any | null
|
|
1852
|
+
source: string
|
|
1853
|
+
externalId: string | null
|
|
1854
|
+
isActive: boolean
|
|
1855
|
+
is1099Recipient: boolean
|
|
1856
|
+
createdAt: any | null
|
|
1857
|
+
updatedAt: any | null
|
|
1858
|
+
createdBy: string | null
|
|
1859
|
+
}>
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1804
1862
|
export type GetLedgerClosingBookStructuresQueryVariables = Exact<{ [key: string]: never }>
|
|
1805
1863
|
|
|
1806
1864
|
export type GetLedgerClosingBookStructuresQuery = {
|
|
@@ -1918,6 +1976,78 @@ export type GetLedgerEntityQuery = {
|
|
|
1918
1976
|
} | null
|
|
1919
1977
|
}
|
|
1920
1978
|
|
|
1979
|
+
export type GetLedgerEventBlockQueryVariables = Exact<{
|
|
1980
|
+
id: Scalars['String']['input']
|
|
1981
|
+
}>
|
|
1982
|
+
|
|
1983
|
+
export type GetLedgerEventBlockQuery = {
|
|
1984
|
+
eventBlock: {
|
|
1985
|
+
id: string
|
|
1986
|
+
eventType: string
|
|
1987
|
+
eventCategory: string
|
|
1988
|
+
eventClass: string
|
|
1989
|
+
status: string
|
|
1990
|
+
occurredAt: any
|
|
1991
|
+
effectiveAt: any | null
|
|
1992
|
+
source: string
|
|
1993
|
+
externalId: string | null
|
|
1994
|
+
externalUrl: string | null
|
|
1995
|
+
amount: number | null
|
|
1996
|
+
currency: string
|
|
1997
|
+
description: string | null
|
|
1998
|
+
metadata: any
|
|
1999
|
+
dimensionIds: Array<string>
|
|
2000
|
+
agentId: string | null
|
|
2001
|
+
resourceType: string | null
|
|
2002
|
+
resourceElementId: string | null
|
|
2003
|
+
replacedByEventId: string | null
|
|
2004
|
+
replacesEventId: string | null
|
|
2005
|
+
obligatedByEventId: string | null
|
|
2006
|
+
dischargesEventId: string | null
|
|
2007
|
+
createdAt: any
|
|
2008
|
+
createdBy: string
|
|
2009
|
+
} | null
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
export type ListLedgerEventBlocksQueryVariables = Exact<{
|
|
2013
|
+
eventType: InputMaybe<Scalars['String']['input']>
|
|
2014
|
+
eventCategory: InputMaybe<Scalars['String']['input']>
|
|
2015
|
+
status: InputMaybe<Scalars['String']['input']>
|
|
2016
|
+
agentId: InputMaybe<Scalars['String']['input']>
|
|
2017
|
+
source: InputMaybe<Scalars['String']['input']>
|
|
2018
|
+
limit?: Scalars['Int']['input']
|
|
2019
|
+
offset?: Scalars['Int']['input']
|
|
2020
|
+
}>
|
|
2021
|
+
|
|
2022
|
+
export type ListLedgerEventBlocksQuery = {
|
|
2023
|
+
eventBlocks: Array<{
|
|
2024
|
+
id: string
|
|
2025
|
+
eventType: string
|
|
2026
|
+
eventCategory: string
|
|
2027
|
+
eventClass: string
|
|
2028
|
+
status: string
|
|
2029
|
+
occurredAt: any
|
|
2030
|
+
effectiveAt: any | null
|
|
2031
|
+
source: string
|
|
2032
|
+
externalId: string | null
|
|
2033
|
+
externalUrl: string | null
|
|
2034
|
+
amount: number | null
|
|
2035
|
+
currency: string
|
|
2036
|
+
description: string | null
|
|
2037
|
+
metadata: any
|
|
2038
|
+
dimensionIds: Array<string>
|
|
2039
|
+
agentId: string | null
|
|
2040
|
+
resourceType: string | null
|
|
2041
|
+
resourceElementId: string | null
|
|
2042
|
+
replacedByEventId: string | null
|
|
2043
|
+
replacesEventId: string | null
|
|
2044
|
+
obligatedByEventId: string | null
|
|
2045
|
+
dischargesEventId: string | null
|
|
2046
|
+
createdAt: any
|
|
2047
|
+
createdBy: string
|
|
2048
|
+
}>
|
|
2049
|
+
}
|
|
2050
|
+
|
|
1921
2051
|
export type GetLedgerFiscalCalendarQueryVariables = Exact<{ [key: string]: never }>
|
|
1922
2052
|
|
|
1923
2053
|
export type GetLedgerFiscalCalendarQuery = {
|
|
@@ -3900,6 +4030,170 @@ export const ListLedgerAccountsDocument = {
|
|
|
3900
4030
|
},
|
|
3901
4031
|
],
|
|
3902
4032
|
} as unknown as DocumentNode<ListLedgerAccountsQuery, ListLedgerAccountsQueryVariables>
|
|
4033
|
+
export const GetLedgerAgentDocument = {
|
|
4034
|
+
kind: 'Document',
|
|
4035
|
+
definitions: [
|
|
4036
|
+
{
|
|
4037
|
+
kind: 'OperationDefinition',
|
|
4038
|
+
operation: 'query',
|
|
4039
|
+
name: { kind: 'Name', value: 'GetLedgerAgent' },
|
|
4040
|
+
variableDefinitions: [
|
|
4041
|
+
{
|
|
4042
|
+
kind: 'VariableDefinition',
|
|
4043
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
|
|
4044
|
+
type: {
|
|
4045
|
+
kind: 'NonNullType',
|
|
4046
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
4047
|
+
},
|
|
4048
|
+
},
|
|
4049
|
+
],
|
|
4050
|
+
selectionSet: {
|
|
4051
|
+
kind: 'SelectionSet',
|
|
4052
|
+
selections: [
|
|
4053
|
+
{
|
|
4054
|
+
kind: 'Field',
|
|
4055
|
+
name: { kind: 'Name', value: 'agent' },
|
|
4056
|
+
arguments: [
|
|
4057
|
+
{
|
|
4058
|
+
kind: 'Argument',
|
|
4059
|
+
name: { kind: 'Name', value: 'id' },
|
|
4060
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
|
|
4061
|
+
},
|
|
4062
|
+
],
|
|
4063
|
+
selectionSet: {
|
|
4064
|
+
kind: 'SelectionSet',
|
|
4065
|
+
selections: [
|
|
4066
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
4067
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'agentType' } },
|
|
4068
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
4069
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'legalName' } },
|
|
4070
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'taxId' } },
|
|
4071
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'registrationNumber' } },
|
|
4072
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'duns' } },
|
|
4073
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'lei' } },
|
|
4074
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'email' } },
|
|
4075
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'phone' } },
|
|
4076
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'address' } },
|
|
4077
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'source' } },
|
|
4078
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'externalId' } },
|
|
4079
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'isActive' } },
|
|
4080
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'is1099Recipient' } },
|
|
4081
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
|
|
4082
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
|
|
4083
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'createdBy' } },
|
|
4084
|
+
],
|
|
4085
|
+
},
|
|
4086
|
+
},
|
|
4087
|
+
],
|
|
4088
|
+
},
|
|
4089
|
+
},
|
|
4090
|
+
],
|
|
4091
|
+
} as unknown as DocumentNode<GetLedgerAgentQuery, GetLedgerAgentQueryVariables>
|
|
4092
|
+
export const ListLedgerAgentsDocument = {
|
|
4093
|
+
kind: 'Document',
|
|
4094
|
+
definitions: [
|
|
4095
|
+
{
|
|
4096
|
+
kind: 'OperationDefinition',
|
|
4097
|
+
operation: 'query',
|
|
4098
|
+
name: { kind: 'Name', value: 'ListLedgerAgents' },
|
|
4099
|
+
variableDefinitions: [
|
|
4100
|
+
{
|
|
4101
|
+
kind: 'VariableDefinition',
|
|
4102
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'agentType' } },
|
|
4103
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
4104
|
+
},
|
|
4105
|
+
{
|
|
4106
|
+
kind: 'VariableDefinition',
|
|
4107
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'source' } },
|
|
4108
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
4109
|
+
},
|
|
4110
|
+
{
|
|
4111
|
+
kind: 'VariableDefinition',
|
|
4112
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'isActive' } },
|
|
4113
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Boolean' } },
|
|
4114
|
+
defaultValue: { kind: 'BooleanValue', value: true },
|
|
4115
|
+
},
|
|
4116
|
+
{
|
|
4117
|
+
kind: 'VariableDefinition',
|
|
4118
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
|
|
4119
|
+
type: {
|
|
4120
|
+
kind: 'NonNullType',
|
|
4121
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
|
|
4122
|
+
},
|
|
4123
|
+
defaultValue: { kind: 'IntValue', value: '50' },
|
|
4124
|
+
},
|
|
4125
|
+
{
|
|
4126
|
+
kind: 'VariableDefinition',
|
|
4127
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
|
|
4128
|
+
type: {
|
|
4129
|
+
kind: 'NonNullType',
|
|
4130
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
|
|
4131
|
+
},
|
|
4132
|
+
defaultValue: { kind: 'IntValue', value: '0' },
|
|
4133
|
+
},
|
|
4134
|
+
],
|
|
4135
|
+
selectionSet: {
|
|
4136
|
+
kind: 'SelectionSet',
|
|
4137
|
+
selections: [
|
|
4138
|
+
{
|
|
4139
|
+
kind: 'Field',
|
|
4140
|
+
name: { kind: 'Name', value: 'agents' },
|
|
4141
|
+
arguments: [
|
|
4142
|
+
{
|
|
4143
|
+
kind: 'Argument',
|
|
4144
|
+
name: { kind: 'Name', value: 'agentType' },
|
|
4145
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'agentType' } },
|
|
4146
|
+
},
|
|
4147
|
+
{
|
|
4148
|
+
kind: 'Argument',
|
|
4149
|
+
name: { kind: 'Name', value: 'source' },
|
|
4150
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'source' } },
|
|
4151
|
+
},
|
|
4152
|
+
{
|
|
4153
|
+
kind: 'Argument',
|
|
4154
|
+
name: { kind: 'Name', value: 'isActive' },
|
|
4155
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'isActive' } },
|
|
4156
|
+
},
|
|
4157
|
+
{
|
|
4158
|
+
kind: 'Argument',
|
|
4159
|
+
name: { kind: 'Name', value: 'limit' },
|
|
4160
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
|
|
4161
|
+
},
|
|
4162
|
+
{
|
|
4163
|
+
kind: 'Argument',
|
|
4164
|
+
name: { kind: 'Name', value: 'offset' },
|
|
4165
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
|
|
4166
|
+
},
|
|
4167
|
+
],
|
|
4168
|
+
selectionSet: {
|
|
4169
|
+
kind: 'SelectionSet',
|
|
4170
|
+
selections: [
|
|
4171
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
4172
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'agentType' } },
|
|
4173
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
4174
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'legalName' } },
|
|
4175
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'taxId' } },
|
|
4176
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'registrationNumber' } },
|
|
4177
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'duns' } },
|
|
4178
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'lei' } },
|
|
4179
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'email' } },
|
|
4180
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'phone' } },
|
|
4181
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'address' } },
|
|
4182
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'source' } },
|
|
4183
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'externalId' } },
|
|
4184
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'isActive' } },
|
|
4185
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'is1099Recipient' } },
|
|
4186
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
|
|
4187
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
|
|
4188
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'createdBy' } },
|
|
4189
|
+
],
|
|
4190
|
+
},
|
|
4191
|
+
},
|
|
4192
|
+
],
|
|
4193
|
+
},
|
|
4194
|
+
},
|
|
4195
|
+
],
|
|
4196
|
+
} as unknown as DocumentNode<ListLedgerAgentsQuery, ListLedgerAgentsQueryVariables>
|
|
3903
4197
|
export const GetLedgerClosingBookStructuresDocument = {
|
|
3904
4198
|
kind: 'Document',
|
|
3905
4199
|
definitions: [
|
|
@@ -4198,6 +4492,201 @@ export const GetLedgerEntityDocument = {
|
|
|
4198
4492
|
},
|
|
4199
4493
|
],
|
|
4200
4494
|
} as unknown as DocumentNode<GetLedgerEntityQuery, GetLedgerEntityQueryVariables>
|
|
4495
|
+
export const GetLedgerEventBlockDocument = {
|
|
4496
|
+
kind: 'Document',
|
|
4497
|
+
definitions: [
|
|
4498
|
+
{
|
|
4499
|
+
kind: 'OperationDefinition',
|
|
4500
|
+
operation: 'query',
|
|
4501
|
+
name: { kind: 'Name', value: 'GetLedgerEventBlock' },
|
|
4502
|
+
variableDefinitions: [
|
|
4503
|
+
{
|
|
4504
|
+
kind: 'VariableDefinition',
|
|
4505
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
|
|
4506
|
+
type: {
|
|
4507
|
+
kind: 'NonNullType',
|
|
4508
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
4509
|
+
},
|
|
4510
|
+
},
|
|
4511
|
+
],
|
|
4512
|
+
selectionSet: {
|
|
4513
|
+
kind: 'SelectionSet',
|
|
4514
|
+
selections: [
|
|
4515
|
+
{
|
|
4516
|
+
kind: 'Field',
|
|
4517
|
+
name: { kind: 'Name', value: 'eventBlock' },
|
|
4518
|
+
arguments: [
|
|
4519
|
+
{
|
|
4520
|
+
kind: 'Argument',
|
|
4521
|
+
name: { kind: 'Name', value: 'id' },
|
|
4522
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
|
|
4523
|
+
},
|
|
4524
|
+
],
|
|
4525
|
+
selectionSet: {
|
|
4526
|
+
kind: 'SelectionSet',
|
|
4527
|
+
selections: [
|
|
4528
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
4529
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'eventType' } },
|
|
4530
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'eventCategory' } },
|
|
4531
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'eventClass' } },
|
|
4532
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
4533
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'occurredAt' } },
|
|
4534
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'effectiveAt' } },
|
|
4535
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'source' } },
|
|
4536
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'externalId' } },
|
|
4537
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'externalUrl' } },
|
|
4538
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'amount' } },
|
|
4539
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'currency' } },
|
|
4540
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'description' } },
|
|
4541
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'metadata' } },
|
|
4542
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'dimensionIds' } },
|
|
4543
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'agentId' } },
|
|
4544
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'resourceType' } },
|
|
4545
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'resourceElementId' } },
|
|
4546
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'replacedByEventId' } },
|
|
4547
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'replacesEventId' } },
|
|
4548
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'obligatedByEventId' } },
|
|
4549
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'dischargesEventId' } },
|
|
4550
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
|
|
4551
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'createdBy' } },
|
|
4552
|
+
],
|
|
4553
|
+
},
|
|
4554
|
+
},
|
|
4555
|
+
],
|
|
4556
|
+
},
|
|
4557
|
+
},
|
|
4558
|
+
],
|
|
4559
|
+
} as unknown as DocumentNode<GetLedgerEventBlockQuery, GetLedgerEventBlockQueryVariables>
|
|
4560
|
+
export const ListLedgerEventBlocksDocument = {
|
|
4561
|
+
kind: 'Document',
|
|
4562
|
+
definitions: [
|
|
4563
|
+
{
|
|
4564
|
+
kind: 'OperationDefinition',
|
|
4565
|
+
operation: 'query',
|
|
4566
|
+
name: { kind: 'Name', value: 'ListLedgerEventBlocks' },
|
|
4567
|
+
variableDefinitions: [
|
|
4568
|
+
{
|
|
4569
|
+
kind: 'VariableDefinition',
|
|
4570
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'eventType' } },
|
|
4571
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
4572
|
+
},
|
|
4573
|
+
{
|
|
4574
|
+
kind: 'VariableDefinition',
|
|
4575
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'eventCategory' } },
|
|
4576
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
4577
|
+
},
|
|
4578
|
+
{
|
|
4579
|
+
kind: 'VariableDefinition',
|
|
4580
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'status' } },
|
|
4581
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
4582
|
+
},
|
|
4583
|
+
{
|
|
4584
|
+
kind: 'VariableDefinition',
|
|
4585
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'agentId' } },
|
|
4586
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
4587
|
+
},
|
|
4588
|
+
{
|
|
4589
|
+
kind: 'VariableDefinition',
|
|
4590
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'source' } },
|
|
4591
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
4592
|
+
},
|
|
4593
|
+
{
|
|
4594
|
+
kind: 'VariableDefinition',
|
|
4595
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
|
|
4596
|
+
type: {
|
|
4597
|
+
kind: 'NonNullType',
|
|
4598
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
|
|
4599
|
+
},
|
|
4600
|
+
defaultValue: { kind: 'IntValue', value: '50' },
|
|
4601
|
+
},
|
|
4602
|
+
{
|
|
4603
|
+
kind: 'VariableDefinition',
|
|
4604
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
|
|
4605
|
+
type: {
|
|
4606
|
+
kind: 'NonNullType',
|
|
4607
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
|
|
4608
|
+
},
|
|
4609
|
+
defaultValue: { kind: 'IntValue', value: '0' },
|
|
4610
|
+
},
|
|
4611
|
+
],
|
|
4612
|
+
selectionSet: {
|
|
4613
|
+
kind: 'SelectionSet',
|
|
4614
|
+
selections: [
|
|
4615
|
+
{
|
|
4616
|
+
kind: 'Field',
|
|
4617
|
+
name: { kind: 'Name', value: 'eventBlocks' },
|
|
4618
|
+
arguments: [
|
|
4619
|
+
{
|
|
4620
|
+
kind: 'Argument',
|
|
4621
|
+
name: { kind: 'Name', value: 'eventType' },
|
|
4622
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'eventType' } },
|
|
4623
|
+
},
|
|
4624
|
+
{
|
|
4625
|
+
kind: 'Argument',
|
|
4626
|
+
name: { kind: 'Name', value: 'eventCategory' },
|
|
4627
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'eventCategory' } },
|
|
4628
|
+
},
|
|
4629
|
+
{
|
|
4630
|
+
kind: 'Argument',
|
|
4631
|
+
name: { kind: 'Name', value: 'status' },
|
|
4632
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'status' } },
|
|
4633
|
+
},
|
|
4634
|
+
{
|
|
4635
|
+
kind: 'Argument',
|
|
4636
|
+
name: { kind: 'Name', value: 'agentId' },
|
|
4637
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'agentId' } },
|
|
4638
|
+
},
|
|
4639
|
+
{
|
|
4640
|
+
kind: 'Argument',
|
|
4641
|
+
name: { kind: 'Name', value: 'source' },
|
|
4642
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'source' } },
|
|
4643
|
+
},
|
|
4644
|
+
{
|
|
4645
|
+
kind: 'Argument',
|
|
4646
|
+
name: { kind: 'Name', value: 'limit' },
|
|
4647
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
|
|
4648
|
+
},
|
|
4649
|
+
{
|
|
4650
|
+
kind: 'Argument',
|
|
4651
|
+
name: { kind: 'Name', value: 'offset' },
|
|
4652
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
|
|
4653
|
+
},
|
|
4654
|
+
],
|
|
4655
|
+
selectionSet: {
|
|
4656
|
+
kind: 'SelectionSet',
|
|
4657
|
+
selections: [
|
|
4658
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'id' } },
|
|
4659
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'eventType' } },
|
|
4660
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'eventCategory' } },
|
|
4661
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'eventClass' } },
|
|
4662
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'status' } },
|
|
4663
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'occurredAt' } },
|
|
4664
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'effectiveAt' } },
|
|
4665
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'source' } },
|
|
4666
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'externalId' } },
|
|
4667
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'externalUrl' } },
|
|
4668
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'amount' } },
|
|
4669
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'currency' } },
|
|
4670
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'description' } },
|
|
4671
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'metadata' } },
|
|
4672
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'dimensionIds' } },
|
|
4673
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'agentId' } },
|
|
4674
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'resourceType' } },
|
|
4675
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'resourceElementId' } },
|
|
4676
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'replacedByEventId' } },
|
|
4677
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'replacesEventId' } },
|
|
4678
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'obligatedByEventId' } },
|
|
4679
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'dischargesEventId' } },
|
|
4680
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
|
|
4681
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'createdBy' } },
|
|
4682
|
+
],
|
|
4683
|
+
},
|
|
4684
|
+
},
|
|
4685
|
+
],
|
|
4686
|
+
},
|
|
4687
|
+
},
|
|
4688
|
+
],
|
|
4689
|
+
} as unknown as DocumentNode<ListLedgerEventBlocksQuery, ListLedgerEventBlocksQueryVariables>
|
|
4201
4690
|
export const GetLedgerFiscalCalendarDocument = {
|
|
4202
4691
|
kind: 'Document',
|
|
4203
4692
|
definitions: [
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_AGENT = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* Get a single agent by id (the agents detail view).
|
|
7
|
+
*
|
|
8
|
+
* `address` is a JSON dict — typically QB-shaped with `Line1`/`City`/
|
|
9
|
+
* `CountrySubDivisionCode`/`PostalCode` keys.
|
|
10
|
+
*/
|
|
11
|
+
exports.GET_AGENT = (0, graphql_request_1.gql) `
|
|
12
|
+
query GetLedgerAgent($id: String!) {
|
|
13
|
+
agent(id: $id) {
|
|
14
|
+
id
|
|
15
|
+
agentType
|
|
16
|
+
name
|
|
17
|
+
legalName
|
|
18
|
+
taxId
|
|
19
|
+
registrationNumber
|
|
20
|
+
duns
|
|
21
|
+
lei
|
|
22
|
+
email
|
|
23
|
+
phone
|
|
24
|
+
address
|
|
25
|
+
source
|
|
26
|
+
externalId
|
|
27
|
+
isActive
|
|
28
|
+
is1099Recipient
|
|
29
|
+
createdAt
|
|
30
|
+
updatedAt
|
|
31
|
+
createdBy
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Get a single agent by id (the agents detail view).
|
|
5
|
+
*
|
|
6
|
+
* `address` is a JSON dict — typically QB-shaped with `Line1`/`City`/
|
|
7
|
+
* `CountrySubDivisionCode`/`PostalCode` keys.
|
|
8
|
+
*/
|
|
9
|
+
export const GET_AGENT = gql`
|
|
10
|
+
query GetLedgerAgent($id: String!) {
|
|
11
|
+
agent(id: $id) {
|
|
12
|
+
id
|
|
13
|
+
agentType
|
|
14
|
+
name
|
|
15
|
+
legalName
|
|
16
|
+
taxId
|
|
17
|
+
registrationNumber
|
|
18
|
+
duns
|
|
19
|
+
lei
|
|
20
|
+
email
|
|
21
|
+
phone
|
|
22
|
+
address
|
|
23
|
+
source
|
|
24
|
+
externalId
|
|
25
|
+
isActive
|
|
26
|
+
is1099Recipient
|
|
27
|
+
createdAt
|
|
28
|
+
updatedAt
|
|
29
|
+
createdBy
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
`
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List agents (REA-aligned counterparty graph).
|
|
3
|
+
*
|
|
4
|
+
* `agentType` filters to `customer`, `vendor`, or `employee`. `source`
|
|
5
|
+
* scopes to a single ingestion source (e.g. `quickbooks`). `isActive`
|
|
6
|
+
* defaults to `true` on the resolver — pass explicit `false` to see
|
|
7
|
+
* deactivated agents, or `null` to see both.
|
|
8
|
+
*/
|
|
9
|
+
export declare const LIST_AGENTS: string;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LIST_AGENTS = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* List agents (REA-aligned counterparty graph).
|
|
7
|
+
*
|
|
8
|
+
* `agentType` filters to `customer`, `vendor`, or `employee`. `source`
|
|
9
|
+
* scopes to a single ingestion source (e.g. `quickbooks`). `isActive`
|
|
10
|
+
* defaults to `true` on the resolver — pass explicit `false` to see
|
|
11
|
+
* deactivated agents, or `null` to see both.
|
|
12
|
+
*/
|
|
13
|
+
exports.LIST_AGENTS = (0, graphql_request_1.gql) `
|
|
14
|
+
query ListLedgerAgents(
|
|
15
|
+
$agentType: String
|
|
16
|
+
$source: String
|
|
17
|
+
$isActive: Boolean = true
|
|
18
|
+
$limit: Int! = 50
|
|
19
|
+
$offset: Int! = 0
|
|
20
|
+
) {
|
|
21
|
+
agents(
|
|
22
|
+
agentType: $agentType
|
|
23
|
+
source: $source
|
|
24
|
+
isActive: $isActive
|
|
25
|
+
limit: $limit
|
|
26
|
+
offset: $offset
|
|
27
|
+
) {
|
|
28
|
+
id
|
|
29
|
+
agentType
|
|
30
|
+
name
|
|
31
|
+
legalName
|
|
32
|
+
taxId
|
|
33
|
+
registrationNumber
|
|
34
|
+
duns
|
|
35
|
+
lei
|
|
36
|
+
email
|
|
37
|
+
phone
|
|
38
|
+
address
|
|
39
|
+
source
|
|
40
|
+
externalId
|
|
41
|
+
isActive
|
|
42
|
+
is1099Recipient
|
|
43
|
+
createdAt
|
|
44
|
+
updatedAt
|
|
45
|
+
createdBy
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
`;
|