attio 0.0.1-experimental.20241008.3 → 0.0.1-experimental.20241011
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/lib/client/components/action.d.ts +21 -1
- package/lib/client/components/combobox.d.ts +21 -0
- package/lib/client/components/multistep.d.ts +7 -0
- package/lib/client/components/row.d.ts +4 -1
- package/lib/client/components/section.d.ts +9 -1
- package/lib/client/components/text-block.d.ts +7 -1
- package/lib/client/forms/array.d.ts +6 -2
- package/lib/client/forms/index.d.ts +0 -2
- package/lib/client/forms/number.d.ts +21 -1
- package/lib/client/forms/path.d.ts +3 -7
- package/lib/client/forms/string.d.ts +23 -2
- package/lib/client/forms/value.d.ts +6 -0
- package/lib/client/hooks/index.d.ts +2 -1
- package/lib/client/hooks/use-async-cache.d.ts +51 -2
- package/lib/client/hooks/use-dialog.d.ts +59 -5
- package/lib/client/hooks/use-form.d.ts +177 -0
- package/lib/client/hooks/use-query.d.ts +46 -5
- package/lib/client/hooks/use-record.d.ts +6 -1
- package/lib/client/index.d.ts +1 -2
- package/lib/client/register-record-action.d.ts +19 -1
- package/lib/client/run-query.d.ts +49 -5
- package/lib/graphql/generate-operations.js +3 -1
- package/lib/machines/dev-machine.js +1 -10
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/schema.graphql +199 -230
- package/lib/client/forms/build.d.ts +0 -48
- package/lib/client/forms/connection.d.ts +0 -17
package/schema.graphql
CHANGED
|
@@ -1,99 +1,14 @@
|
|
|
1
|
-
"""
|
|
2
|
-
|
|
3
|
-
"""The name of the workspace."""
|
|
4
|
-
name: String
|
|
5
|
-
|
|
6
|
-
"""The slug of the workspace."""
|
|
7
|
-
slug: String
|
|
8
|
-
|
|
9
|
-
"""The objects inside the workspace."""
|
|
10
|
-
objects: [IObject]
|
|
11
|
-
object(
|
|
12
|
-
"""Slug of the object."""
|
|
13
|
-
slug: String!
|
|
14
|
-
): IObject
|
|
15
|
-
people: people
|
|
16
|
-
companies: companies
|
|
17
|
-
deals: deals
|
|
18
|
-
workspaces: workspaces
|
|
19
|
-
users: users
|
|
20
|
-
person(
|
|
21
|
-
"""The ID of the person record."""
|
|
22
|
-
id: String!
|
|
23
|
-
): PeopleRecord
|
|
24
|
-
company(
|
|
25
|
-
"""The ID of the company record."""
|
|
26
|
-
id: String!
|
|
27
|
-
): CompaniesRecord
|
|
28
|
-
deal(
|
|
29
|
-
"""The ID of the deal record."""
|
|
30
|
-
id: String!
|
|
31
|
-
): DealsRecord
|
|
32
|
-
workspace(
|
|
33
|
-
"""The ID of the workspace record."""
|
|
34
|
-
id: String!
|
|
35
|
-
): WorkspacesRecord
|
|
36
|
-
userRecord(
|
|
37
|
-
"""The ID of the user record."""
|
|
38
|
-
id: String!
|
|
39
|
-
): UsersRecord
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
"""The person object in the workspace."""
|
|
43
|
-
type people implements IObject {
|
|
1
|
+
"""An object in the workspace."""
|
|
2
|
+
interface IObject {
|
|
44
3
|
"""The name of the object."""
|
|
45
|
-
|
|
4
|
+
name: String!
|
|
46
5
|
|
|
47
6
|
"""The slug of the object."""
|
|
48
7
|
slug: String!
|
|
49
|
-
|
|
50
|
-
"""The attributes of the object."""
|
|
51
|
-
attributes: [Attribute]
|
|
52
|
-
attribute(
|
|
53
|
-
"""Slug of the attribute"""
|
|
54
|
-
slug: String!
|
|
55
|
-
): Attribute
|
|
56
8
|
record(
|
|
57
|
-
"""ID of the
|
|
9
|
+
"""ID of the record."""
|
|
58
10
|
id: String!
|
|
59
|
-
):
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
"""A person record."""
|
|
63
|
-
type PeopleRecord implements Record {
|
|
64
|
-
attribute(
|
|
65
|
-
"""Slug of the attribute"""
|
|
66
|
-
slug: String!
|
|
67
|
-
): AttributeValue
|
|
68
|
-
|
|
69
|
-
"""The URL of the record in Attio."""
|
|
70
|
-
url: String!
|
|
71
|
-
name: PersonalName
|
|
72
|
-
email_addresses: [String!]
|
|
73
|
-
description: String
|
|
74
|
-
company: CompaniesRecord
|
|
75
|
-
job_title: String
|
|
76
|
-
avatar_url: String
|
|
77
|
-
phone_numbers: [String!]
|
|
78
|
-
primary_location: Location
|
|
79
|
-
angellist: String
|
|
80
|
-
facebook: String
|
|
81
|
-
instagram: String
|
|
82
|
-
linkedin: String
|
|
83
|
-
twitter: String
|
|
84
|
-
twitter_follower_count: Float
|
|
85
|
-
first_calendar_interaction: Interaction
|
|
86
|
-
last_calendar_interaction: Interaction
|
|
87
|
-
next_calendar_interaction: Interaction
|
|
88
|
-
last_email_interaction: Interaction
|
|
89
|
-
first_interaction: Interaction
|
|
90
|
-
last_interaction: Interaction
|
|
91
|
-
next_interaction: Interaction
|
|
92
|
-
associated_deals: [DealsRecord!]
|
|
93
|
-
associated_users: [UsersRecord!]
|
|
94
|
-
list_entries: [Record!]
|
|
95
|
-
created_at: String
|
|
96
|
-
created_by: Actor
|
|
11
|
+
): Record
|
|
97
12
|
}
|
|
98
13
|
|
|
99
14
|
"""A record in the workspace."""
|
|
@@ -105,16 +20,19 @@ interface Record {
|
|
|
105
20
|
|
|
106
21
|
"""The URL of the record in Attio."""
|
|
107
22
|
url: String!
|
|
23
|
+
|
|
24
|
+
"""The record's object."""
|
|
25
|
+
object: IObject!
|
|
108
26
|
}
|
|
109
27
|
|
|
110
|
-
union AttributeValue = RecordReferenceValue | MultiRecordReferenceValue | PersonalNameValue | TextValue | DateValue | TimestampValue | NumberValue | MultiEmailAddressValue | DomainValue | MultiDomainValue | LocationValue | InteractionValue | SelectValue | MultiSelectValue |
|
|
28
|
+
union AttributeValue = RecordReferenceValue | MultiRecordReferenceValue | PersonalNameValue | TextValue | DateValue | TimestampValue | NumberValue | MultiEmailAddressValue | DomainValue | MultiDomainValue | LocationValue | InteractionValue | SelectValue | MultiSelectValue | StatusValue | CheckboxValue | RatingValue | PhoneNumberValue | MultiPhoneNumberValue | CurrencyValue | ActorReferenceValue | MultiActorReferenceValue
|
|
111
29
|
|
|
112
30
|
type RecordReferenceValue {
|
|
113
31
|
value: Record
|
|
114
32
|
}
|
|
115
33
|
|
|
116
34
|
type MultiRecordReferenceValue {
|
|
117
|
-
values: [Record]
|
|
35
|
+
values: [Record!]!
|
|
118
36
|
}
|
|
119
37
|
|
|
120
38
|
type PersonalNameValue {
|
|
@@ -122,9 +40,9 @@ type PersonalNameValue {
|
|
|
122
40
|
}
|
|
123
41
|
|
|
124
42
|
type PersonalName {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
43
|
+
first_name: String
|
|
44
|
+
last_name: String
|
|
45
|
+
full_name: String
|
|
128
46
|
}
|
|
129
47
|
|
|
130
48
|
type TextValue {
|
|
@@ -144,7 +62,7 @@ type NumberValue {
|
|
|
144
62
|
}
|
|
145
63
|
|
|
146
64
|
type MultiEmailAddressValue {
|
|
147
|
-
values: [String]
|
|
65
|
+
values: [String!]!
|
|
148
66
|
}
|
|
149
67
|
|
|
150
68
|
type DomainValue {
|
|
@@ -152,7 +70,7 @@ type DomainValue {
|
|
|
152
70
|
}
|
|
153
71
|
|
|
154
72
|
type MultiDomainValue {
|
|
155
|
-
values: [String]
|
|
73
|
+
values: [String!]!
|
|
156
74
|
}
|
|
157
75
|
|
|
158
76
|
type LocationValue {
|
|
@@ -177,7 +95,7 @@ type InteractionValue {
|
|
|
177
95
|
}
|
|
178
96
|
|
|
179
97
|
type Interaction {
|
|
180
|
-
|
|
98
|
+
interacted_at: String!
|
|
181
99
|
}
|
|
182
100
|
|
|
183
101
|
type SelectValue {
|
|
@@ -185,20 +103,20 @@ type SelectValue {
|
|
|
185
103
|
}
|
|
186
104
|
|
|
187
105
|
type SelectOption {
|
|
188
|
-
|
|
106
|
+
title: String!
|
|
189
107
|
id: String!
|
|
190
108
|
}
|
|
191
109
|
|
|
192
110
|
type MultiSelectValue {
|
|
193
|
-
values: [SelectOption]
|
|
111
|
+
values: [SelectOption!]!
|
|
194
112
|
}
|
|
195
113
|
|
|
196
|
-
type
|
|
197
|
-
value:
|
|
114
|
+
type StatusValue {
|
|
115
|
+
value: Status
|
|
198
116
|
}
|
|
199
117
|
|
|
200
|
-
type
|
|
201
|
-
|
|
118
|
+
type Status {
|
|
119
|
+
title: String!
|
|
202
120
|
id: String!
|
|
203
121
|
}
|
|
204
122
|
|
|
@@ -215,7 +133,7 @@ type PhoneNumberValue {
|
|
|
215
133
|
}
|
|
216
134
|
|
|
217
135
|
type MultiPhoneNumberValue {
|
|
218
|
-
values: [String]
|
|
136
|
+
values: [String!]!
|
|
219
137
|
}
|
|
220
138
|
|
|
221
139
|
type CurrencyValue {
|
|
@@ -223,8 +141,8 @@ type CurrencyValue {
|
|
|
223
141
|
}
|
|
224
142
|
|
|
225
143
|
type Money {
|
|
226
|
-
|
|
227
|
-
|
|
144
|
+
currency_value: Float!
|
|
145
|
+
currency_code: String!
|
|
228
146
|
}
|
|
229
147
|
|
|
230
148
|
type ActorReferenceValue {
|
|
@@ -232,7 +150,7 @@ type ActorReferenceValue {
|
|
|
232
150
|
}
|
|
233
151
|
|
|
234
152
|
"""An actor inside Attio."""
|
|
235
|
-
union Actor = User | SystemActor
|
|
153
|
+
union Actor = User | SystemActor | APITokenActor | Workflow
|
|
236
154
|
|
|
237
155
|
"""An Attio user."""
|
|
238
156
|
type User {
|
|
@@ -242,15 +160,146 @@ type User {
|
|
|
242
160
|
|
|
243
161
|
"""A system inside Attio."""
|
|
244
162
|
type SystemActor {
|
|
245
|
-
|
|
163
|
+
type: String!
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
"""An Attio API token."""
|
|
167
|
+
type APITokenActor {
|
|
168
|
+
type: String!
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
"""An Attio workflow."""
|
|
172
|
+
type Workflow {
|
|
173
|
+
type: String!
|
|
246
174
|
}
|
|
247
175
|
|
|
248
176
|
type MultiActorReferenceValue {
|
|
249
|
-
values: [Actor]
|
|
177
|
+
values: [Actor!]!
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
"""An object in the workspace."""
|
|
181
|
+
type Object implements IObject {
|
|
182
|
+
"""The name of the object."""
|
|
183
|
+
name: String!
|
|
184
|
+
|
|
185
|
+
"""The slug of the object."""
|
|
186
|
+
slug: String!
|
|
187
|
+
record(
|
|
188
|
+
"""ID of the record."""
|
|
189
|
+
id: String!
|
|
190
|
+
): Record
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
"""A record for a custom object."""
|
|
194
|
+
type CustomRecord implements Record {
|
|
195
|
+
attribute(
|
|
196
|
+
"""Slug of the attribute"""
|
|
197
|
+
slug: String!
|
|
198
|
+
): AttributeValue
|
|
199
|
+
|
|
200
|
+
"""The URL of the record in Attio."""
|
|
201
|
+
url: String!
|
|
202
|
+
|
|
203
|
+
"""The record's object."""
|
|
204
|
+
object: IObject!
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
type Query {
|
|
208
|
+
"""The objects inside the workspace."""
|
|
209
|
+
objects: [IObject]
|
|
210
|
+
object(
|
|
211
|
+
"""Slug of the object."""
|
|
212
|
+
slug: String!
|
|
213
|
+
): IObject
|
|
214
|
+
people: people!
|
|
215
|
+
companies: companies!
|
|
216
|
+
deals: deals!
|
|
217
|
+
workspaces: workspaces!
|
|
218
|
+
users: users!
|
|
219
|
+
person(
|
|
220
|
+
"""The ID of the person record."""
|
|
221
|
+
id: String!
|
|
222
|
+
): Person
|
|
223
|
+
company(
|
|
224
|
+
"""The ID of the company record."""
|
|
225
|
+
id: String!
|
|
226
|
+
): Company
|
|
227
|
+
deal(
|
|
228
|
+
"""The ID of the deal record."""
|
|
229
|
+
id: String!
|
|
230
|
+
): Deal
|
|
231
|
+
workspace(
|
|
232
|
+
"""The ID of the workspace record."""
|
|
233
|
+
id: String!
|
|
234
|
+
): WorkspaceRecord
|
|
235
|
+
userRecord(
|
|
236
|
+
"""The ID of the user record."""
|
|
237
|
+
id: String!
|
|
238
|
+
): UserRecord
|
|
239
|
+
record(
|
|
240
|
+
"""The ID of the record."""
|
|
241
|
+
id: String!
|
|
242
|
+
|
|
243
|
+
"""Slug of the record's object."""
|
|
244
|
+
object: String!
|
|
245
|
+
): Record
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
"""The person object in the workspace."""
|
|
249
|
+
type people implements IObject {
|
|
250
|
+
"""The name of the object."""
|
|
251
|
+
name: String!
|
|
252
|
+
|
|
253
|
+
"""The slug of the object."""
|
|
254
|
+
slug: String!
|
|
255
|
+
record(
|
|
256
|
+
"""ID of the person record."""
|
|
257
|
+
id: String!
|
|
258
|
+
): Person!
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
"""A person record."""
|
|
262
|
+
type Person implements Record {
|
|
263
|
+
attribute(
|
|
264
|
+
"""Slug of the attribute"""
|
|
265
|
+
slug: String!
|
|
266
|
+
): AttributeValue
|
|
267
|
+
|
|
268
|
+
"""The URL of the record in Attio."""
|
|
269
|
+
url: String!
|
|
270
|
+
|
|
271
|
+
"""The record's object."""
|
|
272
|
+
object: IObject!
|
|
273
|
+
name: PersonalName
|
|
274
|
+
email_addresses: [String!]!
|
|
275
|
+
description: String
|
|
276
|
+
company: Company
|
|
277
|
+
job_title: String
|
|
278
|
+
avatar_url: String
|
|
279
|
+
phone_numbers: [String!]!
|
|
280
|
+
primary_location: Location
|
|
281
|
+
angellist: String
|
|
282
|
+
facebook: String
|
|
283
|
+
instagram: String
|
|
284
|
+
linkedin: String
|
|
285
|
+
twitter: String
|
|
286
|
+
twitter_follower_count: Float
|
|
287
|
+
first_calendar_interaction: Interaction
|
|
288
|
+
last_calendar_interaction: Interaction
|
|
289
|
+
next_calendar_interaction: Interaction
|
|
290
|
+
last_email_interaction: Interaction
|
|
291
|
+
first_interaction: Interaction
|
|
292
|
+
last_interaction: Interaction
|
|
293
|
+
next_interaction: Interaction
|
|
294
|
+
associated_deals: [Deal!]!
|
|
295
|
+
associated_users: [UserRecord!]!
|
|
296
|
+
list_entries: [Record!]!
|
|
297
|
+
created_at: String
|
|
298
|
+
created_by: Actor
|
|
250
299
|
}
|
|
251
300
|
|
|
252
301
|
"""A company record."""
|
|
253
|
-
type
|
|
302
|
+
type Company implements Record {
|
|
254
303
|
attribute(
|
|
255
304
|
"""Slug of the attribute"""
|
|
256
305
|
slug: String!
|
|
@@ -258,11 +307,14 @@ type CompaniesRecord implements Record {
|
|
|
258
307
|
|
|
259
308
|
"""The URL of the record in Attio."""
|
|
260
309
|
url: String!
|
|
261
|
-
|
|
310
|
+
|
|
311
|
+
"""The record's object."""
|
|
312
|
+
object: IObject!
|
|
313
|
+
domains: [String!]!
|
|
262
314
|
name: String
|
|
263
315
|
description: String
|
|
264
|
-
team: [
|
|
265
|
-
categories: [SelectOption!]
|
|
316
|
+
team: [Person!]!
|
|
317
|
+
categories: [SelectOption!]!
|
|
266
318
|
primary_location: Location
|
|
267
319
|
logo_url: String
|
|
268
320
|
angellist: String
|
|
@@ -282,15 +334,15 @@ type CompaniesRecord implements Record {
|
|
|
282
334
|
first_interaction: Interaction
|
|
283
335
|
last_interaction: Interaction
|
|
284
336
|
next_interaction: Interaction
|
|
285
|
-
associated_deals: [
|
|
286
|
-
associated_workspaces: [
|
|
287
|
-
list_entries: [Record!]
|
|
337
|
+
associated_deals: [Deal!]!
|
|
338
|
+
associated_workspaces: [WorkspaceRecord!]!
|
|
339
|
+
list_entries: [Record!]!
|
|
288
340
|
created_at: String
|
|
289
341
|
created_by: Actor
|
|
290
342
|
}
|
|
291
343
|
|
|
292
344
|
"""A deal record."""
|
|
293
|
-
type
|
|
345
|
+
type Deal implements Record {
|
|
294
346
|
attribute(
|
|
295
347
|
"""Slug of the attribute"""
|
|
296
348
|
slug: String!
|
|
@@ -298,19 +350,22 @@ type DealsRecord implements Record {
|
|
|
298
350
|
|
|
299
351
|
"""The URL of the record in Attio."""
|
|
300
352
|
url: String!
|
|
353
|
+
|
|
354
|
+
"""The record's object."""
|
|
355
|
+
object: IObject!
|
|
301
356
|
name: String
|
|
302
|
-
stage:
|
|
357
|
+
stage: Status
|
|
303
358
|
owner: Actor
|
|
304
359
|
value: Money
|
|
305
|
-
associated_people: [
|
|
306
|
-
associated_company:
|
|
307
|
-
list_entries: [Record!]
|
|
360
|
+
associated_people: [Person!]!
|
|
361
|
+
associated_company: Company
|
|
362
|
+
list_entries: [Record!]!
|
|
308
363
|
created_at: String
|
|
309
364
|
created_by: Actor
|
|
310
365
|
}
|
|
311
366
|
|
|
312
367
|
"""A workspace record."""
|
|
313
|
-
type
|
|
368
|
+
type WorkspaceRecord implements Record {
|
|
314
369
|
attribute(
|
|
315
370
|
"""Slug of the attribute"""
|
|
316
371
|
slug: String!
|
|
@@ -318,18 +373,21 @@ type WorkspacesRecord implements Record {
|
|
|
318
373
|
|
|
319
374
|
"""The URL of the record in Attio."""
|
|
320
375
|
url: String!
|
|
376
|
+
|
|
377
|
+
"""The record's object."""
|
|
378
|
+
object: IObject!
|
|
321
379
|
workspace_id: String
|
|
322
380
|
name: String
|
|
323
|
-
users: [
|
|
324
|
-
company:
|
|
381
|
+
users: [UserRecord!]!
|
|
382
|
+
company: Company
|
|
325
383
|
avatar_url: String
|
|
326
|
-
list_entries: [Record!]
|
|
384
|
+
list_entries: [Record!]!
|
|
327
385
|
created_at: String
|
|
328
386
|
created_by: Actor
|
|
329
387
|
}
|
|
330
388
|
|
|
331
389
|
"""A user record."""
|
|
332
|
-
type
|
|
390
|
+
type UserRecord implements Record {
|
|
333
391
|
attribute(
|
|
334
392
|
"""Slug of the attribute"""
|
|
335
393
|
slug: String!
|
|
@@ -337,10 +395,13 @@ type UsersRecord implements Record {
|
|
|
337
395
|
|
|
338
396
|
"""The URL of the record in Attio."""
|
|
339
397
|
url: String!
|
|
340
|
-
|
|
398
|
+
|
|
399
|
+
"""The record's object."""
|
|
400
|
+
object: IObject!
|
|
401
|
+
person: Person
|
|
341
402
|
primary_email_address: String
|
|
342
|
-
workspace:
|
|
343
|
-
list_entries: [Record!]
|
|
403
|
+
workspace: WorkspaceRecord
|
|
404
|
+
list_entries: [Record!]!
|
|
344
405
|
created_at: String
|
|
345
406
|
created_by: Actor
|
|
346
407
|
}
|
|
@@ -348,143 +409,51 @@ type UsersRecord implements Record {
|
|
|
348
409
|
"""The company object in the workspace."""
|
|
349
410
|
type companies implements IObject {
|
|
350
411
|
"""The name of the object."""
|
|
351
|
-
|
|
412
|
+
name: String!
|
|
352
413
|
|
|
353
414
|
"""The slug of the object."""
|
|
354
415
|
slug: String!
|
|
355
|
-
|
|
356
|
-
"""The attributes of the object."""
|
|
357
|
-
attributes: [Attribute]
|
|
358
|
-
attribute(
|
|
359
|
-
"""Slug of the attribute"""
|
|
360
|
-
slug: String!
|
|
361
|
-
): Attribute
|
|
362
416
|
record(
|
|
363
417
|
"""ID of the company record."""
|
|
364
418
|
id: String!
|
|
365
|
-
):
|
|
419
|
+
): Company!
|
|
366
420
|
}
|
|
367
421
|
|
|
368
422
|
"""The deal object in the workspace."""
|
|
369
423
|
type deals implements IObject {
|
|
370
424
|
"""The name of the object."""
|
|
371
|
-
|
|
425
|
+
name: String!
|
|
372
426
|
|
|
373
427
|
"""The slug of the object."""
|
|
374
428
|
slug: String!
|
|
375
|
-
|
|
376
|
-
"""The attributes of the object."""
|
|
377
|
-
attributes: [Attribute]
|
|
378
|
-
attribute(
|
|
379
|
-
"""Slug of the attribute"""
|
|
380
|
-
slug: String!
|
|
381
|
-
): Attribute
|
|
382
429
|
record(
|
|
383
430
|
"""ID of the deal record."""
|
|
384
431
|
id: String!
|
|
385
|
-
):
|
|
432
|
+
): Deal!
|
|
386
433
|
}
|
|
387
434
|
|
|
388
435
|
"""The workspace object in the workspace."""
|
|
389
436
|
type workspaces implements IObject {
|
|
390
437
|
"""The name of the object."""
|
|
391
|
-
|
|
438
|
+
name: String!
|
|
392
439
|
|
|
393
440
|
"""The slug of the object."""
|
|
394
441
|
slug: String!
|
|
395
|
-
|
|
396
|
-
"""The attributes of the object."""
|
|
397
|
-
attributes: [Attribute]
|
|
398
|
-
attribute(
|
|
399
|
-
"""Slug of the attribute"""
|
|
400
|
-
slug: String!
|
|
401
|
-
): Attribute
|
|
402
442
|
record(
|
|
403
443
|
"""ID of the workspace record."""
|
|
404
444
|
id: String!
|
|
405
|
-
):
|
|
445
|
+
): WorkspaceRecord!
|
|
406
446
|
}
|
|
407
447
|
|
|
408
448
|
"""The user object in the workspace."""
|
|
409
449
|
type users implements IObject {
|
|
410
450
|
"""The name of the object."""
|
|
411
|
-
|
|
451
|
+
name: String!
|
|
412
452
|
|
|
413
453
|
"""The slug of the object."""
|
|
414
454
|
slug: String!
|
|
415
|
-
|
|
416
|
-
"""The attributes of the object."""
|
|
417
|
-
attributes: [Attribute]
|
|
418
|
-
attribute(
|
|
419
|
-
"""Slug of the attribute"""
|
|
420
|
-
slug: String!
|
|
421
|
-
): Attribute
|
|
422
455
|
record(
|
|
423
456
|
"""ID of the user record."""
|
|
424
457
|
id: String!
|
|
425
|
-
):
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
"""An object in the workspace."""
|
|
429
|
-
interface IObject {
|
|
430
|
-
"""The name of the object."""
|
|
431
|
-
_name: String!
|
|
432
|
-
|
|
433
|
-
"""The slug of the object."""
|
|
434
|
-
slug: String!
|
|
435
|
-
|
|
436
|
-
"""The attributes of the object."""
|
|
437
|
-
attributes: [Attribute]
|
|
438
|
-
attribute(
|
|
439
|
-
"""Slug of the attribute"""
|
|
440
|
-
slug: String!
|
|
441
|
-
): Attribute
|
|
442
|
-
record(
|
|
443
|
-
"""ID of the record."""
|
|
444
|
-
id: String!
|
|
445
|
-
): Record
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
"""An object in the workspace."""
|
|
449
|
-
type Object implements IObject {
|
|
450
|
-
"""The name of the object."""
|
|
451
|
-
_name: String!
|
|
452
|
-
|
|
453
|
-
"""The slug of the object."""
|
|
454
|
-
slug: String!
|
|
455
|
-
|
|
456
|
-
"""The attributes of the object."""
|
|
457
|
-
attributes: [Attribute]
|
|
458
|
-
attribute(
|
|
459
|
-
"""Slug of the attribute"""
|
|
460
|
-
slug: String!
|
|
461
|
-
): Attribute
|
|
462
|
-
record(
|
|
463
|
-
"""ID of the record."""
|
|
464
|
-
id: String!
|
|
465
|
-
): Record
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
"""An object attribute."""
|
|
469
|
-
type Attribute {
|
|
470
|
-
"""The slug of the attribute."""
|
|
471
|
-
slug: String!
|
|
472
|
-
|
|
473
|
-
"""The name of the attribute."""
|
|
474
|
-
name: String
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
"""A record for a custom object."""
|
|
478
|
-
type CustomRecord implements Record {
|
|
479
|
-
attribute(
|
|
480
|
-
"""Slug of the attribute"""
|
|
481
|
-
slug: String!
|
|
482
|
-
): AttributeValue
|
|
483
|
-
|
|
484
|
-
"""The URL of the record in Attio."""
|
|
485
|
-
url: String!
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
type Query {
|
|
489
|
-
workspace: Workspace
|
|
458
|
+
): UserRecord!
|
|
490
459
|
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ComboboxOption, ComboboxOptionsProvider } from "../components";
|
|
2
|
-
import { ValueOf, PathTo } from "./path";
|
|
3
|
-
export interface Form<TSchema> {
|
|
4
|
-
Provider: (props: {
|
|
5
|
-
initialValues: ValueOf<TSchema>;
|
|
6
|
-
onSubmit: (data: ValueOf<TSchema>) => void;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
}) => JSX.Element;
|
|
9
|
-
WithSubmit: (props: {
|
|
10
|
-
children: (submit: () => void) => React.ReactNode;
|
|
11
|
-
}) => JSX.Element;
|
|
12
|
-
WithValues: (props: {
|
|
13
|
-
children: (values: ValueOf<TSchema>) => React.ReactNode;
|
|
14
|
-
}) => JSX.Element;
|
|
15
|
-
Input: React.FC<{
|
|
16
|
-
label: string;
|
|
17
|
-
data: PathTo<TSchema, "string" | "number" | "connection">;
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
}>;
|
|
21
|
-
Combobox: React.FC<{
|
|
22
|
-
label: string;
|
|
23
|
-
data: PathTo<TSchema, "string">;
|
|
24
|
-
options: Array<ComboboxOption> | ComboboxOptionsProvider;
|
|
25
|
-
placeholder?: string;
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
}>;
|
|
28
|
-
Collection: <TPath extends PathTo<TSchema, "array">>(props: {
|
|
29
|
-
label: string;
|
|
30
|
-
data: TPath;
|
|
31
|
-
children: (args: {
|
|
32
|
-
path: `${TPath}.${number}`;
|
|
33
|
-
index: number;
|
|
34
|
-
}) => React.ReactNode;
|
|
35
|
-
}) => React.ReactElement;
|
|
36
|
-
CollectionItem: React.FC<{
|
|
37
|
-
label: string;
|
|
38
|
-
children: React.ReactNode;
|
|
39
|
-
}>;
|
|
40
|
-
SubmitButton: React.FC<{
|
|
41
|
-
label: string;
|
|
42
|
-
disabled?: boolean;
|
|
43
|
-
}>;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Build a new form from a schema.
|
|
47
|
-
*/
|
|
48
|
-
export declare function build<TSchema>(schema: TSchema): Form<TSchema>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A connection form value.
|
|
3
|
-
*/
|
|
4
|
-
export interface FormConnection {
|
|
5
|
-
type: "connection";
|
|
6
|
-
isOptional: boolean;
|
|
7
|
-
optional(): FormConnection;
|
|
8
|
-
}
|
|
9
|
-
export interface Connection {
|
|
10
|
-
connectionId: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Create a new connection form value.
|
|
14
|
-
*/
|
|
15
|
-
export declare function connection({ connectionSlug }: {
|
|
16
|
-
connectionSlug: string;
|
|
17
|
-
}): FormConnection;
|