@robosystems/client 2.27.0 → 2.28.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.
@@ -1160,6 +1160,97 @@ export type ListLedgerEventBlocksQuery = {
1160
1160
  }>
1161
1161
  }
1162
1162
 
1163
+ export type EventHandlerFieldsFragment = {
1164
+ id: string
1165
+ name: string
1166
+ description: string | null
1167
+ eventType: string
1168
+ eventCategory: string | null
1169
+ matchSource: string | null
1170
+ matchAgentType: string | null
1171
+ matchResourceType: string | null
1172
+ matchMetadataExpression: unknown
1173
+ transactionTemplate: unknown
1174
+ priority: number
1175
+ isActive: boolean
1176
+ origin: string
1177
+ suggestedBy: string | null
1178
+ confidence: number | null
1179
+ approvedBy: string | null
1180
+ approvedAt: string | null
1181
+ awaitingApproval: boolean
1182
+ createdAt: string | null
1183
+ updatedAt: string | null
1184
+ createdBy: string | null
1185
+ }
1186
+
1187
+ export type ListLedgerEventHandlersQueryVariables = Exact<{
1188
+ eventType: string | null | undefined
1189
+ isActive: boolean | null | undefined
1190
+ awaitingApproval: boolean | null | undefined
1191
+ limit?: number
1192
+ offset?: number
1193
+ }>
1194
+
1195
+ export type ListLedgerEventHandlersQuery = {
1196
+ eventHandlers: {
1197
+ eventHandlers: Array<{
1198
+ id: string
1199
+ name: string
1200
+ description: string | null
1201
+ eventType: string
1202
+ eventCategory: string | null
1203
+ matchSource: string | null
1204
+ matchAgentType: string | null
1205
+ matchResourceType: string | null
1206
+ matchMetadataExpression: unknown
1207
+ transactionTemplate: unknown
1208
+ priority: number
1209
+ isActive: boolean
1210
+ origin: string
1211
+ suggestedBy: string | null
1212
+ confidence: number | null
1213
+ approvedBy: string | null
1214
+ approvedAt: string | null
1215
+ awaitingApproval: boolean
1216
+ createdAt: string | null
1217
+ updatedAt: string | null
1218
+ createdBy: string | null
1219
+ }>
1220
+ pagination: { total: number; limit: number; offset: number; hasMore: boolean }
1221
+ } | null
1222
+ }
1223
+
1224
+ export type GetLedgerEventHandlerQueryVariables = Exact<{
1225
+ id: string
1226
+ }>
1227
+
1228
+ export type GetLedgerEventHandlerQuery = {
1229
+ eventHandler: {
1230
+ id: string
1231
+ name: string
1232
+ description: string | null
1233
+ eventType: string
1234
+ eventCategory: string | null
1235
+ matchSource: string | null
1236
+ matchAgentType: string | null
1237
+ matchResourceType: string | null
1238
+ matchMetadataExpression: unknown
1239
+ transactionTemplate: unknown
1240
+ priority: number
1241
+ isActive: boolean
1242
+ origin: string
1243
+ suggestedBy: string | null
1244
+ confidence: number | null
1245
+ approvedBy: string | null
1246
+ approvedAt: string | null
1247
+ awaitingApproval: boolean
1248
+ createdAt: string | null
1249
+ updatedAt: string | null
1250
+ createdBy: string | null
1251
+ } | null
1252
+ }
1253
+
1163
1254
  export type GetLedgerFiscalCalendarQueryVariables = Exact<{
1164
1255
  entityId: string | null | undefined
1165
1256
  }>
@@ -3044,6 +3135,42 @@ export const AgedBalancesFieldsFragmentDoc = {
3044
3135
  },
3045
3136
  ],
3046
3137
  } as unknown as DocumentNode<AgedBalancesFieldsFragment, unknown>
