@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.
@@ -0,0 +1,46 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * List agents (REA-aligned counterparty graph).
5
+ *
6
+ * `agentType` filters to `customer`, `vendor`, or `employee`. `source`
7
+ * scopes to a single ingestion source (e.g. `quickbooks`). `isActive`
8
+ * defaults to `true` on the resolver — pass explicit `false` to see
9
+ * deactivated agents, or `null` to see both.
10
+ */
11
+ export const LIST_AGENTS = gql`
12
+ query ListLedgerAgents(
13
+ $agentType: String
14
+ $source: String
15
+ $isActive: Boolean = true
16
+ $limit: Int! = 50
17
+ $offset: Int! = 0
18
+ ) {
19
+ agents(
20
+ agentType: $agentType
21
+ source: $source
22
+ isActive: $isActive
23
+ limit: $limit
24
+ offset: $offset
25
+ ) {
26
+ id
27
+ agentType
28
+ name
29
+ legalName
30
+ taxId
31
+ registrationNumber
32
+ duns
33
+ lei
34
+ email
35
+ phone
36
+ address
37
+ source
38
+ externalId
39
+ isActive
40
+ is1099Recipient
41
+ createdAt
42
+ updatedAt
43
+ createdBy
44
+ }
45
+ }
46
+ `
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Get a single event block by id (the inbox detail view).
3
+ *
4
+ * `metadata` is a JSON dict — for QB-sourced events it carries the
5
+ * nested `entries[]` shape (memo + posting_date + line_items) that the
6
+ * journal_entry_recorded handler consumes on approve.
7
+ */
8
+ export declare const GET_EVENT_BLOCK: string;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_EVENT_BLOCK = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Get a single event block by id (the inbox detail view).
7
+ *
8
+ * `metadata` is a JSON dict — for QB-sourced events it carries the
9
+ * nested `entries[]` shape (memo + posting_date + line_items) that the
10
+ * journal_entry_recorded handler consumes on approve.
11
+ */
12
+ exports.GET_EVENT_BLOCK = (0, graphql_request_1.gql) `
13
+ query GetLedgerEventBlock($id: String!) {
14
+ eventBlock(id: $id) {
15
+ id
16
+ eventType
17
+ eventCategory
18
+ eventClass
19
+ status
20
+ occurredAt
21
+ effectiveAt
22
+ source
23
+ externalId
24
+ externalUrl
25
+ amount
26
+ currency
27
+ description
28
+ metadata
29
+ dimensionIds
30
+ agentId
31
+ resourceType
32
+ resourceElementId
33
+ replacedByEventId
34
+ replacesEventId
35
+ obligatedByEventId
36
+ dischargesEventId
37
+ createdAt
38
+ createdBy
39
+ }
40
+ }
41
+ `;
@@ -0,0 +1,39 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Get a single event block by id (the inbox detail view).
5
+ *
6
+ * `metadata` is a JSON dict — for QB-sourced events it carries the
7
+ * nested `entries[]` shape (memo + posting_date + line_items) that the
8
+ * journal_entry_recorded handler consumes on approve.
9
+ */
10
+ export const GET_EVENT_BLOCK = gql`
11
+ query GetLedgerEventBlock($id: String!) {
12
+ eventBlock(id: $id) {
13
+ id
14
+ eventType
15
+ eventCategory
16
+ eventClass
17
+ status
18
+ occurredAt
19
+ effectiveAt
20
+ source
21
+ externalId
22
+ externalUrl
23
+ amount
24
+ currency
25
+ description
26
+ metadata
27
+ dimensionIds
28
+ agentId
29
+ resourceType
30
+ resourceElementId
31
+ replacedByEventId
32
+ replacesEventId
33
+ obligatedByEventId
34
+ dischargesEventId
35
+ createdAt
36
+ createdBy
37
+ }
38
+ }
39
+ `
@@ -0,0 +1,11 @@
1
+ /**
2
+ * List captured event blocks (the inbox surface).
3
+ *
4
+ * Filters are independent. `status` defaults to all on the wire, but
5
+ * the inbox UI typically passes `'captured'` to show un-reviewed events.
6
+ * `eventType` matches values like `invoice_issued`, `bill_received`,
7
+ * `payment_received`, `bill_paid`, `sales_receipt_recorded`,
8
+ * `journal_entry_recorded`. `eventCategory` groups them: `sales`,
9
+ * `purchase`, `adjustment`.
10
+ */
11
+ export declare const LIST_EVENT_BLOCKS: string;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LIST_EVENT_BLOCKS = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * List captured event blocks (the inbox surface).
7
+ *
8
+ * Filters are independent. `status` defaults to all on the wire, but
9
+ * the inbox UI typically passes `'captured'` to show un-reviewed events.
10
+ * `eventType` matches values like `invoice_issued`, `bill_received`,
11
+ * `payment_received`, `bill_paid`, `sales_receipt_recorded`,
12
+ * `journal_entry_recorded`. `eventCategory` groups them: `sales`,
13
+ * `purchase`, `adjustment`.
14
+ */
15
+ exports.LIST_EVENT_BLOCKS = (0, graphql_request_1.gql) `
16
+ query ListLedgerEventBlocks(
17
+ $eventType: String
18
+ $eventCategory: String
19
+ $status: String
20
+ $agentId: String
21
+ $source: String
22
+ $limit: Int! = 50
23
+ $offset: Int! = 0
24
+ ) {
25
+ eventBlocks(
26
+ eventType: $eventType
27
+ eventCategory: $eventCategory
28
+ status: $status
29
+ agentId: $agentId
30
+ source: $source
31
+ limit: $limit
32
+ offset: $offset
33
+ ) {
34
+ id
35
+ eventType
36
+ eventCategory
37
+ eventClass
38
+ status
39
+ occurredAt
40
+ effectiveAt
41
+ source
42
+ externalId
43
+ externalUrl
44
+ amount
45
+ currency
46
+ description
47
+ metadata
48
+ dimensionIds
49
+ agentId
50
+ resourceType
51
+ resourceElementId
52
+ replacedByEventId
53
+ replacesEventId
54
+ obligatedByEventId
55
+ dischargesEventId
56
+ createdAt
57
+ createdBy
58
+ }
59
+ }
60
+ `;
@@ -0,0 +1,58 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * List captured event blocks (the inbox surface).
5
+ *
6
+ * Filters are independent. `status` defaults to all on the wire, but
7
+ * the inbox UI typically passes `'captured'` to show un-reviewed events.
8
+ * `eventType` matches values like `invoice_issued`, `bill_received`,
9
+ * `payment_received`, `bill_paid`, `sales_receipt_recorded`,
10
+ * `journal_entry_recorded`. `eventCategory` groups them: `sales`,
11
+ * `purchase`, `adjustment`.
12
+ */
13
+ export const LIST_EVENT_BLOCKS = gql`
14
+ query ListLedgerEventBlocks(
15
+ $eventType: String
16
+ $eventCategory: String
17
+ $status: String
18
+ $agentId: String
19
+ $source: String
20
+ $limit: Int! = 50
21
+ $offset: Int! = 0
22
+ ) {
23
+ eventBlocks(
24
+ eventType: $eventType
25
+ eventCategory: $eventCategory
26
+ status: $status
27
+ agentId: $agentId
28
+ source: $source
29
+ limit: $limit
30
+ offset: $offset
31
+ ) {
32
+ id
33
+ eventType
34
+ eventCategory
35
+ eventClass
36
+ status
37
+ occurredAt
38
+ effectiveAt
39
+ source
40
+ externalId
41
+ externalUrl
42
+ amount
43
+ currency
44
+ description
45
+ metadata
46
+ dimensionIds
47
+ agentId
48
+ resourceType
49
+ resourceElementId
50
+ replacedByEventId
51
+ replacesEventId
52
+ obligatedByEventId
53
+ dischargesEventId
54
+ createdAt
55
+ createdBy
56
+ }
57
+ }
58
+ `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robosystems/client",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "description": "TypeScript client library for RoboSystems Financial Knowledge Graph API",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",