attio 0.0.1-experimental.20250825 → 0.0.1-experimental.20250829

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schema.graphql +74 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attio",
3
- "version": "0.0.1-experimental.20250825",
3
+ "version": "0.0.1-experimental.20250829",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "lib",
package/schema.graphql CHANGED
@@ -11,6 +11,12 @@ interface IObject {
11
11
  The slug of the object.
12
12
  """
13
13
  slug: String!
14
+ attributes(
15
+ """
16
+ Filter attributes by types.
17
+ """
18
+ types: [AttributeType!]
19
+ ): [Attribute!]!
14
20
  record(
15
21
  """
16
22
  ID of the record.
@@ -25,6 +31,38 @@ interface IObject {
25
31
  ): [Record]!
26
32
  }
27
33
 
34
+ """
35
+ An attribute of an object.
36
+ """
37
+ type Attribute {
38
+ title: String!
39
+ slug: String!
40
+ type: AttributeType!
41
+ }
42
+
43
+ """
44
+ The type of an attribute.
45
+ """
46
+ enum AttributeType {
47
+ TEXT
48
+ NUMBER
49
+ CHECKBOX
50
+ CURRENCY
51
+ DATE
52
+ TIMESTAMP
53
+ RATING
54
+ PIPELINE
55
+ SELECT
56
+ ENTITY_REFERENCE
57
+ ACTOR_REFERENCE
58
+ LOCATION
59
+ DOMAIN
60
+ EMAIL_ADDRESS
61
+ PHONE_NUMBER
62
+ INTERACTION
63
+ PERSONAL_NAME
64
+ }
65
+
28
66
  """
29
67
  A record in the workspace.
30
68
  """
@@ -256,6 +294,12 @@ type Object implements IObject {
256
294
  The slug of the object.
257
295
  """
258
296
  slug: String!
297
+ attributes(
298
+ """
299
+ Filter attributes by types.
300
+ """
301
+ types: [AttributeType!]
302
+ ): [Attribute!]!
259
303
  record(
260
304
  """
261
305
  ID of the record.
@@ -422,6 +466,12 @@ type people implements IObject {
422
466
  The slug of the object.
423
467
  """
424
468
  slug: String!
469
+ attributes(
470
+ """
471
+ Filter attributes by types.
472
+ """
473
+ types: [AttributeType!]
474
+ ): [Attribute!]!
425
475
  record(
426
476
  """
427
477
  ID of the person record.
@@ -657,6 +707,12 @@ type companies implements IObject {
657
707
  The slug of the object.
658
708
  """
659
709
  slug: String!
710
+ attributes(
711
+ """
712
+ Filter attributes by types.
713
+ """
714
+ types: [AttributeType!]
715
+ ): [Attribute!]!
660
716
  record(
661
717
  """
662
718
  ID of the company record.
@@ -684,6 +740,12 @@ type deals implements IObject {
684
740
  The slug of the object.
685
741
  """
686
742
  slug: String!
743
+ attributes(
744
+ """
745
+ Filter attributes by types.
746
+ """
747
+ types: [AttributeType!]
748
+ ): [Attribute!]!
687
749
  record(
688
750
  """
689
751
  ID of the deal record.
@@ -711,6 +773,12 @@ type workspaces implements IObject {
711
773
  The slug of the object.
712
774
  """
713
775
  slug: String!
776
+ attributes(
777
+ """
778
+ Filter attributes by types.
779
+ """
780
+ types: [AttributeType!]
781
+ ): [Attribute!]!
714
782
  record(
715
783
  """
716
784
  ID of the workspace record.
@@ -738,6 +806,12 @@ type users implements IObject {
738
806
  The slug of the object.
739
807
  """
740
808
  slug: String!
809
+ attributes(
810
+ """
811
+ Filter attributes by types.
812
+ """
813
+ types: [AttributeType!]
814
+ ): [Attribute!]!
741
815
  record(
742
816
  """
743
817
  ID of the user record.