3138
+ export const EventHandlerFieldsFragmentDoc = {
3139
+ kind: 'Document',
3140
+ definitions: [
3141
+ {
3142
+ kind: 'FragmentDefinition',
3143
+ name: { kind: 'Name', value: 'EventHandlerFields' },
3144
+ typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'EventHandler' } },
3145
+ selectionSet: {
3146
+ kind: 'SelectionSet',
3147
+ selections: [
3148
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
3149
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
3150
+ { kind: 'Field', name: { kind: 'Name', value: 'description' } },
3151
+ { kind: 'Field', name: { kind: 'Name', value: 'eventType' } },
3152
+ { kind: 'Field', name: { kind: 'Name', value: 'eventCategory' } },
3153
+ { kind: 'Field', name: { kind: 'Name', value: 'matchSource' } },
3154
+ { kind: 'Field', name: { kind: 'Name', value: 'matchAgentType' } },
3155
+ { kind: 'Field', name: { kind: 'Name', value: 'matchResourceType' } },
3156
+ { kind: 'Field', name: { kind: 'Name', value: 'matchMetadataExpression' } },
3157
+ { kind: 'Field', name: { kind: 'Name', value: 'transactionTemplate' } },
3158
+ { kind: 'Field', name: { kind: 'Name', value: 'priority' } },
3159
+ { kind: 'Field', name: { kind: 'Name', value: 'isActive' } },
3160
+ { kind: 'Field', name: { kind: 'Name', value: 'origin' } },
3161
+ { kind: 'Field', name: { kind: 'Name', value: 'suggestedBy' } },
3162
+ { kind: 'Field', name: { kind: 'Name', value: 'confidence' } },
3163
+ { kind: 'Field', name: { kind: 'Name', value: 'approvedBy' } },
3164
+ { kind: 'Field', name: { kind: 'Name', value: 'approvedAt' } },
3165
+ { kind: 'Field', name: { kind: 'Name', value: 'awaitingApproval' } },
3166
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
3167
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
3168
+ { kind: 'Field', name: { kind: 'Name', value: 'createdBy' } },
3169
+ ],
3170
+ },
3171
+ },
3172
+ ],
3173
+ } as unknown as DocumentNode<EventHandlerFieldsFragment, unknown>
3047
3174
  export const GetInvestorHoldingsDocument = {
3048
3175
  kind: 'Document',
3049
3176
  definitions: [
@@ -5991,6 +6118,222 @@ export const ListLedgerEventBlocksDocument = {
5991
6118
  },
5992
6119
  ],
5993
6120
  } as unknown as DocumentNode<ListLedgerEventBlocksQuery, ListLedgerEventBlocksQueryVariables>
6121
+ export const ListLedgerEventHandlersDocument = {
6122
+ kind: 'Document',
6123
+ definitions: [
6124
+ {
6125
+ kind: 'OperationDefinition',
6126
+ operation: 'query',
6127
+ name: { kind: 'Name', value: 'ListLedgerEventHandlers' },
6128
+ variableDefinitions: [
6129
+ {
6130
+ kind: 'VariableDefinition',
6131
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'eventType' } },
6132
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
6133
+ },
6134
+ {
6135
+ kind: 'VariableDefinition',
6136
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'isActive' } },
6137
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Boolean' } },
6138
+ },
6139
+ {
6140
+ kind: 'VariableDefinition',
6141
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'awaitingApproval' } },
6142
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Boolean' } },
6143
+ },
6144
+ {
6145
+ kind: 'VariableDefinition',
6146
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
6147
+ type: {
6148
+ kind: 'NonNullType',
6149
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
6150
+ },
6151
+ defaultValue: { kind: 'IntValue', value: '100' },
6152
+ },
6153
+ {
6154
+ kind: 'VariableDefinition',
6155
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
6156
+ type: {
6157
+ kind: 'NonNullType',
6158
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
6159
+ },
6160
+ defaultValue: { kind: 'IntValue', value: '0' },
6161
+ },
6162
+ ],
6163
+ selectionSet: {
6164
+ kind: 'SelectionSet',
6165
+ selections: [
6166
+ {
6167
+ kind: 'Field',
6168
+ name: { kind: 'Name', value: 'eventHandlers' },
6169
+ arguments: [
6170
+ {
6171
+ kind: 'Argument',
6172
+ name: { kind: 'Name', value: 'eventType' },
6173
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'eventType' } },
6174
+ },
6175
+ {
6176
+ kind: 'Argument',
6177
+ name: { kind: 'Name', value: 'isActive' },
6178
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'isActive' } },
6179
+ },
6180
+ {
6181
+ kind: 'Argument',
6182
+ name: { kind: 'Name', value: 'awaitingApproval' },
6183
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'awaitingApproval' } },
6184
+ },
6185
+ {
6186
+ kind: 'Argument',
6187
+ name: { kind: 'Name', value: 'limit' },
6188
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
6189
+ },
6190
+ {
6191
+ kind: 'Argument',
6192
+ name: { kind: 'Name', value: 'offset' },
6193
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
6194
+ },
6195
+ ],
6196
+ selectionSet: {
6197
+ kind: 'SelectionSet',
6198
+ selections: [
6199
+ {
6200
+ kind: 'Field',
6201
+ name: { kind: 'Name', value: 'eventHandlers' },
6202
+ selectionSet: {
6203
+ kind: 'SelectionSet',
6204
+ selections: [
6205
+ {
6206
+ kind: 'FragmentSpread',
6207
+ name: { kind: 'Name', value: 'EventHandlerFields' },
6208
+ },
6209
+ ],
6210
+ },
6211
+ },
6212
+ {
6213
+ kind: 'Field',
6214
+ name: { kind: 'Name', value: 'pagination' },
6215
+ selectionSet: {
6216
+ kind: 'SelectionSet',
6217
+ selections: [
6218
+ { kind: 'Field', name: { kind: 'Name', value: 'total' } },
6219
+ { kind: 'Field', name: { kind: 'Name', value: 'limit' } },
6220
+ { kind: 'Field', name: { kind: 'Name', value: 'offset' } },
6221
+ { kind: 'Field', name: { kind: 'Name', value: 'hasMore' } },
6222
+ ],
6223
+ },
6224
+ },
6225
+ ],
6226
+ },
6227
+ },
6228
+ ],
6229
+ },
6230
+ },
6231
+ {
6232
+ kind: 'FragmentDefinition',
6233
+ name: { kind: 'Name', value: 'EventHandlerFields' },
6234
+ typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'EventHandler' } },
6235
+ selectionSet: {
6236
+ kind: 'SelectionSet',
6237
+ selections: [
6238
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
6239
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
6240
+ { kind: 'Field', name: { kind: 'Name', value: 'description' } },
6241
+ { kind: 'Field', name: { kind: 'Name', value: 'eventType' } },
6242
+ { kind: 'Field', name: { kind: 'Name', value: 'eventCategory' } },
6243
+ { kind: 'Field', name: { kind: 'Name', value: 'matchSource' } },
6244
+ { kind: 'Field', name: { kind: 'Name', value: 'matchAgentType' } },
6245
+ { kind: 'Field', name: { kind: 'Name', value: 'matchResourceType' } },
6246
+ { kind: 'Field', name: { kind: 'Name', value: 'matchMetadataExpression' } },
6247
+ { kind: 'Field', name: { kind: 'Name', value: 'transactionTemplate' } },
6248
+ { kind: 'Field', name: { kind: 'Name', value: 'priority' } },
6249
+ { kind: 'Field', name: { kind: 'Name', value: 'isActive' } },
6250
+ { kind: 'Field', name: { kind: 'Name', value: 'origin' } },
6251
+ { kind: 'Field', name: { kind: 'Name', value: 'suggestedBy' } },
6252
+ { kind: 'Field', name: { kind: 'Name', value: 'confidence' } },
6253
+ { kind: 'Field', name: { kind: 'Name', value: 'approvedBy' } },
6254
+ { kind: 'Field', name: { kind: 'Name', value: 'approvedAt' } },
6255
+ { kind: 'Field', name: { kind: 'Name', value: 'awaitingApproval' } },
6256
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
6257
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
6258
+ { kind: 'Field', name: { kind: 'Name', value: 'createdBy' } },
6259
+ ],
6260
+ },
6261
+ },
6262
+ ],
6263
+ } as unknown as DocumentNode<ListLedgerEventHandlersQuery, ListLedgerEventHandlersQueryVariables>
6264
+ export const GetLedgerEventHandlerDocument = {
6265
+ kind: 'Document',
6266
+ definitions: [
6267
+ {
6268
+ kind: 'OperationDefinition',
6269
+ operation: 'query',
6270
+ name: { kind: 'Name', value: 'GetLedgerEventHandler' },
6271
+ variableDefinitions: [
6272
+ {
6273
+ kind: 'VariableDefinition',
6274
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
6275
+ type: {
6276
+ kind: 'NonNullType',
6277
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
6278
+ },
6279
+ },
6280
+ ],
6281
+ selectionSet: {
6282
+ kind: 'SelectionSet',
6283
+ selections: [
6284
+ {
6285
+ kind: 'Field',
6286
+ name: { kind: 'Name', value: 'eventHandler' },
6287
+ arguments: [
6288
+ {
6289
+ kind: 'Argument',
6290
+ name: { kind: 'Name', value: 'id' },
6291
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
6292
+ },
6293
+ ],
6294
+ selectionSet: {
6295
+ kind: 'SelectionSet',
6296
+ selections: [
6297
+ { kind: 'FragmentSpread', name: { kind: 'Name', value: 'EventHandlerFields' } },
6298
+ ],
6299
+ },
6300
+ },
6301
+ ],
6302
+ },
6303
+ },
6304
+ {
6305
+ kind: 'FragmentDefinition',
6306
+ name: { kind: 'Name', value: 'EventHandlerFields' },
6307
+ typeCondition: { kind: 'NamedType', name: { kind: 'Name', value: 'EventHandler' } },
6308
+ selectionSet: {
6309
+ kind: 'SelectionSet',
6310
+ selections: [
6311
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
6312
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
6313
+ { kind: 'Field', name: { kind: 'Name', value: 'description' } },
6314
+ { kind: 'Field', name: { kind: 'Name', value: 'eventType' } },
6315
+ { kind: 'Field', name: { kind: 'Name', value: 'eventCategory' } },
6316
+ { kind: 'Field', name: { kind: 'Name', value: 'matchSource' } },
6317
+ { kind: 'Field', name: { kind: 'Name', value: 'matchAgentType' } },
6318
+ { kind: 'Field', name: { kind: 'Name', value: 'matchResourceType' } },
6319
+ { kind: 'Field', name: { kind: 'Name', value: 'matchMetadataExpression' } },
6320
+ { kind: 'Field', name: { kind: 'Name', value: 'transactionTemplate' } },
6321
+ { kind: 'Field', name: { kind: 'Name', value: 'priority' } },
6322
+ { kind: 'Field', name: { kind: 'Name', value: 'isActive' } },
6323
+ { kind: 'Field', name: { kind: 'Name', value: 'origin' } },
6324
+ { kind: 'Field', name: { kind: 'Name', value: 'suggestedBy' } },
6325
+ { kind: 'Field', name: { kind: 'Name', value: 'confidence' } },
6326
+ { kind: 'Field', name: { kind: 'Name', value: 'approvedBy' } },
6327
+ { kind: 'Field', name: { kind: 'Name', value: 'approvedAt' } },
6328
+ { kind: 'Field', name: { kind: 'Name', value: 'awaitingApproval' } },
6329
+ { kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
6330
+ { kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
6331
+ { kind: 'Field', name: { kind: 'Name', value: 'createdBy' } },
6332
+ ],
6333
+ },
6334
+ },
6335
+ ],
6336
+ } as unknown as DocumentNode<GetLedgerEventHandlerQuery, GetLedgerEventHandlerQueryVariables>
5994
6337
  export const GetLedgerFiscalCalendarDocument = {
5995
6338
  kind: 'Document',
5996
6339
  definitions: [
@@ -0,0 +1,11 @@
1
+ export declare const EVENT_HANDLER_FIELDS: string;
2
+ /**
3
+ * The graph's event handlers — the rules that turn a matching event into GL
4
+ * rows — highest priority first, active or not. A handler an AI client
5
+ * created, or whose match or template an AI client last changed, is
6
+ * `awaitingApproval` and takes no part in matching until a person approves
7
+ * it.
8
+ */
9
+ export declare const LIST_EVENT_HANDLERS: string;
10
+ /** One event handler, or null. */
11
+ export declare const GET_EVENT_HANDLER: string;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_EVENT_HANDLER = exports.LIST_EVENT_HANDLERS = exports.EVENT_HANDLER_FIELDS = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ exports.EVENT_HANDLER_FIELDS = (0, graphql_request_1.gql) `
6
+ fragment EventHandlerFields on EventHandler {
7
+ id
8
+ name
9
+ description
10
+ eventType
11
+ eventCategory
12
+ matchSource
13
+ matchAgentType
14
+ matchResourceType
15
+ matchMetadataExpression
16
+ transactionTemplate
17
+ priority
18
+ isActive
19
+ origin
20
+ suggestedBy
21
+ confidence
22
+ approvedBy
23
+ approvedAt
24
+ awaitingApproval
25
+ createdAt
26
+ updatedAt
27
+ createdBy
28
+ }
29
+ `;
30
+ /**
31
+ * The graph's event handlers — the rules that turn a matching event into GL
32
+ * rows — highest priority first, active or not. A handler an AI client
33
+ * created, or whose match or template an AI client last changed, is
34
+ * `awaitingApproval` and takes no part in matching until a person approves
35
+ * it.
36
+ */
37
+ exports.LIST_EVENT_HANDLERS = (0, graphql_request_1.gql) `
38
+ query ListLedgerEventHandlers(
39
+ $eventType: String
40
+ $isActive: Boolean
41
+ $awaitingApproval: Boolean
42
+ $limit: Int! = 100
43
+ $offset: Int! = 0
44
+ ) {
45
+ eventHandlers(
46
+ eventType: $eventType
47
+ isActive: $isActive
48
+ awaitingApproval: $awaitingApproval
49
+ limit: $limit
50
+ offset: $offset
51
+ ) {
52
+ eventHandlers {
53
+ ...EventHandlerFields
54
+ }
55
+ pagination {
56
+ total
57
+ limit
58
+ offset
59
+ hasMore
60
+ }
61
+ }
62
+ }
63
+ ${exports.EVENT_HANDLER_FIELDS}
64
+ `;
65
+ /** One event handler, or null. */
66
+ exports.GET_EVENT_HANDLER = (0, graphql_request_1.gql) `
67
+ query GetLedgerEventHandler($id: String!) {
68
+ eventHandler(id: $id) {
69
+ ...EventHandlerFields
70
+ }
71
+ }
72
+ ${exports.EVENT_HANDLER_FIELDS}
73
+ `;
@@ -0,0 +1,73 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ export const EVENT_HANDLER_FIELDS = gql`
4
+ fragment EventHandlerFields on EventHandler {
5
+ id
6
+ name
7
+ description
8
+ eventType
9
+ eventCategory
10
+ matchSource
11
+ matchAgentType
12
+ matchResourceType
13
+ matchMetadataExpression
14
+ transactionTemplate
15
+ priority
16
+ isActive
17
+ origin
18
+ suggestedBy
19
+ confidence
20
+ approvedBy
21
+ approvedAt
22
+ awaitingApproval
23
+ createdAt
24
+ updatedAt
25
+ createdBy
26
+ }
27
+ `
28
+
29
+ /**
30
+ * The graph's event handlers — the rules that turn a matching event into GL
31
+ * rows — highest priority first, active or not. A handler an AI client
32
+ * created, or whose match or template an AI client last changed, is
33
+ * `awaitingApproval` and takes no part in matching until a person approves
34
+ * it.
35
+ */
36
+ export const LIST_EVENT_HANDLERS = gql`
37
+ query ListLedgerEventHandlers(
38
+ $eventType: String
39
+ $isActive: Boolean
40
+ $awaitingApproval: Boolean
41
+ $limit: Int! = 100
42
+ $offset: Int! = 0
43
+ ) {
44
+ eventHandlers(
45
+ eventType: $eventType
46
+ isActive: $isActive
47
+ awaitingApproval: $awaitingApproval
48
+ limit: $limit
49
+ offset: $offset
50
+ ) {
51
+ eventHandlers {
52
+ ...EventHandlerFields
53
+ }
54
+ pagination {
55
+ total
56
+ limit
57
+ offset
58
+ hasMore
59
+ }
60
+ }
61
+ }
62
+ ${EVENT_HANDLER_FIELDS}
63
+ `
64
+
65
+ /** One event handler, or null. */
66
+ export const GET_EVENT_HANDLER = gql`
67
+ query GetLedgerEventHandler($id: String!) {
68
+ eventHandler(id: $id) {
69
+ ...EventHandlerFields
70
+ }
71
+ }
72
+ ${EVENT_HANDLER_FIELDS}
73
+ `